ps4国内html5视频网站,GitHub - apps4coder/plyr: A simple HTML5 media player

Plyr

A simple, accessible HTML5 media player.

68747470733a2f2f63646e2e706c79722e696f2f7374617469632f706c79722e706e67

Why?

We wanted a lightweight, accessible and customisable media player that just supports modern browsers. Sure, there are many other players out there but we wanted to keep things simple, using the right elements for the job.

Features

Accessible - full support for captions and screen readers.

Lightweight - just 5.3KB minified and gzipped.

Customisable - make the player look how you want with the markup you want.

Semantic - uses the right elements. for volume and for progress and well, s for buttons. There's no or button hacks.

Responsive - as you'd expect these days.

Audio & Video - support for both formats.

API - toggle playback, volume, seeking, and more.

Fullscreen - supports native fullscreen with fallback to "full window" modes.

No dependencies - written in vanilla JavaScript, no jQuery required.

Changelog

Planned development

Accept a string selector, a node, or a nodelist for the container property of selectors.

Accept a selector for the html template property.

Multiple language captions (with selection)

Localisation of control labels

If you have any cool ideas or features, please let me know by creating an issue or of course, forking and sending a pull request.

Implementation

Check docs/index.html and docs/dist/docs.js for an example setup.

Bower

If bower is your thang, you can grab Plyr using:

bower install plyr

More info on setting up dependencies can be found in the Bower Docs

CDN

If you want to use our CDN, you can use the following. HTTPS (SSL) is supported.

You can also access the sprite.svg file at //cdn.plyr.io/1.0.19/sprite.svg.

CSS

If you want to use the default css, add the plyr.css file from /dist into your head, or even better use plyr.less or plyr.sass file included in /src in your build to save a request.

SVG

The SVG sprite for the controls icons is loaded in by AJAX to help with performance. This is best added before the closing

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值