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

Added clone method to RtcMediaTrack #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Added clone method to RtcMediaTrack #5

wants to merge 2 commits into from

Conversation

Brazol
Copy link

@Brazol Brazol commented Dec 16, 2024

No description provided.

Copy link

@ipavlidakis ipavlidakis left a comment

Choose a reason for hiding this comment

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

LGTM, i just added a few comments for clarifications and improvement.

if ([originalTrack.kind isEqualToString:@"audio"]) {
RTCVideoTrack *originalAudioTrack = (RTCAudioTrack *)originalTrack;

RTCAudioTrack* audioTrack = [self.peerConnectionFactory audioTrackWithTrackId:trackId];

Choose a reason for hiding this comment

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

What about the audioSource? On native side, we fetch an audioSource that we use to initialise the audioTrack (similar to how video tracks are being init)?

common/darwin/Classes/FlutterRTCMediaStream.m Outdated Show resolved Hide resolved
common/darwin/Classes/FlutterRTCMediaStream.m Outdated Show resolved Hide resolved
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