jwplayer 嵌入式媒体播放器 项目简介
JW Player是世界上最流行的嵌入式媒体播放器,用于跨越浏览器和文件类型来进行无缝的视频播放。它能使开发者通过和视频的编程交互来创造出独特的用户体验。示例: // Create a jwplayer instance
jwplayer('my_video').setup({
file: '/uploads/example.mp4',
});
// Add a custom callback for when user pauses playback
jwplayer('my_video').on('pause', function(event) {
alert('Why did my user pause their video instead of watching it?');
});
jwplayer('my_video').setup({
file: '/uploads/example.mp4',
});
// Add a custom callback for when user pauses playback
jwplayer('my_video').on('pause', function(event) {
alert('Why did my user pause their video instead of watching it?');
});