Jump to content
  • 0

How to I run a stream in my webapp without using iframe?



  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

Hi there

Thanks for pointing me in the right direction. I've been looking it over and perhaps because I'm new at coding, I can't seem to make much sense of it all.

I'm trying to use the VideoJs library to get a feed from my ant server and play it in my webapp. If you could please help me out a little more with some explanations of the basics I would greatly appreciate it.



Link to comment
Share on other sites

  • 0

Sure, I think you can use our webrtcadaptor.js and websocketadaptor. 

Copy the whole chunk of webrtcadaptor in the player.html : https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/player.html#L259

As you can see from the constructor, we are using 


remoteVideoId : "remoteVideo",  to match video element in the file. See the :https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/player.html#L73 

That Id receiving the video.

At the end of the file:https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/player.html#L458

I hope this guidence will help you even more.

Best Regards,

Link to comment
Share on other sites

  • 0

Hi Enes

Thanks very much for the help I aprciate it. I wanted ask, how do I get the stream from my ant server while my website is hosted on another server all together? I see the code that you sent reference the url which won't work in my case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...