sonysuqin / WasmVideoPlayer

Play file/stream with wasm & webgl & web audio api, using ffmpeg for multi codec support, especially for h265,support http, websocket, http-flv stream.
GNU General Public License v3.0
1.3k stars 375 forks source link

你好,你这个播放器可以支持RTMP的直播流么? #1

Closed zhang6685979 closed 5 years ago

sonysuqin commented 5 years ago

改改就可以了,我目前是支持MP4/H265,就是封装改一下而已,修改一下代码就行。

zhang6685979 notifications@github.com 于2019年3月6日周三 下午5:50写道:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sonysuqin/WasmVideoPlayer/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AEIZkUt-S5FKqXsaW7MUvCeTMrqUe4Agks5vT49LgaJpZM4bgd-c .

zhang6685979 commented 5 years ago

能说下具体的解决方案么,刚接触视频这一块 对这个不太了解

sonysuqin commented 5 years ago

修正一下之前的说法,你的要求实现起来可能比较复杂,因为FFMpeg实现了RTMP的传输,而放到WASM里,FFMpeg不太可能调到底层的Socket,只能回调到JS来通过Websocket或者HTTP来实现RTMP流的传输,不太建议这么做。用这个播放器来播RTMP有什么意义?是要播H265?

zhang6685979 commented 5 years ago

对 要播H265

sonysuqin commented 5 years ago

如果非要做,建议http+fmp4

clwh92 commented 5 years ago

有几个问题需要向您请教一下: 1、H265的视频,32位或者64位的都可以吗?通过您提供的视频是可以播放的 2、每次加载新的视频需要重新编译吗?比如说wasm\ffmpeg文件吗?

sonysuqin commented 5 years ago

可以,不需要重新编译。 @clwh92