-
Notifications
You must be signed in to change notification settings - Fork 425
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
feat: Utilize option to override native on tech #76
Conversation
src/videojs-http-streaming.js
Outdated
(tech.featuresNativeVideoTracks || tech.featuresNativeAudioTracks)) { | ||
throw new Error('Overriding native HLS requires emulated tracks. ' + | ||
'See https://git.io/vMpjB'); | ||
if (this.options_.overrideNative) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to fall back to the old behavior if the APIs aren't available (older video.js 6)
This feature is now in video.js 7.0.0-rc.1, this PR can either bump up the video.js version to pass the tests or we can mock that functionality and test both with and without that API. I think we should do the latter since this PR has backwards compatible changes. |
#102 has been merged so this PR does not need to update the package files |
chore: update tests and pages for video.js 7 (#102)
Needs README updates https://github.com/videojs/http-streaming#overridenative |
I think the REAME code snippet should show how to set it up with both the player constructor options and the video source options |
Description
Utilize the addition of
overrideNativeAudioTracks
andoverrideNativeVideoTracks
as added in videojs/video.js#5074.I'm in the process of adding tests, but would like eyes on this and the above noted PR before getting too far along.
Specific Changes proposed
This PR removes the need to set
nativeAudioTracks
andnativeVideoTracks
to false when enabling overrideNative.Requirements Checklist