使用MobileVLCKit从UIView捕获RTSP流

时间:2019-04-08 15:46:45

标签: ios swift rtsp libvlc

我正在使用MobileVLCKit通过RTSP进行流传输,并且需要保存实时流以供以后播放。我尝试使用Glimpse捕获我的VLCPlayer所在的UIView的内容,但是我仍然停留在指定输出URL(Specifying documents directory as file output URL while working with Glimpse in Swift

是否可以使用MobileVLCKit做到这一点?以前,我尝试使用FFmpeg,但是流的质量不好,VLC提供了更好的性能。我只需要能够流传输RTSP并捕获它。有谁知道我可以做到的方式?如果MobileVLCKit无法做到这一点,我也欢迎其他解决方案。

1 个答案:

答案 0 :(得分:0)

版本3.2.0添加了录制API

new recording Api
VLCMediaPlayerDelegate:
    - (void)mediaPlayerStartedRecording:(VLCMediaPlayer *)player;
    - (void)mediaPlayer:(VLCMediaPlayer *)player recordingStoppedAtPath:(NSString *)path;
VLCMediaPlayer:
    - (BOOL)startRecordingAtPath:(NSString *)path;
 - (BOOL)stopRecording;
相关问题