I do not understand what you are saying.
I tried the MediaDevices example.
1.
Code:
[_remoteStream onStreamEvent:^(FPWCSApi2StreamEvent *streamEvent){
NSLog(@"No remote stream, %@", streamEvent.type);
When onStreamEvent is called, the "No remote stream, ..." output should be shown.
2.
You said
That's enough for all the cases. StreamEvent is receiving right after stream became PLAYING.
But "No remote stream, ..." does not shown in logs when immediately after PLAYING as unexpected.
(On the other hand, Android SDK shows onStreamStatus=PLAYING and onStreamEvent=audioUnmuted almost at the same time.)
As I've said before, when turn on/off the "Mute Audio" switch, then "No remote stream, ..." is shown as expected.
3.
I want StreamEvent immediately after PLAYING.
Because when a user play the mixer stream, the user need to know who is muted.
That behavior is done correctly in the AndroidSDK.
These are the logs.
// when immediately after PLAYING
// then onStreamEvent is NOT called. But onStreamEvent should be called because determine mute state of each streams.
Code:
2021-07-23 19:16:01.737015+0900 MediaDevices[2096:1172569] [FPWCSApi2MediaConnection] PeerConnectionState change 0
2021-07-23 19:16:01.739540+0900 MediaDevices[2096:1172569] [FPWCSApi2MediaConnection] didChangeIceConnectionState 1
2021-07-23 19:16:03.072450+0900 MediaDevices[2096:1172569] [FPWCSApi2MediaConnection] didChangeIceConnectionState 2
2021-07-23 19:16:03.072913+0900 MediaDevices[2096:1172569] [FPWCSApi2MediaConnection] didChangeIceConnectionState 3
2021-07-23 19:16:03.338396+0900 MediaDevices[2096:1172695] [FPWCSApi2Stream] Update stream state 3, media session id is 4B81CE6F-B144-449D-A351-898F2F8FE92D
2021-07-23 19:16:03.339452+0900 MediaDevices[2096:1172550] muted 0
2021-07-23 19:16:03.608356+0900 MediaDevices[2096:1172717] [FPWCSApi2Session] No such callback method notifyVideoFormat with data (
// when turn off the "Mute Audio" switch
// then onStreamEvent is called
Code:
2021-07-23 19:16:45.520988+0900 MediaDevices[2096:1172550] No remote stream, audioUnmuted
2021-07-23 19:16:45.521189+0900 MediaDevices[2096:1172550] muted 0