WebView - MediaDecoderStateMachine NS_ERROR_DOM_MEDIA_FATAL_ERR

REPRODUCIBILITY: 100%
OS VERSION:5.0
HARDWARE: Volla 22
UI LANGUAGE: English
REGRESSION:

DESCRIPTION:

Any website, loading video content on a page in a WebView will result in this error.


[Parent 15091, MediaDecoderStateMachine #1] WARNING: Decoder=7e5c03f1a0 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005): file /home/abuild/rpmbuild/BUILD/xulrunner-qt5-91.13.1+git3/gecko-dev/dom/media/MediaDecoderStateMachine.cpp:3562

and or

JavaScript warning: https://pagead2.googlesyndication.com/bg/gW9JijOijmRN7g87-zmcFVShfY-B1z2sY44oQlkVeuM.js line 
2 > eval line 6928 > eval line 1 > eval line 1 > eval, line 1: Failed to create WebGL context: WebGL creation failed: 
 tryNativeGL (FEATURE_FAILURE_EGL_CREATE)
 Exhausted GL driver options. (FEATURE_FAILURE_WEBGL_EXHAUSTED_DRIVERS)

I’m ‘fairly certain’ it’s not device related since others have reported the error.

PRECONDITIONS:

Open a web page in a WebView containing a video player. Tried CNN and BBC. Different Javascript players, same effect.

STEPS TO REPRODUCE:

  1. Create a WebView app (or try something like harbour-allthenews)

  2. Set the url of the WebView to a page containing a video

  3. Observe

EXPECTED RESULT:

Video renders as it does in the Webbrowser ‘proper’.

ACTUAL RESULT:

Video which renders in the mozzila based browser will not render in a webview.

MODIFICATIONS:

ADDITIONAL INFORMATION:

This may be related to missing codec support? 1634550 - WARNING: Decoder=7f0447fb4000 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005)

And it MAY also be a hardware issue. Testing on other phone. now.

1 Like

This may be a missing permissions issue: WebView? and Audio is also needed to hear the video :slight_smile: EDIT AND there is a hardware issue. First fixes for xperia 10iii ….

Could this be related to an issue I have in Fratzenjail, a web wrapper for facebook? Here you can see a video, but there is never any audio.

It seems that adding the WebView and Audio permissions helps for that. something like

Permissions=Internet;WebView;Audio

In the desktop file.

EDIT, but the NS_ERROR is something else, probably related to ports with hardware acceleratoin missing

This seems to be a hardware / port issue. In the latest 5 on an experia 10iii video and audio, with the correct permissions work fine in a WebView. I assume it’s because hardware decoding is not enabled on some ports? It’s a bit odd that videos DO work in the primary browser, but not the WebView. @piggz any idea why there would be a difference?