Skip to content

Commit b011d85

Browse files
committed
Remove player controls & fix wrong resolution in pip window
1 parent 5a4309d commit b011d85

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

OpenParsec/ParsecSDKBridge.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ class ParsecSDKBridge: ParsecService
138138
}
139139

140140
func getStatusEx(_ pcs:inout ParsecClientStatus) -> ParsecStatus {
141-
141+
let ans = ParsecClientGetStatus(_parsec, &pcs)
142142
self.hostHeight = Float(pcs.decoder.0.height)
143143
self.hostWidth = Float(pcs.decoder.0.width)
144-
return ParsecClientGetStatus(_parsec, &pcs)
145-
144+
145+
return ans;
146146
}
147147

148148
func setFrame(_ width:CGFloat, _ height:CGFloat, _ scale: CGFloat) {

OpenParsec/PictureInPictureManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class PictureInPictureManager: NSObject {
7474
playbackDelegate: self
7575
)
7676
let controller = AVPictureInPictureController(contentSource: contentSource)
77+
controller.setValue(1, forKey: "controlsStyle")
7778
controller.delegate = self
7879
controller.canStartPictureInPictureAutomaticallyFromInline = false
7980
self.pipController = controller

0 commit comments

Comments
 (0)