简体   繁体   中英

Is there any way to record an hls live stream video in safari webview (ionic)?

I'm creating a streaming app with ionic. Is there a way to record a video being played on an iOS system? I need to have a REC button working. I have already searched libs and API but I didn't found any, except for experimental WebRTC support. I don't want to ask my clients to turn on experimental features just to get the app working. Thank you. Currently works on Android with MediaRecorder API.

Cordova-replay is problem on iOS 14, because it uses a deprecated API

IOS has an application for screen recording. Just record and then edit the video to remove the edges.

Record screen:

Use these two Cordova plugins and you can record the screen.

If anyone is going through the same problem, use back-end for processing timestamps and solutions to record your hls stream or.mp4 stream and then send it back correctly to ionic app. I haven't found any solution in-app only. Here a lib that could help.

https://github.com/IcaroAugusto/node-hls-downloader#readme

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM