Coder Social home page Coder Social logo

easydarwin / easyplayer.js Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 275.0 17.5 MB

EasyPlayer.js H5播放器,是一款免费的能够同时支持HTTP、RTMP、HTTP-FLV、HLS(m3u8)直播与点播等多种协议,支持H.264、H.265、AAC等多种音视频编码格式,支持mse、asm、wasm等多种解码方式,支持Windows、Linux、Android、iOS全平台终端的H5播放器。EasyPlayer.js H5 Player support HTTP/RTMP/HTTP-FLV/HLS(m3u8) live streaming & vod streaming,support H.264/H.265/AAC video & audio codec,support mse/asm/wasm decode mode,support Windows/Linux/Android/iOS platform,EasyPlayer.js uses leading-edge technology.

Home Page: http://www.tsingsee.com/

easyplayer.js's Introduction

EasyDarwin开源流媒体服务器

主要功能特点

安装部署

  • 直接下载运行Release包

  • 直接运行(Windows)

    EasyDarwin.exe

    Ctrl + C 停止服务

  • 以服务启动(Windows)

    ServiceInstall-EasyDarwin.exe

    以 ServiceUninstall-EasyDarwin.exe 卸载 EasyDarwin 服务

  • 直接运行(Linux/macOS)

      cd EasyDarwin
      ./easydarwin
      # Ctrl + C
    
  • 以服务启动(Linux/macOS)

      cd EasyDarwin
      ./start.sh
      # ./stop.sh
    

二次开发

准备工具

    # go tools
    go get -u -v github.com/kardianos/govendor
    go get -u -v github.com/penggy/gobuild

    # npm tools
    npm i -g apidoc
    npm i -g rimraf

编译命令

  • 获取代码

      cd $GOPATH/src/github.com
      mkdir EasyDarwin && cd EasyDarwin
      git clone https://github.com/EasyDarwin/EasyDarwin.git --depth=1 EasyDarwin
      cd EasyDarwin
    
  • 以开发模式运行

      npm run dev
    
  • 以开发模式运行前端 Run as dev mode

      npm run dev:www       
    
  • 编译前端 Build www

      cd web_src && npm i
      cd ..
      npm run build:www
    
  • 编译 Windows 版本 Build windows version

      npm run build:win
    
  • 编译 Linux/macOS 版本 (在 bash 环境下执行) Build linux/macOS version

      npm run build:lin       
    
  • 清理编译文件 Clean

      npm run clean 
    

技术支持

  • 邮件:[email protected]

  • QQ交流群:965773206

  • EasyDarwin开源流媒体服务器是属于EasyDarwin开源团队的免费产品,大家免费使用,同时,EasyDarwin开源团队也能提供相应的收费技术咨询、技术服务和技术定制,谢谢大家支持!

获取更多信息

EasyDarwin开源项目:www.EasyDarwin.org

Copyright © EasyDarwin.org Team 2012-2024

easyplayer.js's People

Contributors

babosa avatar cuixu1987 avatar itsujingli avatar likeadust avatar taoist-yang avatar xiaolebailetu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyplayer.js's Issues

VM242:40534 Uncaught TypeError: c.vjs_snap is not a function

将easyplayer 放于 dialog中,dialog 关闭后报 “VIDEOJS: ERROR: TypeError: this.el_.vjs_getProperty is not a function ”;

再次打开dialog 点击截图时 报错:“VM242:40534 Uncaught TypeError: c.vjs_snap is not a function”

在某些云平台的视频,流地址和拉取的ts分片地址不一致,downloadWorker在拼接uri和baseurl时就无法得到ts分片的真实地址

H265音视频不同步

我试了去推本地的H265 aac的mp4,然后用这个去拉播放没有问题。但是转推rtsp alaw的实时流为rtmp aac,然后去拉就出现音视频不同步的问题,直接去推本地h265 aac的flv再拉也是音视频不同步,是声音不对。

現在最新版無法撥放

幾個月前使用EasyPlayer-element.min.js正常
現在抓最新的版本使用同樣的代碼沒有畫面 但是flv有在傳輸
稍微試了試 好像抱怨無法識別video/x-flv的樣子 對前端不是很了解 僅供參考
EasyPlayer-element.min.js跟vue cli3建構的EasyPlayer-lib.min.js都相同的問題

<!DOCTYPE html>
<html>
<head>
  <title>player</title>
  <meta charset="utf-8" />
  <script src="js/vue.min.js"></script>
  <script src="./EasyPlayer-element.min.js"></script>
</head>

<body>
  <div id="app" style="width: 100%; height: 100%">
    <easy-player
      :video-url="url"
      :video-title="title"
      live="true"
      stretch="true"
      show-custom-button="false"
      hasvideo="true"
      hasaudio="false"
    ></easy-player>
  </div>
</body>

<script>
new Vue({
  el: '#app',
  data: {
    url: '',
    title: '',
  },

  created() {
    let urlParams = new URLSearchParams(window.location.search)
    this.title = urlParams.get('title')
    this.url = urlParams.get('url')
  }
})
</script>
</html>

文件没音频不能播放

flv文件,只有视频没有音频。播放提示失败。
音频不识别,播放也失败。
音频aac 视频h264 播放成功,但是卡顿严重。
怎么改善?

265-Hls 会出现播放非常卡顿的现象

我们用海康的摄像头进行推流,测试发现FLV播放正常,但是HLS播放非常卡顿,看控制台现象似乎一直收不到流;
转换测试工具,使用ffplay进行验证,发现播放正常;
这个问题会是什么情况导致的?

No sound on iOS with FLV input.

Hi,

we are having an issue where an FLV stream has no sound on iOS - I guess this is due to the fallback of software decoders since Safari on iOS does not support mse. Since this is as far as I understand an open project, is there a chance to get sources of the player and of libDecode, to understand what is going on? Or is that part proprietary and you do not plan to publish that so that others can debug and investigate?

H.265 播放报错,Hls 和 http-flv 两种方式都出错

使用Hls方式拉流 报
Uncaught TypeError: Cannot read property 'segments' of undefined

使用Flv 的方式报
EasyPlayer-lib.min.js:1 Uncaught Error: Uncaught, unspecified "error" event. (MediaError)
at n.emit (EasyPlayer-lib.min.js:1)
at n. (EasyPlayer-lib.min.js:1)
at n.emit (EasyPlayer-lib.min.js:1)

播放H264的视频流正常

videojs流畅播放,easy卡的一比

rtmp
videojs流畅播放,easy卡的一比

videojs卡在第一帧的,easy能播,还是卡的一比

rtmp://140.206.75.44:1935/live/pag/10.33.71.10/7302/881b18264d2b4770a55ca3bb932cc8d6/0/SUB/TCP

Legacy分支无法播放H265, EasyPlayer-RTMP客户端可以播放

你好,
我用ffmpeg进行RTSP拉流,然后推到nginx-rtmp上, EasyPlayer-RTMP客户端是可以播放的, 但是网页版EasyPlayer.js不能播放, rtmp,flv,m3u8都不能播放, 请帮忙分析下原因,谢谢。 ffmpeg命令如下:
./ffmpeg -i rtsp://admin:[email protected]:554/Streaming/Channels/101 -c:v copy -c:a copy -f flv rtmp://192.168.33.243:51935/live/h265

网页端现象是: 播放rtmp没反应, 播放flv一直pending, 播放m3u8一直显示加载中。。

web如何播放海康的h265摄像头

测试环境是海康的h265摄像头,推流到nginx转flv,然后浏览器上没有图像,但是好像有数据接收到,看到一些信息如下:
[MSEController] MediaSource onSourceOpen
[FLVDemuxer] Parsed OnMetaData
[FLVDemuxer] Parsed AVCDecoderConfigurationRecord
[FLVDemuxer] Video resolution:1280*720
[MSEController] Received Initialization Segment,mimeType: video/mp4;codecs=avc1.4d001f
然后一直就是
InitialMetadataDiapatehed fail
InitialMetadataDiapatehed fail

不能播放rtmp,

rtmp://58.200.131.2:1935/livetv/hunantv 这个rtmp地址,播放不了,但是vlc可以播放

不支持rtmp格式

这个略坑,明明不支持rtmp格式,开篇介绍却说支持。实际测试并不支持、、、蛋蛋的忧伤啊

报错

视频流服务关闭报这个错误。能不弹出alart框。影响用户体验。

1603177650408
Console 信息
UnityLoader.js:3 Invoking error handler due to
Uncaught TypeError: Cannot read property 'currentSpeed' of null

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.