Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

video tag src not picking ftp url as a source?

Tags:

html

video

in video tag src we are trying to give src as a ftp resource its not picking it up. Can somebody give some direction on that.

<video src='ftp://server/pqr.mp4' />

like image 896
sushil bharwani Avatar asked Nov 24 '25 14:11

sushil bharwani


2 Answers

I suspect that's because to allow efficient usage, the browser makes HTTP range requests, which are part of HTTP, not FTP. FTP is a pretty old protocol, and isn't really appropriate here for lots of reasons (no range requests, basic/no caching info, etc).

like image 62
Rich Bradshaw Avatar answered Nov 26 '25 05:11

Rich Bradshaw


something like this

<video width="320" height="240" controls="controls">
  <source src="http://movie.mp4" type="video/mp4" />
  <source src="http://movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video> 
like image 40
Aram Mkrtchyan Avatar answered Nov 26 '25 04:11

Aram Mkrtchyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!