Open hjxsj opened 6 months ago
After the live broadcast is recorded, an MP4 file will be generated instead of streaming in HLS format.
TRANS_BY_GPT4
After recording a live broadcast, it was saved as an MP4 file, but the MP4 is slow to buffer when accessed. The HLS format streams in the folder can also be used. I have attempted this, and it seems likely that the issue with playback on Apple phones is due to cross-domain settings.
TRANS_BY_GPT4
I placed the following code /www/server/nginx/conf After adding the code under the http section in the nginx.conf file, it became viewable, but then it was not viewable on Apple phones during live streaming.
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
TRANS_BY_GPT4
The MP4 format must be used; the HLS is merely a temporary file for preview purposes during recording.
However, I will take some time to look into the cross-domain issue.
TRANS_BY_GPT4
Is it possible to record a Live rstp stream from an IP camera directly on the SRS stack ?
The current version of the SRS (Simple Realtime Server) stack is experiencing issues where the M3U8 files from live broadcast recordings, when called by other programs, are not playable on Apple and WeChat PC clients. Please address this problem.
TRANS_BY_GPT4