When you try to play video in Firefox for android, it shows NO video with supported format and MIME type found

RESOLVED FIXED in Firefox 50



Audio/Video: Playback
2 years ago
a year ago


(Reporter: Siddharth Shah, Assigned: cpearce)


46 Branch
Dependency tree / graph

Firefox Tracking Flags

(platform-rel ?, firefox50 fixed)


(Whiteboard: [platform-rel-Google] [platform-rel-Youtube])

MozReview Requests


Submitter Diff Changes Open Issues Last Updated
Error loading review requests:


(3 attachments)



2 years ago
Created attachment 8753630 [details]

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Steps to reproduce:

Open FireFox browser in android 6.0 Marshmallow, Then play a video on youtube.com

Actual results:

 It shows it initially shows "NO video with supported format and MIME type found."

Expected results:

Video should directly play.


2 years ago
OS: Unspecified → Android


2 years ago
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Please provide a URL.
(In reply to Anthony Jones (:kentuckyfriedtakahe, :k17e) from comment #1)
> Please provide a URL.

Richard - this is an issue on YouTube where it shows this message but the video still plays.
Priority: -- → P2
I play the same link[1] as comment 0 with Firefox 46.0.1 on my HTC M9+(Android 5.02) and Nexus6 (Android 6.0.1).
They both can play the link[1] well.  

Hi Kevin,
I cannot repro it, could you help try to repro this bug?
Flags: needinfo?(kbrosnan)
Created attachment 8754927 [details]
Screen recording of the issue

This happens all the time. It might be a YT bug.
Flags: needinfo?(kbrosnan)

Comment 6

2 years ago
Can someone help me in how to proceed forward and help in resolving this bug ?
We are still in the process of diagnosing this bug. There is not any solution at this time. It is mostly a cosmetic issue as the video will decode after briefly showing the "No video with supported format and MIME type found." message. It would be good for Firefox for Android users not to see the message.
Mass change P2 -> P3
Priority: P2 → P3
platform-rel: --- → ?
Whiteboard: [platform-rel-Google] [platform-rel-Youtube]
Duplicate of this bug: 1175696

Comment 10

2 years ago
What's happening is YouTube is calling load() when there's no resource that can be loaded, and so our controls are trying to be helpful and notify developers that they're loading a video but it's not going to work because there's nothing to load.

I think YouTube should just not call load() when they've got no resource to load. The load algorithm should be invoked when they set the src attribute. They should rely on that.

Additionally, we only see this error some of the time because this is hitting a race between our code and the Resource Selection Algorithm and setupInitialState() in videocontrols.xml.

So ideally we should fix the race somehow, so that we consistently always (or consistently never!) see the failure message when script tries to load without a resource to load.

The Resource Fetch Algorithm sets the networkState to NETWORK_NO_SOURCE, and then continues in a synchronous section where it will reset the networkState to NETWORK_EMPTY if there's no resource. Our video controls setup code (setupInitialState()) seems to normally run after the synchronous section has finished, and so sees networkState==NETWORK_EMPTY and the controls can't tell that the load stopped because there's no resource to load.

But if something happens that spins the event loop (I think), setupInitalState() runs before the synchronous section of the Resource Selection Algorithm has reset the networkState, and so setupInitalState() sees networkState==NETWORK_NO_SOURCE (when setupInitalState() calls hasError()), and shows the error message.

I think it makes sense for Firefox to show an error message when the load failed due to there being no specified resource to load. But again, the spec is basically requiring this time period where networkState==NETWORK_NO_SOURCE and is then reset to networkState==NETWORK_EMPTY, which makes it hard to detect this case.

Potentially, we could propose changing the spec to fail or not proceed with the load if there's no resource before entering synchronous section. Then we'd avoid this time-window where the observable state on the media element isn't reliable.

Comment 11

a year ago
+                hasSources : function() {
+                    if (this.video.hasAttribute('src')) {
+                        return true;
+                    }
+                    for (var child = this.video.firstChild;
+                         child !== null;
+                         child = child.nextElementSibling) {
+                        if (child instanceof HTMLSourceElement) {
+                            return true;
+                        }
+                    }
+                    return false;

Can you add a check that it not only has the attribute but that the attribute value is not empty?
Assignee: nobody → cpearce
Ever confirmed: true

Comment 13

a year ago
Created attachment 8770290 [details]
Bug 1273725 - Don't show 'No supported source' message in video controls if there's no sources.

We're flashing a warning message  "NO video with supported format and MIME type
found." when we're loading a YouTube page in Fennec. This is because YouTube
are calling load() on a video element with no src attribute or source children
in a click handler in order to defeat the "requires user interaction to play"
restrictions on mobile Chrome and Safari in that video element.

We're showing the warning message to help developers diagnose why loads are
unintentionally failing. However, the behaviour that YouTube are doing is
intentional, and YouTube are likely to not be the only ones doing this. So we
should change our video controls to not display the warning message in this
case. We should be compatible with other browsers.

We'll still log a debug message to the browser console as to why the load
is failing, to help developers who hit this unintentionally.

Review commit: https://reviewboard.mozilla.org/r/63766/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/63766/
Attachment #8770290 - Flags: review?(jaws)

Comment 14

a year ago
Comment on attachment 8770290 [details]
Bug 1273725 - Don't show 'No supported source' message in video controls if there's no sources.

Cancelling review; I'd not seen the comment above on my try push before pushing to review.
Attachment #8770290 - Flags: review?(jaws)

Comment 15

a year ago
Comment on attachment 8770290 [details]
Bug 1273725 - Don't show 'No supported source' message in video controls if there's no sources.

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63766/diff/1-2/
Attachment #8770290 - Flags: review?(jaws)
Comment on attachment 8770290 [details]
Bug 1273725 - Don't show 'No supported source' message in video controls if there's no sources.

Attachment #8770290 - Flags: review?(jaws) → review+

Comment 17

a year ago
Pushed by cpearce@mozilla.com:
Don't show 'No supported source' message in video controls if there's no sources. r=jaws

Comment 18

a year ago
Last Resolved: a year ago
status-firefox50: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Depends on: 1286374
Duplicate of this bug: 1289409
Blocks: 1289413
You need to log in before you can comment on or make changes to this bug.