Customize media player in HTML5 [duplicate]
Possible Duplicate:
HTML 5 video custom controls
Hi,
Is it possible to customize media controls like design as well as coding? apply our own skinning and track events when touching media controller开发者_高级运维s (Play, stop, ..etc)
Thanks in Advance,
Sri
Yes, by having interface elements call the video
object's methods.
The site http://www.w3.org/TR/html5/video.html#media-elements specifies the HTMLMediaElement interface.(the important attributes and methods are after the //playback state
comment).
Basically
el.play(); //and
el.pause();
is enough to make a simple player.
精彩评论