-
Notifications
You must be signed in to change notification settings - Fork 147
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
fix: safari hls #48
fix: safari hls #48
Conversation
b73dedd
to
70fbcbc
Compare
|
||
// import controls so they get regisetered with videojs | ||
import './cardboard-button'; | ||
import './big-vr-play-button'; | ||
|
||
const validProjections = [ |
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.
moved to utils
@@ -46,51 +33,6 @@ const errors = { | |||
} | |||
}; | |||
|
|||
const getInternalProjectionName = function(projection) { |
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.
moved to utils
if (videojs.browser.IE_VERSION) { | ||
// IE 11 does not support enough webgl to be supported | ||
// older safari does not support cors, so it wont work | ||
if (videojs.browser.IE_VERSION || !utils.corsSupport) { |
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.
older version of safari that don't support cors at all (<9 wont work), they dont work right now.
this.videoTexture.format = THREE.RGBFormat; | ||
} | ||
// https://bugs.webkit.org/show_bug.cgi?id=179417 | ||
if (videojs.browser.IS_ANY_SAFARI && utils.isHLS(this.player_.currentSource().type)) { |
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.
previously we had a hack to get video textures working here. This uses a canvas image texture that is updated to the current video frame instead. This makes safari 10 and 11 both work for all versions but it can be a bit slower on worse hardware, and it probably doesn't look as good.
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.
From my testing on an iPAD It preforms well enough that I think its a solution.
QA LGTM |
6f5047c
to
1995f20
Compare
* use "software rendering" to fix safari hls * add an error for hls cors issues * fix animation frame looping
No description provided.