0
我試圖使用LFLiveKit sdk向服務器發送rtmp流。我試圖這樣流像素緩衝區像這樣,使用LFLiveKit捕獲屏幕和流到rtmp服務器
var Lsession: LFLiveSession = {
let audioConfiguration = LFLiveAudioConfiguration.defaultConfiguration(for: LFLiveAudioQuality.high)
let videoConfiguration = LFLiveVideoConfiguration.defaultConfiguration(for: LFLiveVideoQuality.low3)
let session = LFLiveSession(audioConfiguration: audioConfiguration, videoConfiguration: videoConfiguration)
return session!
}()
let stream = LFLiveStreamInfo()
stream.url = "rtmp://domain.com:1935/show/testS"
Lsession.pushVideo(frame.capturedImage)
如何初始化屏幕捕獲會話?任何指針?