I’m engaged on on-line Educating Video Class Integration on which I’ve used Agora SDK.
So the requirement could be very clear, I’ve 2 totally different customers referred to as Scholar & Trainer.
So whereas Launching Scholar App we have to make it possible for All college students who joined lecture ought to present in thumbnail & Trainer ought to present in Full Display screen Video Mode.
However proper now the problem is Trainer it self additionally exhibiting in thumbnail mode on prime of the appliance.
Right here is my Scholar App Video Half Integration :
func launchAgora(uuid: String , token: String)
{
let appId = DATA_CONSTANT.appAgoraId // Your app ID
let rtmToken = token // Your signaling token
let userUuid = uuid // Your person ID
let class_type = Int(DATA_CONSTANT.dicAgoraMeetingClassData?.class_type ?? "4") ?? 4
let mediaOptions = AgoraEduMediaOptions(encryptionConfig: nil, videoEncoderConfig: nil, latencyLevel: .ultraLow, videoState: .on, audioState: .on)
let launchConfig = AgoraEduLaunchConfig(userName: "(DATA_CONSTANT.dicuserData?.first_name ?? "") (DATA_CONSTANT.dicuserData?.last_name ?? "")", // The person identify
userUuid: userUuid, // The person ID
userRole: .pupil, // The person position
roomName: DATA_CONSTANT.dicAgoraMeetingClassData?.roomnaame ?? "", // The room identify
roomUuid: DATA_CONSTANT.dicAgoraMeetingClassData?.roomid ?? "", // The room ID
roomType: AgoraEduRoomType(rawValue: class_type) ?? .small, // The room sort, 0: One-to-one interactive instructing, 2: Massive class, 4: On-line interactive small class
appId: appId, token: rtmToken,
startTime: nil, // The beginning time of the category
period: NSNumber(worth: 7200), // The category period
area: AgoraEduRegion(rawValue: 3) ?? .AP, // The realm
mediaOptions: mediaOptions, // Media stream associated settings
userProperties: nil) // Person properties outlined by the developer
AgoraClassroomSDK.setDelegate(self)
AgoraClassroomSDK.launch(launchConfig, success: launchSuccessBlock, failure: failureBlock)
}
Kindly assist me out to get it resolved.
Any Assist or options might be Extremely Appreciated.