- Notifications
You must be signed in to change notification settings - Fork 30
[Enhancement]Expose CallParticipant source #933
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
Merged
ipavlidakis merged 2 commits into develop from enhancement/track-source-type-implementation Sep 4, 2025
Merged
[Enhancement]Expose CallParticipant source #933
ipavlidakis merged 2 commits into develop from enhancement/track-source-type-implementation Sep 4, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Public Interface+ public enum ParticipantSource: CustomStringConvertible, Hashable, Sendable + + case webRTCUnspecified + case rtmp + case whip + case sip + case rtsp + case srt + case unrecognized(Int) + + + public var description: String public struct CallParticipant: Identifiable, Sendable, Hashable - public var userId: String + public var source: ParticipantSource - public var name: String + public var userId: String - public var profileImageURL: URL? + public var name: String - public var isPinned: Bool + public var profileImageURL: URL? - public var isPinnedRemotely: Bool + public var isPinned: Bool - public var shouldDisplayTrack: Bool + public var isPinnedRemotely: Bool - + public var shouldDisplayTrack: Bool - + - public init(id: String,userId: String,roles: [String],name: String,profileImageURL: URL?,trackLookupPrefix: String?,hasVideo: Bool,hasAudio: Bool,isScreenSharing: Bool,showTrack: Bool,track: RTCVideoTrack? = nil,trackSize: CGSize = CGSize(width: 1024, height: 720),screenshareTrack: RTCVideoTrack? = nil,isSpeaking: Bool = false,isDominantSpeaker: Bool,sessionId: String,connectionQuality: ConnectionQuality,joinedAt: Date,audioLevel: Float,audioLevels: [Float],pin: PinInfo?,pausedTracks: Set<TrackType>) + - + public init(id: String,userId: String,roles: [String],name: String,profileImageURL: URL?,trackLookupPrefix: String?,hasVideo: Bool,hasAudio: Bool,isScreenSharing: Bool,showTrack: Bool,track: RTCVideoTrack? = nil,trackSize: CGSize = CGSize(width: 1024, height: 720),screenshareTrack: RTCVideoTrack? = nil,isSpeaking: Bool = false,isDominantSpeaker: Bool,sessionId: String,connectionQuality: ConnectionQuality,joinedAt: Date,audioLevel: Float,audioLevels: [Float],pin: PinInfo?,pausedTracks: Set<TrackType>,source: ParticipantSource = .webRTCUnspecified) - + - public static func ==(lhs: CallParticipant,rhs: CallParticipant)-> Bool + - public func withUpdated(trackSize: CGSize)-> CallParticipant + public static func ==(lhs: CallParticipant,rhs: CallParticipant)-> Bool - public func withUpdated(track: RTCVideoTrack?)-> CallParticipant + public func withUpdated(trackSize: CGSize)-> CallParticipant - public func withUpdated(screensharingTrack: RTCVideoTrack?)-> CallParticipant + public func withUpdated(track: RTCVideoTrack?)-> CallParticipant - public func withUpdated(audio: Bool)-> CallParticipant + public func withUpdated(screensharingTrack: RTCVideoTrack?)-> CallParticipant - public func withUpdated(video: Bool)-> CallParticipant + public func withUpdated(audio: Bool)-> CallParticipant - public func withUpdated(screensharing: Bool)-> CallParticipant + public func withUpdated(video: Bool)-> CallParticipant - public func withUpdated(showTrack: Bool)-> CallParticipant + public func withUpdated(screensharing: Bool)-> CallParticipant - public func withUpdated(trackLookupPrefix: String)-> CallParticipant + public func withUpdated(showTrack: Bool)-> CallParticipant - public func withUpdated(isSpeaking: Bool,audioLevel: Float)-> CallParticipant + public func withUpdated(trackLookupPrefix: String)-> CallParticipant - public func withUpdated(dominantSpeaker: Bool)-> CallParticipant + public func withUpdated(isSpeaking: Bool,audioLevel: Float)-> CallParticipant - public func withUpdated(connectionQuality: ConnectionQuality)-> CallParticipant + public func withUpdated(dominantSpeaker: Bool)-> CallParticipant - public func withUpdated(pin: PinInfo?)-> CallParticipant + public func withUpdated(connectionQuality: ConnectionQuality)-> CallParticipant - public func withPausedTrack(_ trackType: TrackType)-> CallParticipant + public func withUpdated(pin: PinInfo?)-> CallParticipant - public func withUnpausedTrack(_ trackType: TrackType)-> CallParticipant + public func withPausedTrack(_ trackType: TrackType)-> CallParticipant + public func withUnpausedTrack(_ trackType: TrackType)-> CallParticipant |
Collaborator
SDK Size
|
|
martinmitrevski approved these changes Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.



🔗 Issue Links
Resolves https://linear.app/stream/issue/IOS-1093/implement-track-source
📝 Summary
Exposes the participant's media source. Useful for cases where integrators may want to prioritize users e.g. streaming using RTMP.
☑️ Contributor Checklist