jwplayer 6.10.0编译

JWPlayer是一款全球最受欢迎的可嵌入式多媒体播放器,支持在所有主要浏览器和移动设备上播放视频和音频文件。它提供免费的非商业使用,并且支持多种媒体格式,包括MP4、WebM、FLV、HLS等。此外,还提供了详细的API接口文档和开放源代码,便于开发者进行定制和扩展。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

JW Player


https://github.com/jwplayer/jwplayer#jw-player

接口手册
http://support.jwplayer.com/customer/portal/topics/564475-javascript-api/articles

JW Player Logo

JW Player is a the world's most popular embeddable media player.

  • Cross browser: Play your video and audio files easily on all major browsers and mobile devices. Full details here.
  • Media formats: Play MP4, WebM, FLV, HLS, YouTube videos, and more.
  • Open Source: JW Player is free for non-commercial use. For commercial uses, users must purchase a license.

For documentation and support, please visit the JW Player Support Site.

Examples

We have several articles and examples on the JW Player Support Site.

The example below will find the element with an id of myVideoId and render a video player into it. We will then create an event handler to watch for when someone changes the volume.

    jwplayer('myVideoId').setup({
        file: '/uploads/example.mp4',
    });

    jwplayer('myVideoId').onVolume(function(event) {
        console.log('The volume has changed', event);
    });

Note that we could also use functions getVolumesetVolume and others which can be found here.

Contributing

Style Guide

For our javascript code, we follow the Douglas Crockford Style guide

Before submitting a change be sure to verify it follows our guide by using

grunt jshint

Build Instructions

To build the JW Player, you will need the following software:

To compile with Flex and Ant, you'll first need to modify the build.properties file found in the buildfolder:

  1. Set flexsdk to the install location of the Flex SDK (e.g. /usr/local/bin/flex/)
  2. Set execextension to .exe if you're using Windows; otherwise leave it blank.

You can now compile the player using Ant:

ant -buildfile build\build.xml

If the build is successful, the new player assets (jwplayer.js, jwplayer.html5.js, jwplayer.flash.swf) will appear in the bin-release folder.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值