Embedded Web Player - mekya/antmedia-doc GitHub Wiki

You can use play.html page on your website with IFrame. play.html page is in the Application folder on Ant Media Server.

play.html page accepts 4 arguments

  • id : the stream id to play. It is mandatory.
  • token : the token to play the stream. It's mandatory if token security is enabled on the server-side.
  • autoplay : To start playing automatically if streams are available. Optional. The default value is true
  • playOrder : the order which technologies is used in playing. Optional. Default value is webrtc,hls. possible values are hls,webrtc,webrtc,hls

You can use play.html in IFrame as below:

<iframe width="560" height="315" src="https://your_domain_name:5443/LiveApp/play.html?name=125214322064017559554903" frameborder="0" allowfullscreen></iframe>

IFrame status changes to playing when any broadcast is streaming as below image

⚠️ **GitHub.com Fallback** ⚠️