Package com.mux.sdk.webrtc.spaces
Class LocalVideoCameraTrack
- java.lang.Object
-
- com.mux.sdk.webrtc.spaces.Track<LocalMediaStreamTrackHolder>
-
- com.mux.sdk.webrtc.spaces.LocalTrack
-
- com.mux.sdk.webrtc.spaces.LocalVideoCameraTrack
-
public class LocalVideoCameraTrack extends LocalTrack
Represents local video streams sourced from cameras Camera switching is performed here
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mux.sdk.webrtc.spaces.Track
Track.MirrorMode, Track.TrackType
-
-
Field Summary
-
Fields inherited from class com.mux.sdk.webrtc.spaces.LocalTrack
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setCamera(java.lang.String cameraName)
Switch the camera to the one with the given name You can use either the libwebrtc CameraEnumerator types or the Camera APIs to find your camera.-
Methods inherited from class com.mux.sdk.webrtc.spaces.LocalTrack
getConnectionId, getParticipantId, isPublished, isSubscribed, mute, unmute
-
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
-
-
-
-
Method Detail
-
setCamera
public void setCamera(java.lang.String cameraName)
Switch the camera to the one with the given name You can use either the libwebrtc CameraEnumerator types or the Camera APIs to find your camera. This works while the stream is running. Today you can only have one camera active at a time.- Parameters:
cameraName
-
-
-