julie Prodhomme Posted June 21, 2021 Share Posted June 21, 2021 Hello Everyone, I am working on a virtual classroom project. The teacher is the sender and children the viewers. I have to use the API ant media and language PHP.I'm completely lost. Someone have an example to create this? Sorry for my english, i'm not english^^ Thanks Link to comment Share on other sites More sharing options...
0 Cem K1l1 Posted June 23, 2021 Share Posted June 23, 2021 Hello, You can send an rtmp stream by adding an rtmp endpoint for a stream that is broadcasting on your server. Or, you can publish rtmp directly to your server with software like OBS. Here is a guide for OBS https://github.com/ant-media/Ant-Media-Server/wiki/Open-Broadcaster-Software-Publishing If you just want to send an rtmp stream you can add an RTMP endpoint with Rest API. If you have an existing stream on your server, you can use this command to add an RTMP endpoint to that existing stream. This is generated by Postman Application. You can just import the below code and try it on your end if you have Postman. curl --request POST \ --url http://SERVER1/LiveApp/rest/v2/broadcasts/stream1/rtmp-endpoint \ --header 'accept: Application/json' \ --header 'content-type: application/json' \ --data '{"rtmpUrl":"rtmp://SERVER2/LiveApp/testtest"}' Notice that I have a stream with streamid=stream1, broadcasting on SERVER1. Then I add an RTMP endpoint to it to redirect it to another server which is SERVER2. The data you should be providing is just this line {"rtmpUrl":"rtmp://SERVER2/LiveApp/testtest"} This redirects stream1 to SERVER2 with the stream name=testtest Regards Link to comment Share on other sites More sharing options...
Question
julie Prodhomme
Hello Everyone,
I am working on a virtual classroom project. The teacher is the sender and children the viewers.
I'm completely lost.
Someone have an example to create this?
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Jun 21
1
Jun 23
1
Top Posters For This Question
julie Prodhomme 1 post
Cem K1l1 1 post
Popular Days
Jun 21 2021
1 post
Jun 23 2021
1 post
1 answer to this question
Recommended Posts