-
-
Notifications
You must be signed in to change notification settings - Fork 665
Moving from 0.3.x APIs to 0.4.x
shogo4405 edited this page Dec 24, 2022
·
1 revision
- LFView supports preview for AVCaptureSession
- GLLFView supports RTMP playback and CIFilter image.
var rtmpConnection:RTMPConnection = RTMPConnection()
var rtmpStream:RTMPStream = RTMPStream(rtmpConnection: rtmpConnection)
view.addSubview(rtmpStream.view)var lfView:LFView = LFView(frame: view.bounds)
// if you want to use VisualEffect plugin.
// var lfView:GLLFView = GLLFView(frame: view.bounds)
var rtmpConnection:RTMPConnection = RTMPConnection()
var rtmpStream:RTMPStream = RTMPStream(rtmpConnection: rtmpConnection)
lfView.attachStream(rtmpStream)
view.addSubview(lfView)httpStream.attachCamera(AVMixer.deviceWithPosition(.Back))httpStream.attachCamera(DeviceUtil.deviceWithPosition(.Back))HaishinKit.swift | 🇬🇧 HaishinKit.kt | 🇯🇵 Zenn