S
S
SleepingLion2013-04-22 22:23:46
HTML
SleepingLion, 2013-04-22 22:23:46

HTML5 video not playing until fully loaded + 4k video test

Good time of the day.
During the development of one project, a problem arose: HTML5 video does not start playing until the file is completely downloaded, and after a successful download, it immediately rewinds to the end without playing. If you rewind the video closer to the beginning (after the full download), then it plays normally.
The bug does not appear on all files and not in all browsers, but once manifested, it remains and does not disappear. Clearing the cache/profile doesn't help.
I made a test page to test the bug. The first video plays fine, the others don't. MD5 for downloaded files is fine.
Request: if possible, test and unsubscribe (you can in a personal) whether it worked or not; if not, how exactly. I can’t test so completely myself, and there are no testers. the project is done by a small team and not to order.
If formulated as a question (Q&A), then: does it work for you? Are there any ideas about the reason for this behaviour?
Everything can be tested. ) Files are distributed from a separately written (not library) HTTP server and at first there were suspicions that the problem might be in incomplete adherence to some standard, but the bug remains when Apache distributes statics.
PS
I posted a 4k video on the test page. It would be interesting to know how slow it is, on average, and how ready we are for 4k.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
N
nicolausYes, 2013-04-23
@nicolausYes

In 4k, everything rests on hdd, whoever does not have ssd will slow down.
Let's count.
Let's take, for simplicity, one of the standards , in which the width and height of the video is exactly twice that of Full-HD (a little more in width).
Resolution - 3996 × 2160 .
Number of pixels = 3996 * 2160 =
8631360 12 bits per pixel, total:
8,631,360 * 12 = 103,576,320 bits = 12,947,040 bytes = 12.347 MB ​​- about the amount one frame takes.
And now let's count at, at least, 30 frames per second - 370 MB per second . Not every drive can pull this.
Regarding the question - everything plays from the beginning and immediately. Win 8 x64. Chrome 26.0.1410.64m

P
Petrusha Ukropov, 2013-04-23
@artishok

My playback starts right away.
4k slows down, but my system is rather weak for such a video

I
Iliapan, 2013-04-23
@Iliapan

firefox - everything except 4K is played from the start without brakes. macbook pro core two duo

A
Alexander, 2013-04-23
@Alex013

Win8, Chrome - playback on all files at once ...
CHAYDNT?

A
An, 2013-04-23
@Flanker_4

I looked at ipade 2 (ios6)
All videos are played except 4k (the play button is crossed out). I'm not sure that pad 2 can be 4k...
Well, for some reason the block with the video looks strange: it's 100px high, while it is stretched to full screen in width (1000px). It turns out such wide vertical stripes.

D
Dolios, 2013-04-24
@Dolios

Ubuntu 12.04
Crome 26.0.1410.63
Everything plays fine, from the very beginning (4k slows down, but this is due to hardware)

E
Eddy_Em, 2013-04-24
@Eddy_Em

Firefox 19.0.2: First video works, others don't. Selecting quality doesn't work either. And the regulators are not displayed.

P
p1nger, 2013-04-24
@p1nger

SRWare Iron 23.0.1300.0 (170000) (a kind of chromium) - everything works, 4k slows down - but the iron is weak. Plays immediately, rewind works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question