Coder Social home page Coder Social logo

tv-video-player-plugin's Introduction

电视机顶盒视频播放插件

  • 电视机顶盒UUTVOS操作系统中浏览器播放 .m3u8 格式视频插件。
  • 实测,支持 .mp4 格式。
  • 使用 NGB-H 技术规范。

使用方法(参考 index.html)

var videoPlayer = new VideoPlayerPlugin(xAxis,yAxis,width,height,fullScreen,url);
// 销毁 MediaPlayer 实例
videoPlayer.destroy();

参数说明

  1. xAxis: 视频区域左上角的 x 轴坐标值。数据类型:number。
  2. yAxis: 同上。
  3. width: 视频区域的宽度。数据类型:number。
  4. height: 同上。
  5. fullScreen: 数据类型:boolean。true:视频全屏播放,不能使用切换按钮切换。false:视频小窗口播放,可以切换全屏播放。(切换按钮的 keycode:2307)
  6. url: 视频的播放地址。数据类型:string。

一点点建议:在如下情况中,视频播放最好放到一个空白的 html 页面中去做:如果说是在视频列表页上加一个遮罩层播放视频,视频控制和页面控制会有一定的冲突,特别是需要将销毁实例的操作绑定到返回按键上的时候,但是返回键得尽量保持它的默认行为,这里就会冲突。

tv-video-player-plugin's People

Contributors

lukang689 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.