Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome [HTML5] Video Tag does not allow to control a video #29

Open
BoQsc opened this issue Dec 20, 2021 · 4 comments
Open

Chrome [HTML5] Video Tag does not allow to control a video #29

BoQsc opened this issue Dec 20, 2021 · 4 comments

Comments

@BoQsc
Copy link

BoQsc commented Dec 20, 2021

Low importance issue.

[issue's title says it all, look up the video below.]

Somehow I suspect that this has to do with the Web Server. (DaNode)
Haven't tested on Apache or other Web Servers yet.
But it (HTML video tag) seems to work perfectly for everyone else that do not use DaNode.

2021-12-20.14-36-27.mp4

Guide to reproduce
Temporary live version. (1-2 days)

  1. This is what I've used.
<video width="320" height="240" controls>
  <source src="1.mp4" type="video/mp4">
  <source src="1.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
  1. Now place a video .mp4 file named 1.mp4 in the same folder alongside.
  2. Place it in the DaNode www/*/ folder
  3. Test things out and see that you can't control the video.
@DannyArends
Copy link
Owner

DannyArends commented Dec 20, 2021

Probably has something to do with the player requesting the file in chunks.

In theory the browser asks for Transfer-Encoding field set to "chunked", the server currently doesn't do chunked (it could though).

DaNode should respond appropriately I guess.

Could you capture some of the HTML requests ?

@BoQsc
Copy link
Author

BoQsc commented Dec 20, 2021

Could you capture some of the HTML requests ?

HTML requests

Below this image there are exact values.

image

Values from the image above in the same order:


GET Response

Host: 78.140.136.25
DNT: 1
Accept-Encoding: identity;q=1, *;q=0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Range: bytes=0-
Accept: */*
Referer: http://78.140.136.25/index2.html
Accept-Language: en-US,en;q=0.9,lt-LT;q=0.8,lt;q=0.7

HTTP/1.1 200 Ok
X-Powered-By: Digital Mars D 2.98
Server: DaNode/0.0.3
Date: 20 Dec 2021 10:30:23 CET
Content-Length: 7328150
Last-Modified: 19 Dec 2021 7:10:22 CET
Content-Type: video/mp4
Connection: Keep-Alive


Host: 78.140.136.25
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,lt-LT;q=0.8,lt;q=0.7


HTTP/1.1 200 Ok
X-Powered-By: Digital Mars D 2.98
Server: DaNode/0.0.3
Content-Encoding: deflate
Date: 20 Dec 2021 10:30:23 CET
Content-Length: 396
Last-Modified: 20 Dec 2021 7:25:13 CET
Content-Type: text/html
Connection: Keep-Alive

Note: Capture software

@DannyArends
Copy link
Owner

Probably due to the

Range: bytes=0-

Header set/requested, I cannot reproduce it under Firefox, .mp4 seems to play well and can be skipped

@BoQsc
Copy link
Author

BoQsc commented Dec 20, 2021

Header set/requested, I cannot reproduce it under Firefox, .mp4 seems to play well and can be skipped

That's true, Firefox does do everything properly. Only Chrome seemingly affected

@BoQsc BoQsc changed the title [HTML5] Video Tag does not allow to control a video Chrome [HTML5] Video Tag does not allow to control a video Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants