Package com.mux.sdk.webrtc.spaces
Class LocalTrack
- java.lang.Object
-
- com.mux.sdk.webrtc.spaces.Track<LocalMediaStreamTrackHolder>
-
- com.mux.sdk.webrtc.spaces.LocalTrack
-
- Direct Known Subclasses:
LocalAudioTrack
,LocalScreenCaptureTrack
,LocalVideoCameraTrack
public abstract class LocalTrack extends Track<LocalMediaStreamTrackHolder>
A Track that can be published and unpublished by the LocalParticipant Can also be muted/unmuted
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mux.sdk.webrtc.spaces.Track
Track.TrackType
-
-
Field Summary
Fields Modifier and Type Field Description protected Space
space
-
Fields inherited from class com.mux.sdk.webrtc.spaces.Track
active, id, mid, name, sinks, source, SOURCE_CAMERA, SOURCE_MICROPHONE, SOURCE_SCREENSHARE, spaceId, trackType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LocalTrack(java.lang.String id, Space space, Track.TrackType trackType, java.lang.String source, java.lang.String name, int width, int height)
protected
LocalTrack(java.lang.String id, Space space, java.lang.String source, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConnectionId()
java.lang.String
getParticipantId()
boolean
isSubscribed()
void
mute()
Mutes the trackvoid
unmute()
Unmutes the track-
Methods inherited from class com.mux.sdk.webrtc.spaces.Track
addSink, equals, getHeight, getMaxBitrate, getMediaStreamTrackHolder, getMirrorMode, getType, getWidth, hashCode, isActiveSpeaker, isMuted, removeSink, setHeight, setMediaStreamTrackHolder, setMirrorMode, setWidth, toSignals, toString, updateSinkMirrorState
-
-
-
-
Field Detail
-
space
protected final Space space
-
-
Constructor Detail
-
LocalTrack
protected LocalTrack(java.lang.String id, Space space, java.lang.String source, java.lang.String name)
-
LocalTrack
protected LocalTrack(java.lang.String id, Space space, Track.TrackType trackType, java.lang.String source, java.lang.String name, int width, int height)
-
-
Method Detail
-
mute
public void mute()
Mutes the track
-
unmute
public void unmute()
Unmutes the track
-
getConnectionId
public java.lang.String getConnectionId()
- Specified by:
getConnectionId
in classTrack<LocalMediaStreamTrackHolder>
-
getParticipantId
public java.lang.String getParticipantId()
- Specified by:
getParticipantId
in classTrack<LocalMediaStreamTrackHolder>
-
isSubscribed
public boolean isSubscribed()
- Specified by:
isSubscribed
in classTrack<LocalMediaStreamTrackHolder>
-
-