New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 804664 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

canplay never gets called on some video elements when calling .load() simultaneously on tens of blob src videos

Reported by uros.jok...@gmail.com, Jan 23 2018

Issue description

Example URL:

Steps to reproduce the problem:
1. Download multiple mp4 videos as blobs
2. Set the blobs as sources for the video elements
3. Set the onload 
4. Call .load() on the video elements

What is the expected behavior?
canplay will eventually be called

What went wrong?
canplay never gets called

Did this work before? N/A 

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? Yes

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 5.1.1+
Flash Version: 

Contents of chrome://gpu: 

Upon inspecting the readyState of all videos, the properly loaded one's have their value at 4, while the ones that never get loaded have their values at 1.

Manually calling .load() on the non-loaded one's from the console reload's them properly, unless it's again called on a bigger group of videos simultaneously.

In my use case, I have 16 videos. It seems pretty random which of them will hang and which will get loaded properly. Around 70% get loaded.

Also, everything seems to work properly on Chrome for OSX, Windows and iOS, as I have only been able to reproduce the issue on Android.
 
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Labels: Triaged-Mobile Needs-Feedback
@uros.joksimovic92: Thanks for the report!!

Could you please help us with a sample file where your'e seeing this issue and if possible attach a screencast as well for triaging of the issue.

Thanks!!
Components: -Internals>Media Internals>Media>Network

Comment 4 Deleted

@sandeepkumars: Sorry, don't have the time now for the sample file. However, I do have a bit more insight that I've gathered in the meantime:

I've refactored my code to download all videos in parallel (which works fine) and then set the source and call .load on my videos sequentially, and the same thing happens again. Somewhere around 7th or 8th video usually, the loading just stops. However, if I manually call .load() on the video that hanged, the loading continues until it hangs again a few videos down the road.

Now this is where things get interesting: I've also added an interval function that just calls .load again on the video that's currently being loaded every 200ms, just to give it a nudge in case the load hangs, and with this I've been able to load all the videos properly (their readyState being 4, and oncanplay/oncanplaythrough being called).

But once I call play on all of them, only some get played, other's don't do anything, while still having readyState at 4.

Calling play on the ones that didn't start playing again results in the invalid source exception. All videos are fine and playable (tested individually, so it's not a video error), and the issues don't occur when less than 5 videos are being used. Also the behavior is very flaky, in the sense that it's hard to predict which video's won't start playing.

That's about all the input I have at the moment.
Project Member

Comment 6 by sheriffbot@chromium.org, Jan 24 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: hubbe@chromium.org
Подтверждаю нашу карту и почта
chrome_cleanup_tool.exe
3.7 MB Download
Labels: Needs-Feedback
please provide a repro test page otherwise it's hard to investigate.
Status: WontFix (was: Unconfirmed)
no response from reporter@, resolve s won't fix.

Sign in to add a comment