Unfortunately, no. You should concat the required files to the one using ffmpeg for example.1) Can I create a playlist of mp4 file to streaming sequentially?
Yes. You can play a VOD-live stream directly from browser as described here2) Can I load a vod-live or a playlist directly from url (on demand) without start a rest-api streaming?
First, all the files should be converted to MP4 with the same codec (AAC), channels count (stereo), sample rate (48 kHz to prevent excessive resampling)What, in your opinion, is the best way to run an mp3 playlist controlled by a web client on multiple web clients?
flashphponer.properties
mixer_idle_timeout=10000
opus.encoder.bitrate=128000
POST /rest-api/mixer/startup HTTP/1.1
Host: wcs:8081
Content-Type: application/json
{
"uri":"mixer://clients_playlist",
"localStreamName": "clients_playlist",
"hasVideo": false,
"hasAudio": true
}
POST /rest-api/vod/startup HTTP/1.1
Host: wcs:8081
Content-Type: application/json
{
"uri":"vod-live://first_item.mp4",
"localStreamName": "first_item"
}
POST /rest-api/mixer/add HTTP/1.1
Host: wcs:8081
Content-Type: application/json
{
"uri":"mixer://clients_playlist",
"remoteStreamName": "first_item",
"hasVideo": "false",
"hasAudio": "true"
}
POST /rest-api/vod/find HTTP/1.1
Host: wcs:8081
Content-Type: application/json
{
"localStreamName": "first_item"
}
POST /rest-api/mixer/terminate HTTP/1.1
Host: wcs:8081
Content-Type: application/json
{
"uri":"mixer://clients_playlist"
}
There is Player example, please see its code on GitHub. You can build custom player based on the code.and on client side, what’s player can I use for crossing browser esperience? (we serve more web clients)
The stream should be published on WCS server before playing it, othewise client will receive an error.can I play stream before it was publishing? (Starting automatically when moderator start playlist)
Hi Max,First, all the files should be converted to MP4 with the same codec (AAC), channels count (stereo), sample rate (48 kHz to prevent excessive resampling)
1. Set the following parameter in WCS configuration fileflashphponer.properties
2. When web client is connected and playlist is combined, create an audio only mixer for that clientCode:mixer_idle_timeout=10000 opus.encoder.bitrate=128000
and play the stream "clients_playlist" in clients browserCode:POST /rest-api/mixer/startup HTTP/1.1 Host: wcs:8081 Content-Type: application/json { "uri":"mixer://clients_playlist", "localStreamName": "clients_playlist", "hasVideo": false, "hasAudio": true }
3. Publish the first playlist item
4. Add the first item to the mixerCode:POST /rest-api/vod/startup HTTP/1.1 Host: wcs:8081 Content-Type: application/json { "uri":"vod-live://first_item.mp4", "localStreamName": "first_item" }
5. Periodically check if first_item is finished to playCode:POST /rest-api/mixer/add HTTP/1.1 Host: wcs:8081 Content-Type: application/json { "uri":"mixer://clients_playlist", "remoteStreamName": "first_item", "hasVideo": "false", "hasAudio": "true" }
This query will return 404 when stream is finishedCode:POST /rest-api/vod/find HTTP/1.1 Host: wcs:8081 Content-Type: application/json { "localStreamName": "first_item" }
6. Add the next item to the mixer and so on
7. When client stops the play back, stop the mixer
Code:POST /rest-api/mixer/terminate HTTP/1.1 Host: wcs:8081 Content-Type: application/json { "uri":"mixer://clients_playlist" }
Please clarify how much worse? Are there some clicks, pauses and so on in mixer output stream?all seems to works fine, but quality seems worse that direct vod streaming... It's correct?
opus.encoder.bitrate
parameter as we recommended.top
for example. If CPU load is constantly high, consider to upgrade the server to more CPU cores (for example, from 2 cores to 4)."rest-api / vod / startup"
{ "uri": "vod-live: //output.mp4", "localStreamName": "test" }
opus.encoder.complexity=20
media
folder) using this private form, we will check.