Error message doesn't show up on Chrome 59 #1221
Comments
Now I'm getting the same behavior on Chrome 59. When I put in some video file that doesn't exist there should be some error message about it but there isn't, it just shows that error on console. So I believe Chrome 59 made the message property of the error read only and that's it. But is it important to put your custom message into error.message at all? I updated my fix with something simpler - it just puts in the Flowplayer error message up and doesn't alter error.message. |
I also noticed that for Chrome's |
From a practical point of view: Also DECODER_ERROR_NOT_SUPPORTED is not standard, it probably means exactly what it says: This Chrome's decoder cannot deal with this video. @foliovision - arguably the 'custom' message assigned to error.code is a user facing convenience, but the interpretation of error.code for other purposes - whether to recover or not for example - depends on some consistency in those codes anyway, see below. @nnarhinen - what should be revisited imho is:
|
@blacktrash I was getting the same issue even in Chrome 60.0.3112.78. I can also see that error on console here: http://demos.flowplayer.org/scripting/recover.html And on http://demos.flowplayer.org/basics/bad-url.html it shows no error for the first video because of the same reason. |
@nnarhinen - I can confirm this. At least regarding the symptoms. So http://demos.flowplayer.org/basics/bad-url.html shows error 4 in the console - "code: 4, message: MEDIA_ELEMENT_ERROR: Format error", however http://demos.flowplayer.org/scripting/recover.html recovers because the player reacts to error 4. Presumably at least. Unless the broken play() promise does something, but I doubt it because the play() promise scenario is not covered in core. |
I found this issue when playing http://mydoctor.kpnvly.org/rehabilitation/wp-content/uploads/sites/4/2016/01/2.0_-_2.1_Pre_Surgery_Exercise_Intro.m4v
Here is ffprobe output for that file:
Here is the error which I got when using Chrome 59.0.3071.125 on Adroind 4.4.4 (Samsung X-Cover - SM-G388F):
I see it's caused by this line:
error.message = conf.errors[error.code];
I'm attaching a pull request where I put a simple try-catch around that line in the error event handler. That way there is no JavaScript error and the error message provided by Google Chrome which actually reads "DECODER_ERROR_NOT_SUPPORTED video decoder initialization fialed" appears properly.
The video plays fine on Android 5.1.1 (Asus) or Android 6.0 (Lenovo) though.
Thanks,
Martin
The text was updated successfully, but these errors were encountered: