开发者

Customize media player in HTML5 [duplicate]

This question already has answers here: Closed 12 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜