It is an open-source project that is implemented as a plugin for Ant Media Server. Its source code is here. You may also consider this project as a boilerplate for your own plugins.
Highlights
Before starting:
Prerequisites:
Deploying:
wget https://github.com/ant-media/Plugins/raw/master/MediaPushPlugin/build/media-push-plugin.jar
/usr/local/antmedia
sudo cp media-push-plugin.jar /usr/local/antmedia/plugins
sudo service antmedia restart
The plugin is controlled using REST API methods. Such as starting and stopping the web page recording.
SERVER_URL/APP_NAME/rest/v1/media-push/start
curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "http://localhost:5080/WebRTCAppEE/rest/v1/media-push/start?streamId=your-streamid" -d '{"url": "https://example.com", "width": 1280, "height": 720}'
SERVER_URL/APP_NAME/rest/v1/media-push/stop/{streamId}
cURL example:
curl -i -X POST -H "Accept: Application/json" "http://localhost:5080/WebRTCAppEE/rest/v1/media-push/stop/{streamId}"
Support
Our engineers are available for you. Please contact us if you need technical support or help. If you need more dedicated support, we offer support packages.
will be provided shortly