Parameter | Type | Required | Description |
roomId | No | Room ID, for details, please refer to RoomId. | |
timeout | Number | No | Call timeout, default: 40 seconds, unit: seconds. timeout = 0 means no timeout |
userData | String | No | Custom extension fields when initiating a call |
offlinePushInfo | No | Custom offline message push parameters |
Parameter | Type | Required | Description |
strRoomId | String | No | Room ID, String type |
intRoomId | Number | No | Room ID, String type |
Parameter | Type | Required | Description |
title | String | No | offlinepush notification title |
desc | String | No | offlinepush notification description |
ignoreIOSBadge | boolean | No | Ignore badge count for offline push (only for iOS), if set to true, the message will not increase the unread count of the app icon on the iOS receiver's side. |
iOSSound | String | No | Offline push sound setting (only for iOS). When sound = IOS_OFFLINE_PUSH_NO_SOUND , there will be no sound played when the message is received. When sound = IOS_OFFLINE_PUSH_DEFAULT_SOUND , the system sound will be played when the message is received. If you want to customize the iOSSound, you need to link the audio file into the Xcode project first, and then set the audio file name (with extension) to the iOSSound. |
androidSound | String | No | Offline push sound setting (only for Android, supported by IMSDK 6.1 and above). Only Huawei and Google phones support setting sound prompts. For Xiaomi phones, please refer to: Xiaomi custom ringtones. In addition, for Google phones, in order to set sound prompts for FCM push on Android 8.0 and above systems, you must call setAndroidFCMChannelID to set the channelID for it to take effect. |
androidOPPOChannelID | String | No | Set the channel ID for OPPO phones with Android 8.0 and above systems. |
androidVIVOClassification | Number | No | Classification of VIVO push messages (deprecated interface, VIVO push service will optimize message classification rules on April 3, 2023. It is recommended to use setAndroidVIVOCategory to set the message category). 0: Operational messages, 1: System messages. The default value is 1. |
androidXiaoMiChannelID | String | No | Set the channel ID for Xiaomi phones with Android 8.0 and above systems. |
androidFCMChannelID | String | No | Set the channel ID for google phones with Android 8.0 and above systems. |
androidHuaWeiCategory | String | No | Classification of Huawei push messages, please refer to: |
isDisablePush | boolean | No | Whether to turn off push notifications (default is on). |
iOSPushType | No | iOS offline push type,default is APNs |
Parameter | Description |
APNs | APNs |
VoIP | VoIP |
Parameter | Description |
Audio | Audio call |
Video | Video call |
Parameter | Description |
Front | Front camera |
Back | Rear camera |
Parameter | Description |
Earpiece | Audio route is earpiece |
Speakerphone | Audio route is Speakerphone |
Parameter | Description |
Fill | Fill mode: the video image will be centered and scaled to fill the entire display area, where parts that exceed the area will be cropped. The displayed image may be incomplete in this mode. |
Fit | Fit mode: the video image will be scaled based on its long side to fit the display area, where the short side will be filled with black bars. The displayed image is complete in this mode, but there may be black bars. |
Parameter | Description |
Rotation_0 | No rotation |
Rotation_90 | Clockwise rotation by 90 degrees |
Rotation_180 | Clockwise rotation by 180 degrees |
Rotation_270 | Clockwise rotation by 0 degrees |
Parameter | Description |
Resolution_640_360 | Aspect ratio: 16:9;resolution: 640x360;recommended bitrate: 500kbps |
Resolution_640_480 | Aspect ratio: 4:3;resolution: 640x480;recommended bitrate: 600kbps |
Resolution_960_540 | Aspect ratio: 16:9;resolution: 960x540;recommended bitrate: 850kbps |
Resolution_960_720 | Aspect ratio: 4:3;resolution: 960x720;recommended bitrate: 1000kbps |
Resolution_1280_720 | Aspect ratio: 16:9;resolution: 1280x720;recommended bitrate: 1200kbps |
Resolution_1920_1080 | Aspect ratio: 16:9;resolution: 1920x1080;recommended bitrate: 2000kbps |
Parameter | Description |
Landscape | Landscape resolution, such as Resolution.Resolution_640_360 + ResolutionMode.Landscape = 640 × 360. |
Portrait | Portrait resolution, such as Resolution.Resolution_640_360 + ResolutionMode.Portrait = 360 × 640. |
Was this page helpful?