-
Notifications
You must be signed in to change notification settings - Fork 263
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
Proxied MediaElement in OSMF does not dispatch MediaError #103
Comments
Hi @hrasadi this kind of error should be catched here : |
That's exactly what I mean @mangui. There are cases that I want to receive these kind of events from MediaPlayer directly (which itself dispatches MediaElement events) but this proxy element does not dispatch errors. |
Hi,
According to OSMF docs, I can receive a MediaError event when the media loading fails via this:
mediaplayer.addEventListener(MediaErrorEvent.MEDIA_ERROR, onMediaError)
flashhls by the way does not dispatch this event when for example URL is not found. My proposal is to add some few lines to HLSLoadFromDocumentElement class. In the class constructor we can add:
and re-dispatch it again:
private function onMediaError(event:MediaErrorEvent):void {
dispatchEvent(event.clone());
}
The text was updated successfully, but these errors were encountered: