Giter VIP home page Giter VIP logo

xgplayerpro's Introduction

官方概述

西瓜官方文档

魔改说明

因业务需要特基于西瓜播放器源代码基础上进行魔改,使其支持ws-flv协议。后续考虑在此基础上再添加其他解码功能。使用方法与官方保持一致。 flv插件自行打包安转自己项目中

ws-flv示例页面 (https://github.com/youxiuchen/xgplayerpro/edit/main/fixtures/flv/index.html)

页面调试

yarn 
yarn build:flv
以服务形式打开flv示例页面

// 打包flv插件
 执行  yarn build
选择 xgplayer-flv


// 项目中引入
import FlvPlayer from 'xgplayer-flv插件路径'


//使用

new window.Player({
          id: 'mse',
          isLive: true,
          playsinline: true,
          url: 'http://127.0.0.1:8081/live/liveStream.flv',
          autoplay: true,
          height: window.innerHeight,
          width: window.innerWidth,
          plugins: [window.FlvPlayer]
      })

xgplayerpro's People

Contributors

youxiuchen 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.