Closed youssmak closed 4 years ago
You should broadcast a message after joining a conference (.then(result => Voxeet.broadcast(result.conferenceId))
).
-> create -> join -> broadcast message
To be clear, i'm not using the sendBroadcastMessage method but the broadcast() one. My app still crash when joining before broadcasting :
const { Voxeet, UserType } = VoxeetSDK;
const user = {user: {type: UserType.LISTENER}};
Voxeet.initializeToken("YOUR_CONSUMER_KEY", "YOUR_CONSUMER_SECRET")
.then(() => Voxeet.defaultBuiltInSpeaker(true))
.then(() => Voxeet.defaultVideo(true))
.then(() => Voxeet.connect(new UserInfo(id, name, avatar)))
.then(() => Voxeet.create({alias: conferenceAlias}))
.then(result => Voxeet.join(result.conferenceId, listener ? user : {})
.then(result => Voxeet.broadcast(result.conferenceId))
.catch(err => alert(err));
It doesn't crash on Android with or without joining before broadcasting
Sorry @youssmak I misunderstood the question because I totally forgot that we had a broadcast
method on Cordova which basically do a join with some internal options.
I’m working on a fix for the crash and do a basic join for iOS / Android compatibility.
Bundled within the 1.2.2, this adds the fix for iOS
Describe the bug
The app crash when using broadcast method on iOS. The app works well replacing broadcast method by join method.
Expected Behaviour
Support broadcast method, and show user in fullscreen even if no user has joined the livestream yet (same as on Android)
Minimalistic code (recommended)
Logs
Specifications