Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Remote track Muted/Flowing again Stream plugin #173

Open
getsolutionstz opened this issue Nov 13, 2024 · 7 comments
Open

Detect Remote track Muted/Flowing again Stream plugin #173

getsolutionstz opened this issue Nov 13, 2024 · 7 comments

Comments

@getsolutionstz
Copy link

getsolutionstz commented Nov 13, 2024

plugin!.remoteTrack?.listen((event) async {}

When a video track is stopped from video plugin I do not get the event

void _handleUnifiedWebRTCTracksEmitter(RTCPeerConnection peerConnection) {
    if (_context._isUnifiedPlan && !_context._usePlanB) {
      peerConnection.onTrack = (RTCTrackEvent event) async {
      print("peerConnection.onTrack----------------------->${event.track.kind}");
      print("peerConnection.onTrack----------------------->${event.track.muted}");
    ....

This get fired only when started receiving videos. When the video is paused and played. They are not fire

@getsolutionstz getsolutionstz changed the title Detect connection state (Disconnected) Detect Remote track Muted/Flowing again Stream plugin Nov 14, 2024
@shivanshtalwar
Copy link
Collaborator

This is handled already when track is muted and unmuted using transreceiver or unified api it will not be emitted if we are using janus api

@getsolutionstz
Copy link
Author

getsolutionstz commented Nov 15, 2024

Thank you for the response, how can I detect video is flowing or not on streaming plugin. I connected the same server with the Janus example. It fires the track onMute, onUnMute

@shivanshtalwar0
Copy link
Collaborator

is event.flowing not working for you?

@getsolutionstz
Copy link
Author

plugin!.remoteTrack?.listen((event) async {
      print("ps.plugin!.remoteTrack----------------------->${event.toMap()}");


plugin!.typedMessages?.listen((event) async { 
      print("typedMessages----------------------->${event.toMap()}");

I try stopping video from videoplugin but these never get fired. At the same time the Janus Example fires Muted and Unmuted

@shivanshtalwar
Copy link
Collaborator

Hmm in that case we need to investigate

@getsolutionstz
Copy link
Author

Hello, @shivanshtalwar0 is there any info we can provide to assist in the investigation.

@shivanshtalwar
Copy link
Collaborator

@getsolutionstz for starters you can provide an example repo code to reproduce this issue and test the issue and i will investigate as soon as possible atm i have some personal matters that i need to deal with but once you provide me with example repo with reproduction and testing can be a motivation to look into it early
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants