Use the SDK to join a meeting with an iOS device, MSDN

Use the SDK to join a meeting with an iOS device

This article shows an iOS developer how to join the Skype for Business meeting using a meeting URL and enable core Skype for Business App SDK features like Text talk, Audio/Movie talk in your app. Android developers should read Use the SDK to join a meeting with an Android device.

If the anonymous meeting your app joins is hosted in a Skype for Business Online service and your app is not enabled for Skype for Business preview features, then your app must get a discovery Url and an anonymous meeting token to join. A meeting Url does not give you meeting access in this script. Read Use the App SDK and the Trusted Application API to join an Online meeting – iOS

No Skype for Business credentials are used to join the meeting.

Prerequisites

Import the SDK header file: import the required header files.

  • Create Swift Bridging – Header file: Create the bridging-header file and add the following import statement.

Note: Be sure to read Getting commenced with Skype App SDK development to learn how to configure your iOS project for the Skype for Business App SDK. In particular, the following steps assume you have added the ConversationHelper class to your source to let you accomplish the script with a minimum of code.

How to get embarked

In your code, initialize the App SDK application :

You can treat application level Skype configurations like requireWifiForAudio, maxVideoChannels, requireWifiForVideo, setActiveCamera, get available cameras list and other types of information that can influence the Skype session, for example, by default, movie service will be disabled while not on Wi-Fi network. To permit movie call on any network connection, we can configure requireWifiForVideo as go after:

Note: Please refer SfBApplication, SfBConfigurationManager, SfBVideoService, SfBDevicesManager and other classes in SkypeForBusiness framework to treat application level Skype configurations.

Begin joining the meeting by calling Application.joinMeetingAnonymously(String displayName, URI meetingUri). This function comebacks the fresh conversation example that represents the meeting.

Note: all of the SDK’s interfaces must be used only from the application main thread (main run loop). Notifications are delivered in the same thread as well. As a result, no synchronization around the SDK’s interfaces is required. The SDK, however, may create threads for internal purposes.

Initialize the conversation helper with the conversation example obtained in the previous step and delegate object that should receive callbacks from this conversation helper. This will automatically begin incoming and outgoing movie. The delegate class must conform to SfBConversationHelperDelegate protocol.

Demonstrate movie codec license

As per the license terms, before you embark movie for the very first time after install, you must prompt the user to accept the Microsoft end-user license (also included in the SDK).

This code snippet shows the use of the fresh Skype App SDK "setEndUserAcceptedVideoLicense" api. This is required to proceed with features that potentially use movie codecs. Until this method is called, any attempt to use those features will fail. Once the api has been called, the user is considered in acceptance of the third party movie codec license that we use to support movie. Subsequent meetings do not require the license acceptance.

Implement SfBConversationHelperDelegate methods to treat movie service state switches.

Error Treating

SkypeForBusiness SDK API has both SfBApplication and SfBConversation level delegate method for treating possible errors or exceptions. The SfBApplication alertDelegate treats global level concerns, while the SfBConversation alertDelegate treats alerts specific to the conversation example.

The delegate method didReceiveAlert is called when fresh alert shows up in the context where alertDelegate is fastened.

Text Talk

Note: ChatHandler is the helper class that can be used to integrate Skype text talk feature into your application. It can be integrated in similar manner to SfBConversationHelper. Please refer iOS sample apps for further details.

Use the SDK to join a meeting with an iOS device, MSDN

Use the SDK to join a meeting with an iOS device

This article shows an iOS developer how to join the Skype for Business meeting using a meeting URL and enable core Skype for Business App SDK features like Text talk, Audio/Movie talk in your app. Android developers should read Use the SDK to join a meeting with an Android device.

If the anonymous meeting your app joins is hosted in a Skype for Business Online service and your app is not enabled for Skype for Business preview features, then your app must get a discovery Url and an anonymous meeting token to join. A meeting Url does not give you meeting access in this screenplay. Read Use the App SDK and the Trusted Application API to join an Online meeting – iOS

No Skype for Business credentials are used to join the meeting.

Prerequisites

Import the SDK header file: import the required header files.

  • Create Swift Bridging – Header file: Create the bridging-header file and add the following import statement.

Note: Be sure to read Getting commenced with Skype App SDK development to learn how to configure your iOS project for the Skype for Business App SDK. In particular, the following steps assume you have added the ConversationHelper class to your source to let you accomplish the script with a minimum of code.

How to get commenced

In your code, initialize the App SDK application :

You can treat application level Skype configurations like requireWifiForAudio, maxVideoChannels, requireWifiForVideo, setActiveCamera, get available cameras list and other types of information that can influence the Skype session, for example, by default, movie service will be disabled while not on Wi-Fi network. To permit movie call on any network connection, we can configure requireWifiForVideo as go after:

Note: Please refer SfBApplication, SfBConfigurationManager, SfBVideoService, SfBDevicesManager and other classes in SkypeForBusiness framework to treat application level Skype configurations.

Begin joining the meeting by calling Application.joinMeetingAnonymously(String displayName, URI meetingUri). This function comes back the fresh conversation example that represents the meeting.

Note: all of the SDK’s interfaces must be used only from the application main thread (main run loop). Notifications are delivered in the same thread as well. As a result, no synchronization around the SDK’s interfaces is required. The SDK, however, may create threads for internal purposes.

Initialize the conversation helper with the conversation example obtained in the previous step and delegate object that should receive callbacks from this conversation helper. This will automatically begin incoming and outgoing movie. The delegate class must conform to SfBConversationHelperDelegate protocol.

Display movie codec license

As per the license terms, before you commence movie for the very first time after install, you must prompt the user to accept the Microsoft end-user license (also included in the SDK).

This code snippet shows the use of the fresh Skype App SDK "setEndUserAcceptedVideoLicense" api. This is required to proceed with features that potentially use movie codecs. Until this method is called, any attempt to use those features will fail. Once the api has been called, the user is considered in acceptance of the third party movie codec license that we use to support movie. Subsequent meetings do not require the license acceptance.

Implement SfBConversationHelperDelegate methods to treat movie service state switches.

Error Treating

SkypeForBusiness SDK API has both SfBApplication and SfBConversation level delegate method for treating possible errors or exceptions. The SfBApplication alertDelegate treats global level concerns, while the SfBConversation alertDelegate treats alerts specific to the conversation example.

The delegate method didReceiveAlert is called when fresh alert emerges in the context where alertDelegate is linked.

Text Talk

Note: ChatHandler is the helper class that can be used to integrate Skype text talk feature into your application. It can be integrated in similar manner to SfBConversationHelper. Please refer iOS sample apps for further details.

Related video:

Leave a Reply

Your email address will not be published. Required fields are marked *