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 - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -