illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.99k stars 1.53k forks source link

websocket播放不了 #80

Open dmbmingbin opened 6 years ago

dmbmingbin commented 6 years ago

按示例代码websocket播放不了,其次在微信里播放只能使用hls吗?

dmbmingbin commented 6 years ago

另外dash流怎么播放?

dmbmingbin commented 6 years ago

windows怎么使用FFmpeg,Windows是否需要自己下载FFmpeg的? trans: { ffmpeg: '/usr/local/bin/ffmpeg', tasks: [ { app: 'live', ac: 'aac', hls: true, hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]', dash: true, dashFlags: '[f=dash:window_size=3:extra_window_size=5]' } ] }

illuspas commented 6 years ago

windows的路径使用

c:\\ffmpeg\\bin\\ffmpeg.exe

这样的全路径,需要双斜杠

illuspas commented 6 years ago

微信里可以使用websocket-flv https://github.com/illuspas/NodePlayer.js