Add a video file to mixer by API

Max

Administrator
Staff member
Good day.
You can play MP4 file as VOD then add VOD stream to mixer:
1. Place MP4 file to /usr/local/FlashphonerWebCallServer/media folder
2. Use REST query to capture VOD stream
Code:
POST /rest-api/vod/startup HTTP/1.1 
{
    "uri":"vod://sample.mp4"
    "localStreamName": "test"
}
3. Add VOD stream to mixer
Code:
POST /rest-api/mixer/add HTTP/1.1
{
    "uri": "mixer://mixer1",
    "remoteStreamName": "test"
}
You can also place the file to AWS S3 storage to capture VOD stream from.
 

Max

Administrator
Staff member
Download from external storage was tested only with AWS S3.
 
Top