1 Star 0 Fork 0

sloder/jwplayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
Loading...
README

JW Player Logo

Join the chat at https://gitter.im/jwplayer/jwplayer

Plays everywhere, every time.

JW Player is -the- solution for making video playback seamless across browsers and file types. It empowers the developer to interact with video programmatically to create unique and awesome user experiences.

Developer API Examples and Demos

Documentation and Support

Example

The example below will find the element with an id of my_video and render a video player into it.

    // 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?');
    });

Other callbacks that we provide include

  • play / complete
  • seek / pause
  • volume / mute
  • and more

You also have the power to programatically set any configuration within the player.

    function bumpIt() {
    	var vol = player.getVolume();
        player.setVolume(vol + 10 );
    }

Contributing

Build Instructions

  1. Install Node.js
  2. Install Adobe AIR SDK
  3. Install Java
  4. Download player.swc 11.2
  5. Rename and move the .swc file to {AIRSDK_Compiler}/frameworks/libs/player/11.2/playerglobal.swc
    # First time set up
    npm install -g grunt
    npm install
    
    # Build using
    grunt

After build, the assets will be available in the bin-release folder.

Software License

The use of this library is governed by a Creative Commons license. You can use, modify, copy, and distribute this edition as long as it’s for non-commercial use, you provide attribution, and share under a similar license. http://www.jwplayer.com/license/

空文件

简介

JW Player is the world's most popular embeddable media player. 展开 收起
取消

发行版

暂无发行版

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/sloder/jwplayer.git
git@gitee.com:sloder/jwplayer.git
sloder
jwplayer
jwplayer
master

搜索帮助