Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Externally loaded text tracks not loading properly #3461

Merged
merged 6 commits into from
Jan 15, 2024

Conversation

brycnguyen
Copy link
Contributor

@brycnguyen brycnguyen commented Jan 8, 2024

I noticed that my text tracks stop loading with the introduction of v6.0.0-beta.2. Looking at the condition that was introduced in the linting, I reverted it and saw that it loaded correctly after.

onLoad was also not including my externally loaded text track. My set up saves the text track with react-native-fs and then loads it in before playing the video player.

Update the documentation

If you've added new functionality, update the README.md with an entry for your prop or event.
The entry should be inserted in alphabetical order.

Update the changelog

After you open the PR, update the CHANGELOG.md file with an entry pointing to your PR.

Provide an example of how to test the change

If the PR requires special testing setup provide all the relevant instructions and files. This may include a sample video file or URL, configuration, or setup steps.

Describe the changes

Partially reverts: 800aee0, which was causing the text track to not load properly

Fixes onLoad not including externally loaded text track: #2953 (comment)

@brycnguyen
Copy link
Contributor Author

@KrzysztofMoch tagging because the changes revolve around the linting introduced in 800aee0

@KrzysztofMoch
Copy link
Member

Thank you for your PR! Will look at it

@KrzysztofMoch KrzysztofMoch self-requested a review January 8, 2024 09:03
@KrzysztofMoch
Copy link
Member

@brycnguyen builds failure is cause by react-native issue https://x.com/Kelset/status/1744307922065150097?s=20

Copy link
Member

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks for catching that! Can you rebase it onto master? I have fixed example builds

@brycnguyen
Copy link
Contributor Author

@KrzysztofMoch
Copy link
Member

@brycnguyen This change is good, there will never be both external & internal text track at the same time. You can see it here
https://github.com/react-native-video/react-native-video/blob/11e5b756b14a2751352f97cde4fc027f441253ae/ios/Video/RCTVideo.swift#L756C1-L765C1
and here
https://github.com/react-native-video/react-native-video/blob/11e5b756b14a2751352f97cde4fc027f441253ae/ios/Video/RCTVideo.swift#L408C5-L434C6
that if external tracks are passed, you can't use internal tracks

@KrzysztofMoch
Copy link
Member

@brycnguyen can I merge this ?

@brycnguyen
Copy link
Contributor Author

@KrzysztofMoch sounds good! Feel free to merge.

@KrzysztofMoch KrzysztofMoch merged commit 8f1bdb7 into TheWidlarzGroup:master Jan 15, 2024
6 checks passed
@brycnguyen brycnguyen deleted the text-tracks branch January 16, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants