用flv.js播放直播视频流http-flv,不知该用什么服务器啊?

查看:265
本文介绍了用flv.js播放直播视频流http-flv,不知该用什么服务器啊?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

服务器我用的srs,不过没找到跨域的配置,而flv.js需要播放跨域的flv直播视频流,不知大家都用的什么技术

解决方案

https://github.com/gwuhaolin/...

https://github.com/gwuhaolin/...

livego

live streaming server write in pure go, simple efficient and can run in any platform.

Support

Transport protocol

  • [x] RTMP

  • [x] AMF

  • [x] HLS

  • [x] HTTP-FLV

File container

  • [x] FLV

  • [x] TS

AV coder

  • [x] H264

  • [x] AAC

  • [x] MP3

Install

Download Bin

releases

Docker

TODO

Install System Service

TODO

Build From Source code

  1. run git clone https://github.com/gwuhaolin/livego.git

  2. cd to livego dir then run go build

Use

  1. run livego to start livego server

  2. push RTMP stream to rtmp://localhost:1935/live/movie, eg use ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie

  3. play live stream form:

    • RTMP:rtmp://localhost:1935/live/movie

    • FLV:http://127.0.0.1:7001/live/movie.flv

    • HLS:http://127.0.0.1:7002/live/movie.m3u8

这篇关于用flv.js播放直播视频流http-flv,不知该用什么服务器啊?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆