ossrs / oryx

Oryx(SRS Stack) is an all-in-one, out-of-the-box, and open-source video solution for creating online video services, including live streaming and WebRTC, on the cloud or through self-hosting.
https://ossrs.io/oryx
MIT License
448 stars 97 forks source link

The current version of the SRS-Stack, upon concluding a live stream, generates an M3U8 file for the live recording. This file cannot be played on Apple devices and the WeChat application for PC. #153

Open hjxsj opened 6 months ago

hjxsj commented 6 months ago

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

winlinvip commented 6 months ago

After the live broadcast is recorded, an MP4 file will be generated instead of streaming in HLS format.

TRANS_BY_GPT4

hjxsj commented 6 months ago

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

hjxsj commented 6 months ago

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.

Allow cross-origin

    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

winlinvip commented 6 months ago

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

anandchristudas commented 4 months ago

Is it possible to record a Live rstp stream from an IP camera directly on the SRS stack ?