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

[BUG]: Audio track does not work properly,when the video track is turned off。 #1045

Open
tisaud opened this issue Aug 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tisaud
Copy link

tisaud commented Aug 5, 2024

Package version

3.0.0-pre.7

Environment

* OS:Windows10
* Unity version: Unity 2021.3

Steps To Reproduce

  1. open audioTrack
  2. close videoTrack

Current Behavior

Audio track does not work properly,when the video track is turned off,but when I turn on the video track ,audio track works properly,show my code:
var configuration = GetSelectedSdpSemantics();
localPeerConnection = new RTCPeerConnection(ref configuration);
pcOnIceConnectionChange = state => { OnIceConnectionChange(localPeerConnection, state); };
pcOnIceCandidate = candidate => { OnIceCandidate(localPeerConnection, candidate); };
pcOnNegotiationNeeded = () => { StartCoroutine(PeerNegotiationNeeded(localPeerConnection)); };
AudioStreamTrack audiotrack = new AudioStreamTrack(audioTrack);
VideoStreamTrack track = Capture_Camera.CaptureStreamTrack(146, 146);
var sendStream = new MediaStream();
localPeerConnection.AddTrack(audiotrack, sendStream);
localPeerConnection.AddTrack(track, sendStream);

Expected Behavior

I want to use Audio track only because of the limited hardware environment。

Anything else?

No response

@tisaud tisaud added the bug Something isn't working label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants