Android SDK API Reference
|
Public Member Functions | |
MediaStream (Peer provider, long nativeMediaStream, MediaConstraints constraints, SurfaceTextureHelper textureHelper, VideoCapturer videoCapturer) | |
void | finalize () |
void | close () |
Close all tracks. | |
String | getLabel () |
Get media stream label. More... | |
String | getPeerId () |
Get remote media stream peer id. More... | |
int | getVideoTracks () |
Get vide track count. More... | |
void | setEnableVideoTrack (int trackNo, boolean enable) |
Get video track enabling state. More... | |
boolean | getEnableVideoTrack (int trackNo) |
Set Video track enabling state. More... | |
int | getAudioTracks () |
Get video track enabling state. More... | |
void | setEnableAudioTrack (int trackNo, boolean enable) |
Set Audio track enabling state. More... | |
boolean | getEnableAudioTrack (int trackNo) |
Get audio track enabling state. More... | |
boolean | switchCamera () |
Switch camera. More... | |
void | addVideoRenderer (Canvas canvas, int videoTrackNumber) |
Add video renderer. More... | |
void | removeVideoRenderer (Canvas canvas, int videoTrackNumber) |
Remove video renderer. More... | |
boolean | setVideoCapture (Object capturer) |
boolean | setVideoSource (org.webrtc.VideoSource source) |
boolean | setAudioSource (org.webrtc.AudioSource source) |
boolean | addVideoTrack (org.webrtc.VideoTrack track) |
boolean | removeVideoTrack (org.webrtc.VideoTrack track) |
boolean | addAudioTrack (org.webrtc.AudioTrack track) |
boolean | removeAudioTrack (org.webrtc.AudioTrack track) |
boolean io.skyway.Peer.Browser.MediaStream.addAudioTrack | ( | org.webrtc.AudioTrack | track | ) |
void io.skyway.Peer.Browser.MediaStream.addVideoRenderer | ( | Canvas | canvas, |
int | videoTrackNumber | ||
) |
Add video renderer.
canvas | Canvas to render a video track in this stream. |
videoTrackNumber | Video track number |
boolean io.skyway.Peer.Browser.MediaStream.addVideoTrack | ( | org.webrtc.VideoTrack | track | ) |
int io.skyway.Peer.Browser.MediaStream.getAudioTracks | ( | ) |
Get video track enabling state.
boolean io.skyway.Peer.Browser.MediaStream.getEnableAudioTrack | ( | int | trackNo | ) |
Get audio track enabling state.
trackNo | Audio track number. |
boolean io.skyway.Peer.Browser.MediaStream.getEnableVideoTrack | ( | int | trackNo | ) |
Set Video track enabling state.
trackNo | Video track number. |
String io.skyway.Peer.Browser.MediaStream.getLabel | ( | ) |
Get media stream label.
String io.skyway.Peer.Browser.MediaStream.getPeerId | ( | ) |
Get remote media stream peer id.
int io.skyway.Peer.Browser.MediaStream.getVideoTracks | ( | ) |
Get vide track count.
boolean io.skyway.Peer.Browser.MediaStream.removeAudioTrack | ( | org.webrtc.AudioTrack | track | ) |
void io.skyway.Peer.Browser.MediaStream.removeVideoRenderer | ( | Canvas | canvas, |
int | videoTrackNumber | ||
) |
Remove video renderer.
canvas | Canvas to render a video track in this stream. |
videoTrackNumber | Video track number |
boolean io.skyway.Peer.Browser.MediaStream.removeVideoTrack | ( | org.webrtc.VideoTrack | track | ) |
boolean io.skyway.Peer.Browser.MediaStream.setAudioSource | ( | org.webrtc.AudioSource | source | ) |
void io.skyway.Peer.Browser.MediaStream.setEnableAudioTrack | ( | int | trackNo, |
boolean | enable | ||
) |
Set Audio track enabling state.
trackNo | Audio track number. |
enable | Enabling state |
void io.skyway.Peer.Browser.MediaStream.setEnableVideoTrack | ( | int | trackNo, |
boolean | enable | ||
) |
Get video track enabling state.
trackNo | Video track number. |
enable | Enabling state. |
boolean io.skyway.Peer.Browser.MediaStream.setVideoCapture | ( | Object | capturer | ) |
boolean io.skyway.Peer.Browser.MediaStream.setVideoSource | ( | org.webrtc.VideoSource | source | ) |
boolean io.skyway.Peer.Browser.MediaStream.switchCamera | ( | ) |
Switch camera.