有没有办法我们可以为视频元素指定缓冲数据大小?浏览器需要缓冲多少数据/秒?
我问这个问题是因为我们需要尽快显示视频,即使这意味着将缓冲区大小减少到绝对最小...
我们不使用任何流媒体协议(例如HLS)。这是一个大型视频文件的简单渐进式下载...
谢谢
STeN
有没有办法我们可以为视频元素指定缓冲数据大小?浏览器需要缓冲多少数据/秒?
我问这个问题是因为我们需要尽快显示视频,即使这意味着将缓冲区大小减少到绝对最小...
我们不使用任何流媒体协议(例如HLS)。这是一个大型视频文件的简单渐进式下载...
谢谢
STeN
you canNOT change the buffer size of browsers at the current time
simply do the following after the video-element is available to the DOM (i.e. use jQuery's onLoad function to run it)
myVideo = document.getElementById("myVideoId");
myVideo.load();
myVideo.play();
this will start the video as soon as possible - unless you try to serve it on an iOS-device. Apple prohibits autoplay and actually fixed possible workarounds from the past.
this.player.src = this.movieUrl;this.player.load(); this.player.play();
,所以似乎我不能更快了...谢谢。 - STeN