-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Polyfill missing AbortController on Tizen #4707
Conversation
We started using AbortController in HlsParser in 777c27e, but that change was made while the Tizen TV in our lab was offline. This restores functionality to Tizen. This polyfill uses getters, a feature of ES6 that the compiler won't transpile into ES3, so this also changes the output language to ES5. This should not be an issue, since ES5 has been well supported in all browsers since IE10.
This should unblock PR #4698. |
@joeyparrish I'm a bit scared about this. What happens if a platform supports fetch and not AbortController. Will this polyfill be able to abort the current request? See: https://github.com/shaka-project/shaka-player/blob/main/lib/net/http_fetch_plugin.js#L233 AbortController --> https://caniuse.com/abortcontroller --> Since Chrome 66 The problem occurs between Chrome 43 and Chrome 65 --> Tizen 3 for example https://developer.samsung.com/smarttv/develop/specifications/web-engine-specifications.html |
It seems that fetch signal is not supported until Chrome 66 https://developer.mozilla.org/en-US/docs/Web/API/fetch |
Incremental code coverage: 59.77% |
@avelad, I'll get Chrome 65 and find out what happens. Though I doubt it's still in use on desktops, it could be in CE devices. |
@avelad, I found that However, I also found that |
I am going to test on several Tizen and WebOS devices, if it works correctly I will approve the PR. |
Tested in Tizen 3.0, Tizen 4.0 and Tizen 5.0 and it works! (and uses xhr) |
Tested in WebOS 3.0, WebOS 3.5 and WebOS 4.5 and it works! (and uses xhr) |
We started using AbortController in HlsParser in 777c27e, but that change was made while the Tizen TV in our lab was offline. This restores functionality to Tizen. This polyfill uses getters, a feature of ES6 that the compiler won't transpile into ES3, so this also changes the output language to ES5. This should not be an issue, since ES5 has been well supported in all browsers since IE10.
We started using AbortController in HlsParser in 777c27e, but that change was made while the Tizen TV in our lab was offline. This restores functionality to Tizen. This polyfill uses getters, a feature of ES6 that the compiler won't transpile into ES3, so this also changes the output language to ES5. This should not be an issue, since ES5 has been well supported in all browsers since IE10.
@joeyparrish I'm not sure if it is regarding this issue but I found a problem on Playstation4 (WebMaf 3.1.1). It appeared from the 4.3.1 version of shaka. When I start the playback I receive an error |
We started using AbortController in HlsParser in 777c27e, but that change was made while the Tizen TV in our lab was offline. This restores functionality to Tizen.
This polyfill uses getters, a feature of ES6 that the compiler won't transpile into ES3, so this also changes the output language to ES5. This should not be an issue, since ES5 has been well supported in all browsers since IE10.