开发者

creating a pure javascript based video player

开发者 https://www.devze.com 2023-01-18 14:24 出处:网络
can anyone tell me if we can create a video player purely in javascript? if yes then please suggest some guidelines and process like how w开发者_开发技巧ill the buffering and streaming be achieved? us

can anyone tell me if we can create a video player purely in javascript? if yes then please suggest some guidelines and process like how w开发者_开发技巧ill the buffering and streaming be achieved? using ajax in this case? is there any way to read local video files using javascript? etc.

NOTE: I am not talking about HTML 5.

Thanks


Sure it is.

But just because you can... doesn't mean you should.


It has been done before by loading a bunch of base64 encoded jpeg frames embedded in json through ajax. Makes browsers weep but fun to experiment with nonetheless.

http://www.nihilogic.dk/labs/jsvideo/test1.php

Could be improved upon by streaming frames (setting up a buffer in js or dom to hold them), and getting around use of base64 encoding for loading frame images through ajax.

0

精彩评论

暂无评论...
验证码 换一张
取 消