Comments (8)
Hello @eduter ,
I'm not sure of how a global error handler (like window.onerror
?) is able to catch that error as all errors happening inside the RxPlayer should already be catched (maybe we missed some?). Here for example, for the event to be triggered, we had to catch the error and run our event triggering logic.
Is it the same error that is catched globally?
from rx-player.
Yes, window.onerror
catches it, it is the same error I get in the event listener (I compared them with ===
), and this always gets printed to the console:
Uncaught MediaError: MediaError (MANIFEST_PARSE_ERROR) No supported video adaptations
MediaError media_error.js:47
adaptations period.js:56
Period period.js:36
periods manifest.js:85
Manifest manifest.js:83
processMpdParserResponse manifest_parser.js:102
runDefaultJsParser manifest_parser.js:86
manifestParser manifest_parser.js:44
_parseLoadedManifest manifest_fetcher.js:211
RxJS 8
fetch manifest_fetcher.js:124
promise callback*../node_modules/rx-player/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js/ManifestFetcher.prototype.fetch/< manifest_fetcher.js:122
RxJS 20
_priv_initializeContentPlayback public_api.js:401
loadVideo public_api.js:278
from rx-player.
I looked around but I still fail to see where this might happen.
I think devtools like those in Firefox or Chrome are able to pause on uncatched errors. Can you run with this activated so we can pinpoint where this is going on?
from rx-player.
The error is thrown inside the Period constructor. The first few entries in the call stack seem to map to these lines:
rx-player/src/manifest/period.ts
Line 104 in 45658d0
rx-player/src/manifest/manifest.ts
Line 357 in 45658d0
I'm not sure how it ends up here, but it seems like RxJS re-throws the error here:
https://github.com/ReactiveX/rxjs/blob/6fa819beb91ba99dadd6262d6c13f7ddfd9470c5/src/internal/util/reportUnhandledError.ts#L21
from rx-player.
Hi, you're right, it seems that the uncatched one is the one found in RxJS.
From its code documentation reportUnhandledError
seems to be called when "there is an error that is out-of-band with the subscription or when an error hits a terminal boundary of the subscription and no error handler was provided
".
Though I don't know in which case we're here nor why as to trigger the "error"
event, we should have handled it. Maybe the logic is ran multiple times in our case (wouldn't be the first time it happens with RxJS) and only the first is handled?
Can you check if the issue is still present in our last development build [email protected]
?
We removed our dependency to RxJS from it, one of the reason being to prevent such complexities to happen.
from rx-player.
I've tested the development build and it no longer triggers window.onerror
or prints the error to the console 👍
For some reason, both Firefox and Chrome still pause when "pause on exceptions" is checked, even with "pause on caught exceptions" unchecked, but that is not really a problem.
from rx-player.
OK :) thanks.
For some reason, both Firefox and Chrome still pause when "pause on exceptions" is checked, even with "pause on caught exceptions" unchecked, but that is not really a problem.
Very strange, it may hide something. I will check this, thanks again.
from rx-player.
Now that the v3.30.0
is release you shouldn't have the problem anymore.
Do not hesitate to re-open this issue if you still have the problem.
from rx-player.
Related Issues (20)
- Support for DASH thumbnails HOT 2
- Inconsistency in v4.0.0-beta.0 release note example for DASH `endNumber` attribute handling HOT 1
- Feature Request: Use Document Picture-in-Picture Web API HOT 2
- INCOMPATIBLE_KEYSYSTEMS error using DASH/Widevine on Panasonic 2019 HOT 16
- Expose text adaptation's role HOT 4
- Support in-manifest LAURL for ClearKey HOT 4
- Streams media error on Edge HOT 4
- Segment GCed multiple times in a row warnings using DASH/PlayReady on Vestel MB211 HOT 6
- DISCONTINUITY_ENCOUNTERED errors after consecutive audio track switches, for DASH live content, result in an endless loop HOT 2
- KEY_GENERATE_REQUEST_ERROR - The initDataType parameter is empty (observed on Tizen 2017) HOT 7
- Video playback issues on Android Mobile in Chrome HOT 9
- Check Dolby Atmos and Dolby Vision in current stream HOT 3
- Unable to play some streams in Edge browser on RxPlayer v3.30.0 HOT 11
- Streams freeze on first frame with audio only playback on Edge browser (and probably Chrome) HOT 6
- Safari 17 brings MSE to iOS HOT 10
- Some DASH/Widevine streams are looping on a Vestel MB130 HOT 3
- First playback of PlayReady content fails on EDGE browsers HOT 3
- PIPELINE_ERROR_DECODE error observed in Edge browser when zapping live channels HOT 2
- Safari 17.1 issue with playback DRM content HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rx-player.