Currently at the time of playing live stream, we are using url like wss://buckwormvideos.com:8443/<STREAM_NAME>
No. These two is not a part of one URL.
1. You have to conect to:
wss://buckwormvideos.com:8443
2. Then play stream with name:
<STREAM_NAME>
and once the video has been ended, we are playing the recorded file as
https://buckwormvideos.com:8888/client/records/<MP4_FILE_NAME>
Correct
What I had understood with you above comment, we can play the MP4 with as VOD, means we can use url like
No.
1. You have to connect to:
wss://buckwormvideos.com:8443
2. Then play stream with name:
3. The <MP4_FILE_NAME> should be placed in WCS_HOME/media directory.
if stream name to subscribe the live video is TEST_STREAM_NAME, what would be the name of MP4_STREAM_NAME ?
By default, TEST_STREAM_NAME is mapped to random mp4 file.
1. Application will receive notification with file name once the recording is complete.
Example:
https://wcs5-eu.flashphoner.com/client2/examples/demo/streaming/stream_recording/recording.html
2. WCS_HOME/bin/on_record_hook.sh will be executed once the recording is complete.
You have to change this hook script to move files from WCS_HOME/records to WCS_HOME/media
or you can setup symlink
Code:
rm -rf WCS_HOME/media
ln -sf WCS_HOME/records WCS_HOME/media
then recorded mp4 files will be available from WCS_HOME/media directory
You can also configure record name policy in WCS_HOME/conf/flashphoner.properties
Code:
stream_record_policy=streamName
The 'streamName' policy means <STREAM_NAME>.mp4 will be recorded.
For example, if you publish stream with name 'cat', then 'cat.mp4' file will be recorded in WCS_HOME/records.
Therefore you can:
1. Set stream_record_policy=streamName
2. Set symlink media -> records
3. Play stream: vod://cat.mp4
Here cat.mp4 should be located in WCS_HOME/media
4. Use unique stream names to avoid conflicts.