Streaming previously recorded videos #6270
-
Hello, I have several questions regarding both Ant Media Server and WebRTC. I apologize preemptively for any silly questions, as I am new to both Ant Media Server and WebRTC technology. I have a server with a collection of pre-recorded video files. My objective is to make these recorded videos accessible to the clients. From my understanding, once Ant Media Server is installed and running, it is possible to upload videos through the control panel. Could someone confirm whether these uploaded video files are accessible via the WebRTC protocol? Additionally, my Ant Server is hidden behind a NAT, and I want to make videos accessible to clients outside of the local network. As far as I comprehend, I need to open port 5080 within my firewall to facilitate this. If videos are accessible through WebRTC, is my understanding correct that communication via port 5080 is solely utilized for signaling purposes, and the media traffic itself is routed through a peer-to-peer connection or a TURN server? Furthermore, is it necessary to establish my own TURN server to make videos accessible to the external clients? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @nik123, No worries at all, I am happy to help you with your questions :)
To summarize, yes, you can make your recorded videos accessible via WebRTC through Ant Media Server. Opening port 5080 facilitates signaling, while media traffic is typically routed through UDP, with the option of using a TURN server if necessary for clients with restrictive network conditions. If you have further questions or need clarification on any point, feel free to ask! -- |
Beta Was this translation helpful? Give feedback.
Hi @nik123,
How are you?
No worries at all, I am happy to help you with your questions :)
Accessing Recorded Videos via WebRTC:
Ant Media Server supports VOD streaming as well. You can create a playlist with the VoD files and stream them via WebRTC as well as HLS.
Since these are VoD files, I will recommend playing them with HLS instead of WebRTC unless you also plan to have some kind of interactivity.
Here's a guide about how to create playlists and stream them https://antmedia.io/docs/category/playlist/
Network Configuration:
Yes, you're correct. If your Ant Media Server is behind a NAT (Network Address Translation), you'll need to open port 5080 (HTTP)/5443 (HTTPS) to allow externa…