简体   繁体   中英

How to pass Twilio Datatracks in React-Native application

I am trying to pass Datatracks in twilio in react application. In web application while connecting to room we pass local video, audio and datatracks but I am not getting how to pass the same datatracks in react-native application. I am using react-native-twilio-webrtc package to generate Twilio Videotracks and connect in group rooms but not getting how to pass datatracks using this pakage and how to get remoteparticipant datatracks. I am new to react-native so if anyone can help me with this it will be very helpfull. Thank you

It appears that a DataTrack is automatically created for you by the React Native client, but it doesn't expose the track or ways to create it yourself.

You can send messages on the local DataTrack by calling on the sendString method on the TwilioVideo component. You can also handle remote DataTracks by passing functions for the properties onParticipantAddedDataTrack , onParticipantRemovedDataTrack , and onDataTrackMessageReceived .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM