|
@@ -430,6 +430,18 @@ public class Nexilis: NSObject {
|
|
|
API.receiveCCall(sParty: destination, nCamIdx: backCamera ? 0 : 1, nResIdx: 2, nVQuality: 4, ivRemoteView: listRemoteViews, ivLocalView: localView, ivRemoteZ: remoteViewSpeaker)
|
|
|
}
|
|
|
|
|
|
+ public static func apiInitiateStreaming(localView: UIImageView, titleStream: String = "", backCamera: Bool = false) {
|
|
|
+ API.initiateBC(sTitle: titleStream, nCamIdx: backCamera ? 0 : 1, nResIdx: 2, nVQuality: 4, ivLocalView: localView)
|
|
|
+ }
|
|
|
+
|
|
|
+ public static func apiJoinStreaming(streamerId: String, remoteView: UIImageView) {
|
|
|
+ API.joinBC(sBroadcasterID: streamerId, ivRemoteView: remoteView)
|
|
|
+ }
|
|
|
+
|
|
|
+ public static func apiTerminateStreaming(streamerId: String?) {
|
|
|
+ API.terminateBC(sBroadcasterID: streamerId)
|
|
|
+ }
|
|
|
+
|
|
|
public static func apiEndAllCall() {
|
|
|
API.terminateCall(sParty: nil)
|
|
|
}
|