Skip to content

Commit

Permalink
refs #1568
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 12, 2024
1 parent a64c6a4 commit 6282e82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Examples/iOSSwiftUI/Model/ViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ final class ViewModel: ObservableObject {

func config() {
rtmpStream = RTMPStream(connection: rtmpConnection)
rtmpStream.videoMixerSettings.mode = .offscreen
rtmpStream.screen.startRunning()
if let orientation = DeviceUtil.videoOrientation(by: UIDevice.current.orientation) {
rtmpStream.videoOrientation = orientation
}
Expand Down

0 comments on commit 6282e82

Please sign in to comment.