swif local/Remoteで画面2分割対応

70 views
Skip to first unread message

kazuhiro1128 H

unread,
Dec 11, 2016, 5:03:10 AM12/11/16
to SkyWay Technical Forum
担当者様

お世話になっております。枦川(ハシカワ)と申します。

現在、動画系のアプリを作成しようと思い、local(自分)と、Remote(相手)の動画を
画面2分割で表示しようと、以下のように設定しているのですが、反映されていないように思われます。

<該当コード>

let bounds = UIScreen.main.nativeBounds
let constraints = SKWMediaConstraints()
constraints.maxFrameRate = 10
constraints.maxWidth = UInt(bounds.width)
constraints.minWidth = UInt(bounds.width)
constraints.maxHeight = UInt(bounds.height / 2)
constraints.minHeight = UInt(bounds.height / 2)
   
constraints.cameraMode = .CAMERA_MODE_ADJUSTABLE
constraints.cameraPosition = .CAMERA_POSITION_FRONT
self.localStream = SKWNavigator.getUserMedia(constraints)

リファレンスにあるように以下の組み合わせ以外は、対応していないということでしょうか?

(Width x Height): 640x480, 352x288 
min (Width x Height): 192x144, 352x288, 512x384, 640x480

<環境>
SDK v0.2.0
iOS 
iPhone6 Plus 10.1.1
iPhone6 9.3.3

お忙しいところ申し訳ございませんが、ご回答の程宜しくお願いします
以上、宜しくお願い致します。

Reply all
Reply to author
Forward
0 new messages