javascript - HTML5 <video> Tag Performance -


i have <video> element @ top of page playing animation in background (very similar 1 found on google hangouts page). on computers, video plays smoothly , seems fine, on older hardware there lot of lag , browser slows down quite lot.

is there anyway detect performance of video playback? i'd either replace video static image or pause video if performance issue.

use video metrics if available in browser. here's example using webkit prefixed droppedframecount.

http://git.chromium.org/gitweb/?p=chromium.git;a=blob;f=chrome/test/data/media/html/media_stat_perf.html

see also: http://wiki.whatwg.org/wiki/video_metrics moz prefix.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -