a1q123456 / Harmonic

A high performance and scalable RTMP live streaming application framework
MIT License
209 stars 71 forks source link

WEBSOCKET doesnt work #7

Open meduar opened 5 years ago

meduar commented 5 years ago

Version tested: tag: V0.0.2

I tested the server is working I can see the video through vlc coming from:

rtmp://192.168.1.109/living/fe

But when I tested:

ws://127.0.0.1:8080/living/fe

It didn't work I tried different ways: i always got error messages coming from the players

This error: [MSEController] > MediaSource onSourceOpen [IOController] > Loader error, code = undefined, msg = undefined [TransmuxingController] > IOException: type = Exception, code = undefined, msg = undefined [MSEController] > MediaSource onSourceOpen

And a player I did: Uncaught TypeError: Cannot read property 'flushStashedSamples' of null

How could I make work the WEBSOCKETS?

Thanks in advance.

a1q123456 commented 5 years ago

sorry for the confusion, the url is changed to ws://127.0.0.1:8080/websocketplay/ when you intend to play video by websdocket. that is because websocket and rtmp are two different controllers, so the controller name in url must be changed to websocket controller's name, that is websocketplay