File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ class PluginMediaStream : NSObject {
1818
1919 self . rtcMediaStream = rtcMediaStream
2020
21- // Handle possible duplicate remote streamId with janus name
21+ /// Handle possible duplicate remote streamId with janus or short duplicate name
2222 // See: https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/432
23- if ( rtcMediaStream. streamId. starts ( with : " janus " ) ) {
23+ if ( rtcMediaStream. streamId. count < 36 ) {
2424 self . id = rtcMediaStream. streamId + " _ " + UUID( ) . uuidString;
2525 } else {
2626 self . id = rtcMediaStream. streamId;
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ class PluginMediaStreamTrack : NSObject {
1616
1717 self . rtcMediaStreamTrack = rtcMediaStreamTrack
1818
19- // Handle possible duplicate remote trackId with janus name
19+ // Handle possible duplicate remote trackId with janus or short duplicate name
2020 // See: https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/432
21- if ( rtcMediaStreamTrack. trackId. starts ( with : " janus " ) ) {
21+ if ( rtcMediaStreamTrack. trackId. count < 36 ) {
2222 self . id = rtcMediaStreamTrack. trackId + " _ " + UUID( ) . uuidString;
2323 } else {
2424 self . id = rtcMediaStreamTrack. trackId;
You can’t perform that action at this time.
0 commit comments