Comments (3)
Hi @iaptsiauri,
We'll look into this to see if it is a bug or not. You should be able to iterate over participant.media.mediaStreams
; however, you must iterate once Tracks have been added. Initially, the media
may be "empty", i.e. contain no Tracks, which would imply there are no MediaStreams either.
One thing you can try is to gate your code on the "trackAdded" event, e.g.
participant.media.once('trackAdded', () => {
console.log(participant.media.mediaStreams.size);
// => should be at least 1 now
});
or, similarly,
participant.media.once('trackAdded', track => {
// Log stream
console.log(track.mediaStream);
});
Best,
Mark
from twilio-video.js.
Hi @markandrus
Thanks, for the suggestion. Will use that approach at the moment and looking forward for the updates on this matter π
from twilio-video.js.
Hi @iaptsiauri,
We do not believe this is a bugβit is possible that a Participant initially connects and your application has not yet received any Tracks from them. Instead, they must be listened for via the "trackAdded" event.
from twilio-video.js.
Related Issues (20)
- I want to Turn off the Remote Participant Media stream using Js/ API HOT 1
- Switching between front and rear cameras requires stopping current track in some scenarios HOT 4
- Issues on iOS 17 in mobile Chrome and Safari HOT 6
- Data track does not trigger "trackSubscribed" on unpublish republish data track. HOT 9
- Intermittent video stream flickering on Android/Chrome
- participant.networkQualityLevel Returns Null When Connect to a Room with Audio and Video Off HOT 1
- Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
- DOMException error with no stack trace
- Restarting local audio track with noise cancellation
- Angular 6 Uncaught TypeError: Cannot assign to read only property 'exports' of object '[object Object]' ;
- Apple hand gestures getting sent on video call HOT 1
- End of Life HOT 2
- Twilio Programmable Video End of Life and Transition Plan HOT 10
- Thank You
- Issue with datatracks React - Sometimes participants new are not subcribed
- Video: Test Group Room with TURN & Video: Test Group Room without TURN FAILS HOT 1
- Mark Brave supported HOT 1
- Anyone experiencing crashes with Chrome v122? HOT 11
- Officially support Chromium's new documentPictureInPicture API HOT 1
- Allow calling `track.restart()` on local tracks created using constructors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilio-video.js.