Skip to content

feature/CPC-12213-update-pod-to-spm#28

Draft
brianinatinyhome wants to merge 3 commits into
masterfrom
feature/CPC-12213-update-pod-to-spm
Draft

feature/CPC-12213-update-pod-to-spm#28
brianinatinyhome wants to merge 3 commits into
masterfrom
feature/CPC-12213-update-pod-to-spm

Conversation

@brianinatinyhome
Copy link
Copy Markdown

Item Tracking

Jira link: https://combinedpublic.atlassian.net/browse/CPC-12213

Description

This PR changes the WKWebViewRTC Library to be compatible with SPM

Test Plan

Further Comments

None.

@brianinatinyhome brianinatinyhome changed the title feature/CPC-12213-update-pod-to-spm (WIP) feature/CPC-12213-update-pod-to-spm May 28, 2026
@hthetiot
Copy link
Copy Markdown
Contributor

Hello @brianinatinyhome check out this PR from the source forked repo i made for RTCMTLVideoView, it use RTC_SUPPORTS_METAL to support also non Metal devices.

https://github.com/cordova-rtc/cordova-plugin-iosrtc/pull/427/changes

let sdpSemanticsConfig = pcConfig?.object(forKey: "sdpSemantics") as? String;
let sdpSemantics = (sdpSemanticsConfig != nil && allowedSdpSemantics[sdpSemanticsConfig!] != nil) ?
allowedSdpSemantics[sdpSemanticsConfig!] : RTCSdpSemantics.planB
allowedSdpSemantics[sdpSemanticsConfig!] : RTCSdpSemantics.unifiedPlan
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class iRTCPeerConnectionConfig {

fileprivate let allowedSdpSemantics = [
"plan-b": RTCSdpSemantics.planB,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still allow it to support old webrtc api usage. We kept it in iosrtc.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted

@brianinatinyhome brianinatinyhome changed the title (WIP) feature/CPC-12213-update-pod-to-spm feature/CPC-12213-update-pod-to-spm Jun 3, 2026
@brianinatinyhome
Copy link
Copy Markdown
Author

@hthetiot Hey Harold, thanks for the comments. Just to clarify, this branch is not intended to merge into master. We're in the process of migrating to SPM as a package manager for our projects and needed to accomodate for that with a minimal amount of changes. The plan is just to point to this specific branch through SPM
Also I'm not very familiar with WebRTCs in general so I won't pretend to really understand the benefit of migrating to a different library

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

Successfully merging this pull request may close these issues.

2 participants