Closed Bug 1532250 Opened 5 years ago Closed 2 years ago

[meta] Issues playing video on youtube.com/tv in GeckoView on Amazon Fire TV devices

Categories

(Core :: Audio/Video: Playback, defect, P2)

Unspecified
Android
defect

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- affected

People

(Reporter: bas.schouten, Unassigned)

References

Details

(Keywords: meta, Whiteboard: [gvtv:p1] [media-q2])

It appears that in GeckoView on Amazon Devices playing a video on https://www.youtube.com/tv is a significantly worse experience than on the WebView based browser. Basically once a link to a video is followed it takes a lot longer to play, if it plays at all, some observations here:

  • The browser does not seem to be particularly busy
  • Sometimes playback doesn't start at all
  • I seem to be able to force playback to start by clicking pause and then play again

This all leads me to believe there may be one of these things or a combination going on:

  • We buffer more video before starting playback than WebView on these devices
  • There may be some event handling issues related to autoplay
Flags: needinfo?(jyavenard)
Flags: needinfo?(cpearce)

While we don't autoplay it takes a long time to get to a point where we can even press play, and is longer than the time it takes to autoplay on Webview.

OS: Unspecified → Android
Whiteboard: [gvtv]

YouTube is using MSE, they decide how much to buffer and when playback is to start.
If you play with the user agent, does it make a difference?

We do fire canplay event once we have a certain amount of time of data buffered, however Iirc, YouTube doesn't use that signal.

Flags: needinfo?(jyavenard)

I think before talking about buffering we should first test if this behavior is not caused by block auto play kicking in on the device.

See Also: → 1528182
Summary: Issues playing video on youtube.com/tv in GeckoView on amazon devices → Issues playing video on youtube.com/tv in GeckoView on Amazon Fire TV devices
Whiteboard: [gvtv] → [gvtv:p1] [geckoview:p1]

(In reply to Bas Schouten (:bas.schouten) from comment #0)

  • Sometimes playback doesn't start at all

I think this is caused by YouTube querying MediaCapabilities a lot, and we try to create a decoder for each request and then we reach the device limit for concurrent decoders.

I believe John Lin is working on that.

Flags: needinfo?(cpearce)

Most likely another side effect of bug 1533252 at it looks right now.

Depends on: 1533252

(In reply to Chris Pearce [:cpearce (GMT+13)] from comment #4)

I think this is caused by YouTube querying MediaCapabilities a lot, and we try to create a decoder for each request and then we reach the device limit for concurrent decoders.

I don't think so.

The video element is only ever constructed after the MediaCapablities requests have been exhausted. While it may reduce some use resolutions, it will never fully fail.

And by the time the video element is created and content loaded, we have plenty of decoders available.

In any case, I'll have a fix for bug 1533252 today

Whiteboard: [gvtv:p1] [geckoview:p1] → [gvtv:p1] [geckoview:p1] [media-q2]

Bas, did this get any better after landing bug 1533252? In other words is still reproducible?

Flags: needinfo?(bas)

Is this a block autoplay issue? cpearce sometimes sees a YouTube loading screen but clicking the center button then loads the video as expected.

This bug might be a dupe of bug 1535086.

See Also: → 1535086
Keywords: meta
Whiteboard: [gvtv:p1] [geckoview:p1] [media-q2] → [gvtv:p1] [media-q2]
Summary: Issues playing video on youtube.com/tv in GeckoView on Amazon Fire TV devices → [meta] Issues playing video on youtube.com/tv in GeckoView on Amazon Fire TV devices
Flags: needinfo?(bas)
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.