Gambit Posted January 20, 2021 Share Posted January 20, 2021 Hi there I currently use an iFrame to run the stream video feed in my webapp. I'm looking to go as clean and as fast as possible, how do I run the video feed without an iFrame. Thanks Link to comment Share on other sites More sharing options...
0 Enes Kuluk Posted January 20, 2021 Share Posted January 20, 2021 You can check our player.html or play.html examples to see how we managed to get stream from server. Best Regards, Enes. Link to comment Share on other sites More sharing options...
0 Gambit Posted January 21, 2021 Author Share Posted January 21, 2021 Thanks, I'll start on it today but I may need help. Link to comment Share on other sites More sharing options...
0 Gambit Posted January 21, 2021 Author Share Posted January 21, 2021 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. Thanks Link to comment Share on other sites More sharing options...
0 Enes Kuluk Posted January 21, 2021 Share Posted January 21, 2021 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, Enes. Link to comment Share on other sites More sharing options...
0 Gambit Posted January 23, 2021 Author Share Posted January 23, 2021 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 More sharing options...
0 Enes Kuluk Posted January 25, 2021 Share Posted January 25, 2021 Our javascript sdk is open to public: https://github.com/ant-media/Ant-Media-Server/wiki/Frequently-Asked-Questions#where-to-download-javascript-sdk You can take yours and use it on your website as i described above. Best Regards, Enes. Link to comment Share on other sites More sharing options...
Question
Gambit
Hi there
Link to comment
Share on other sites
Top Posters For This Question
4
3
Popular Days
Jan 21
3
Jan 20
2
Jan 23
1
Jan 25
1
Top Posters For This Question
Gambit 4 posts
Enes Kuluk 3 posts
Popular Days
Jan 21 2021
3 posts
Jan 20 2021
2 posts
Jan 23 2021
1 post
Jan 25 2021
1 post
6 answers to this question
Recommended Posts