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

Remote video not display in iOS #1535

Open
ayechan-maung opened this issue Feb 27, 2024 · 7 comments
Open

Remote video not display in iOS #1535

ayechan-maung opened this issue Feb 27, 2024 · 7 comments

Comments

@ayechan-maung
Copy link

ayechan-maung commented Feb 27, 2024

Remote video is not display in iOS device, but the video from iOS is display in Android and Browser. After I debug, the values I can get in logging from created peer connection, onAddStream, even getStats() method can get value. But I don't get the captureFrame value from onTrack function. That capture frame value can get in Android device.

        for (final streams in track.streams) {
          log(streams.getVideoTracks().toString(), name: "Get Video Tracks");
          log(streams.getVideoTracks()[0].getSettings().toString(), name: "Get Settings");
          for (final track in streams.getVideoTracks()) {
            track.captureFrame().then((frame) {
              log(frame.toString(), name: "Track Frame");
            });
          }
        }
        // List<MediaStreamTrack> videoTracks = track.streams[0].getVideoTracks();

      };

So, please guide the solution and I don't get any ideas what's going wrong.

This is remote description for iOS device

sdp: v=0
o=- 10000 1 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS VB8QNtf22RZgE3sZ
a=ice-lite
m=video 31270 UDP/TLS/RTP/SAVPF 96
c=IN IP4 103.89.48.49
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:udpcandidate 1 udp 1076558079 103.89.48.49 31270 typ host generation 0
a=ice-ufrag:e3h75g56f6u25vmhrgyketerwzzra8nm
a=ice-pwd:stzlryj8pg80btonduk6o3wpyd51ka1c
a=ice-options:renomination
a=fingerprint:sha-512 10:7B:33:30:A5:7E:42:8D:95:07:42:91:88:D7:91:0A:DC:79:4E:EE:C1:57:D7:ED:10:D8:73:9C:71:5E:5D:81:4E:FB:E5:12:47:F4:F1:C4:6A:EC:3F:68:3A:4F:63:9D:1E:A3:E8:26:87:83:EB:CB:B3:7E:8B:55:2E:F3:0D:74
a=setup:active
a=mid:0
a=sendonly
a=msid:VB8QNtf22RZgE3sZ 47f55bda-23a3-442c-be3b-1fdf526938af
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 
a=ssrc:212579788 cname:VB8QNtf22RZgE3sZ

I thought it because of video can not encode for iOS device.

@ayechan-maung
Copy link
Author

Screenshot 2024-03-05 at 17 34 06 Screenshot 2024-03-05 at 17 36 21

This event listener is not listen in RTCVideoRenderer initialize method. In Android, it's listen and update the video value.
In iOS, it's not.

@MerdanDev
Copy link

Hello @ayechan-maung, have you achieved any success in this problem?

@ayechan-maung
Copy link
Author

Hello @ayechan-maung, have you achieved any success in this problem?

I fixed the codec in sdp answer, to VP8. It currently work.

@MerdanDev
Copy link

In my case I downgraded flutter_webrtc plugin and it worked. I think latest versions has codec problem, because I can't even show localstream in iOS.

@0010SS
Copy link

0010SS commented Mar 18, 2024

In my case I downgraded flutter_webrtc plugin and it worked. I think latest versions has codec problem, because I can't even show localstream in iOS.

Which version do you downgrade to?

@MerdanDev
Copy link

In my case I downgraded flutter_webrtc plugin and it worked. I think latest versions has codec problem, because I can't even show localstream in iOS.

Which version do you downgrade to?

0.9.27

@RocketVick
Copy link

Hello @ayechan-maung, have you achieved any success in this problem?

I fixed the codec in sdp answer, to VP8. It currently work.

Hello @ayechan-maung! Thank you for your answer!
I had to downgrade the version of flutter_webrtc to 0.9.27 for now and it works, but

Could you show how you fixed codec in the dart code?
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

4 participants