Digital video Speak To Females – Randomly Conversation Dating

rn#import Basis / Basis. h > #import UIKit / UIKit. h > #import V >framework / Headers / Lmi / V >/ V >h >Next, you need to convey to Xcode wherever your bridging header is situated.

Go back again to your develop options, and look for for “Aim-C Bridging Header. ” Add the relative route to the header file we just made:We continue to have to have just one more location in the construct configurations.

Search for “Header Search Paths” and inform Xcode to seem for header information underneath this listing:Now your Swift project is completely ready to consume Vidyo objects. Connecting to a video place. Now that we’ve obtained the set up carried out, lets increase some code to be a part of a video clip convention.

Commence Now

The solitary-check out software arrives with a default view controller, which is the starting off place for your application. In this view controller I extra a UIView item and also included “Connect” and “Disconnect” buttons. I connected the UIView to an IBOutlet in its corresponding ViewController course, contacting it “vidyoView. ” Ultimately, I linked the buttons to an IBAction to sign up for the simply click occasions. rn@ IBOutlet weak var v >: UIView ! @ IBAction func connectClicked ( sender : Any ) >rn@ IBAction func disconnectClick ( sender : Any ) >I am likely to use vidyoView as my movie meeting UI.

In other terms, this is the perspective where by I am going to explain to the vidyo. io SDK to attract my preview and the remote members.

I will use the “Connect” and “Disconnect” button click events to sign up for or leave the online video contact. Here are the ways to follow:Note: In this action, to hook up to a movie convention simply call, you will have to have a legitimate token.

A token is a shorter-lived authentication credential that you develop for your people. Understand far more about tokens and how to create them. And that’s it! Your software is video-chat.app completely ready to join multiparty video conferences. Putting this all alongside one another, this is how the check out controller course would seem:class ViewController : UIViewController , VCIConnect.

private var connector : VCConnector ? @ IBOutlet weak var v >: UIView !overr >( ) super . viewDidLoad ( ) // Do any additional set up after loading the see, ordinarily from a nib. VCConnectorPkg. vcInitialize ( ) connector = VCConnector ( UnsafeMutableRawPointer ( and v >) , viewStyle : .

default , remoteParticipants : ) >overr >( ) tremendous . didReceiveMemoryWarning ( ) // Dispose of any assets that can be recreated. >rn@ IBAction func connectClicked ( sender : Any ) connector ? . connect ( “prod. vidyo. io” , token : “XXXX” , displayName : “Sachin” , useful resource >: “demoRoom” , join : self ) >rn@ IBAction func disconnectClick ( sender : Any ) connector ? . disconnect ( ) >rn// MARK: – VCIConnect delegate approaches.

func onSuccess ( ) print ( “Connection Thriving” ) >func onFailure ( purpose : VCConnectorFailReason ) print ( “Relationship unsuccessful ( cause)” ) >func onDisconnected ( cause : VCConnectorDisconnectReason ) print ( “Call Disconnected” ) > >To see a entire undertaking, together with equally composited and tailor made check out structure options, see the sample job shared on our Github page.

相关新闻

发表评论

联系我们

151-1101-0018

在线咨询:点击这里给我发消息

邮件:30115776@qq.com

工作时间:周一至周五,9:30-18:30,节假日休息

QR code