Closed mouli457 closed 3 years ago
Hey @mouli457,
I don't want to show remote participant video directly to mobile.I want to show when remote participant accept from web.
If you are accepting the web Participant after they are in the Room, then the web Participant should not publish tracks until they accept. The iOS app can just wait for the subscription callbacks as usual.
Borrowing some similar code from our Web guide.
const { createLocalVideoTrack } = require('twilio-video');
// Web has accepted.
createLocalVideoTrack().then(localVideoTrack => {
return room.localParticipant.publishTrack(localVideoTrack);
}).then(publication => {
console.log('Successfully published your video:', publication);
});
Best, Chris
func didSubscribeToVideoTrack(videoTrack: RemoteVideoTrack, publication: RemoteVideoTrackPublication, participant: RemoteParticipant) {
logMessage(messageText: "Subscribed to \(publication.trackName) video track for Participant \(participant.identity)")
if (self.remoteParticipant == nil) {
_ = renderRemoteParticipant(participant: participant)
}
}
when remote participant join room above method was calling and getting tracksid,trackname and isenable(as YES).
Hey @mouli457,
when remote participant join room above method was calling and getting tracksid,trackname and isenable(as YES).
Yes, that's why I suggested changing your JavaScript application which controls the RemoteParticipant. Have you had a chance to try the code snippet where the JavaScript Participant publishes after connecting to the Room (https://github.com/twilio/video-quickstart-ios/issues/530#issuecomment-663164642)?
Best, Chris
Closing an old ticket but feel free to reopen or file another if you run into any issues.
I have integrate TwilioVideo functionality in my project.when both users connect to same room by mobile and web.Web user video displaying in mobile without accepting from web.
this is my publication response
trackSid: MTb80db34080ec204bd978608425dd3bad trackName: 45339dcc-1ab8-4044-85c8-981d9d8a0229 isEnabled: YES
I don't want to show remote participant video directly to mobile.I want to show when remote participant accept from web.