jwplayer 介绍
JW Player是一款非常优秀的网页媒体播放器, 支持 H.264 ( .mp4,.mov,.f4v )、FLV ( .flv ) 、3GPP ( .3gp,.3g2 )、OGG Theora ( .ogv )和WebM ( .webm )视频格式,MP3 ( .mp3 )、AAC ( .aac,.m4a )、OGG Vorbis ( .ogg )和WAV ( .wav )音频,同时也 支持 swf和 图片 ( gif 、jpg、png)和YouTube格式视频。
支持 html5,有着非常丰富的 插件 可用(部分是收费的,如广告 插件 )。
jwplayer使用
<!DOCTYPE html>
<html>
<head>
<script src='LINK_TO_YOUR_PLAYER'></script>
<script>jwplayer.key='YOUR_KEY';</script>
</head>
<body>
<div id="player">Loading the player...</div>
<script>
// Setup the player
const player = jwplayer('player').setup({
file: 'LINK_TO_YOUR_FILE.mp4'
});
// Listen to an event
player.on('pause',(event) => {
alert('Why did my user pause their video instead of watching it?');
});
// Call the API
const bumpIt = () => {
const vol = player.getVolume();
player.setVolume(vol + 10);
}
bumpIt();
</script>
</body>
</html>
网站地址 : https://developer.jwplayer.com/
GitHub: https://github.com/jwplayer/jwplayer
网站描述: 优秀的网页媒体播放器
jwplayer官方网站
官方网站: https://developer.jwplayer.com/
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。