MonaSolutions / MonaServer

A lightweight RTMFP, RTMP, WebSocket and HTTP server!
http://monaserver.ovh
GNU General Public License v3.0
714 stars 214 forks source link

Doesn't have Websocket player to play video and video #71

Open cphuoc91 opened 6 years ago

cphuoc91 commented 6 years ago

I have tried to in the documentation but couldn't find the mention about websocket video player. Can help me? I wanna to tried the demo of html5 streaming player

thomasjammet commented 6 years ago

Hi,

There is no official websocket player for now though you can use the http mp4 feature of MonaServer2, for this just publish an h264/aac with whatever publisher you want (for example OBS) and you can play it using the video tag. Here is an example of html for this purpose, just change "test123" to your publication name :

<html>
<head>
</head>
<body>
  <h1>MP4 Sample</h1>
  <video src="http://localhost/test123.mp4" type="video/mp4" controls=true>Error loading the stream</video>
</body>
</html>

Now if you really need a WebSocket client contact us by mail and let's discuss this.