HTML5 Video WebGL Performance Test - krpano.com
文章推薦指數: 80 %
This example plays a HTML5 video via WebGL. There is a 'requestAnimationFrame' loop and every frame the HTML5 video will be uploaded via 'texImage2D'. When the ... HTML5VideoWebGLPerformanceTest ThisexampleplaysaHTML5videoviaWebGL. Thereisa'requestAnimationFrame'loopandeveryframetheHTML5videowillbeuploadedvia'texImage2D'. Whenthevideowillbepaused,therewillbenovideouploadsbuttheWebGLwillkeeprendering. Toseethatsomethingisrenderingthereisahue-rotationeffect. OniOS8beta4+5andalsointheOSX10.10Safarithevideotextureuploadsarewaytooslow! ThereisprobablyaslowGPU-to-CPU-to-GPUpathforthevideoframehere...? WebkitBugreports: https://bugs.webkit.org/show_bug.cgi?id=135387 https://bugs.webkit.org/show_bug.cgi?id=129626 OtherHTML5VideoWebGLProblems: HTML5VideoWebGLCORS(Cross-Domain)Test Log: Pause Resume Testnotes-press'Pause'toseetheFPSincreaseduethepausedvideo! Thereareno'texImage2D'callswhenthevideoispaused,butWebGLitselfisstillrenderingeveryframe(hue-rotationeffect). Sometestresults: DeviceOSBrowser~Framerate iPadAiriOS8beta4+5Safari18FPS iPad3iOS8beta4+5Safari2FPS MacMini2011OSX10.10Safari25FPS MacMini2011OSX10.10Chrome3660FPS MacMini2011OSX10.10Firefox3150FPS WindowsDesktopWindows7Chrome3660FPS WindowsDesktopWindows7Firefox3148FPS GalaxyS5Android4.4Chrome3460FPS GalaxyS5Android4.4Firefox318FPS
延伸文章資訊
- 1Real-time WebGL video manipulation | by Szabolcs Damján
This is part III of the “Manipulating video in a browser” series. In the previous articles, we ex...
- 2Adding Video to Unity WebGL - SIMMER.io
How do I get video to work for Unity WebGL? This is one of my number one questions and I finally ...
- 3HTML5 Video WebGL Performance Test - krpano.com
This example plays a HTML5 video via WebGL. There is a 'requestAnimationFrame' loop and every fra...
- 4How can I draw and project a video from an HTML5 player ...
Here is an example code to setup a webGL object that can receive your video pixels. Hope its usef...
- 5动画纹理- Web API 接口参考 - MDN
第一步是创建 <video> 将用于检索视频帧的元素: ... 检查这两个事件可确保有可用数据,并且可以安全地开始将视频上传到WebGL 纹理。在上面的代码中, ...