isUnifiedPlan = true is not working
Closed this issue · 7 comments
Hi ~ everyone.
I am using the video call plugin.
If you set isUnifiedPlan = true
Remote video cannot be received.
I would be grateful if you could tell me how.
Thank you.
If you set isUnified plan to false remotetrack will not work instead you will receive remotestream
�Thank you for the reply.
But both remoteTrack and remoteStream do not work.
Can you share the code snippet that is not working or example project with minimal reproduction that i can run and investigate
Can you share the code snippet that is not working or example project with minimal reproduction that i can run and investigate
I just downloaded the master branch code and ran the example.
Mainly used for Android, iPhone, and iPad.
I also used the MacBook Pro's Chrome web browser, but the results were the same.
Also, I tried running the https://flutterjanus.github.io/flutter_janus_client/ link and the result was the same.
The code was executed as is without any changes, and when debugging, the remoteTrack event was not called.
publishVideo.remoteTrack?.listen((event) async {
if (event.track != null && event.flowing == true) {
remoteVideoStream?.addTrack(event.track!);
_remoteVideoRenderer.srcObject = remoteVideoStream;
// this is done only for web since web api are muted by default for local tagged mediaStream
if (kIsWeb) {
_remoteVideoRenderer.muted = false;
}
}
});
However, by changing the isUnifiedPlan value in the code below from true to false, I was able to receive remote video.
client = JanusClient(transport: ws, iceServers: [RTCIceServer(urls: "stun:stun.voip.eutelia.it:3478", username: "", credential: "")], isUnifiedPlan: true);
By looking at the sdp value of the offer or answer sent every time the isUnifiedPlan value is changed, we checked whether UnifiedPlan was set properly and confirmed that the isUnifiedPlan setting was working properly.
![스크린샷 2024-01-13 오후 10 42 37](https://private-user-images.githubusercontent.com/2355470/296481083-0c625a58-6f6b-4180-b861-75812086982f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjUwNzAsIm5iZiI6MTcyNTAyNDc3MCwicGF0aCI6Ii8yMzU1NDcwLzI5NjQ4MTA4My0wYzYyNWE1OC02ZjZiLTQxODAtYjg2MS03NTgxMjA4Njk4MmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MzBUMTMzMjUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWExN2Q4MmZjZGM4MmVjMTlhODNhNzU0YjNlNjYwNTQ3NTVmZDIzYWYzNzE3NmI4NTAwOWJlYWY5YzdmZTY4NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.JgWLKePqwefIbB5xGZCrqQ3l3WnFyWFbfwDBK9t-pR8)
i think latest commit should work for you turns out videocall plugin from janus side doesn't work as expected with addTransreciever(that is simulcast) i verified this behaviour with janus videocall demo page so therefore if you are not using simulcast the code should work until janus fixes this issue or propose a solution for the same
lmk if it works @anewgate
@shivanshtalwar
I also confirmed that the unified plan works well in the master branch.
thank you so so so so so much. :)