Class MediaStreamTrack
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 9
Provides the ability to control audio/video track.
C#Copypublic sealed class MediaStreamTrack : object, IDisplayable<WebRTCErrorCode>
- Inheritance
-
MediaStreamTrack
- Implements
-
Tizen.Multimedia.IDisplayable<Tizen.Multimedia.Remoting.WebRTCErrorCode>
Properties
Declaration
C#Copypublic Display Display { get; set; }
Property Value
Type | Description |
---|---|
Display | A Display that specifies the display. |
Remarks
If user set video source with SendRecv, Display must be set.
If not, the received video will fill entire screen.
If remote track, Display must be set in TrackAdded event.
The display is created with MediaView.
API Level: 9
Feature: http://tizen.org/feature/display
Declaration
C#Copypublic WebRTCDisplayMode DisplayMode { get; set; }
Property Value
Type | Description |
---|---|
WebRTCDisplayMode | A WebRTCDisplayMode that specifies the display mode. |
Remarks
This property is meaningful only in overlay or EVAS surface display type.
API Level: 9
Feature: http://tizen.org/feature/display
Declaration
C#Copypublic bool DisplayVisible { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if WebRTC display is visible, otherwise false. |
Remarks
This property is meaningful only in overlay or EVAS surface display type.
API Level: 9
Feature: http://tizen.org/feature/display
Declaration
C#Copypublic bool Mute { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if audio is muted, otherwise false. The default value is false. |
API Level: 11
Declaration
C#Copypublic MediaType Type { get; }
Property Value
Type | Description |
---|---|
MediaType | MediaType |
API Level: 9
Methods
ApplyAudioStreamPolicy(AudioStreamPolicy)
Applies the audio stream policy to remote track.
Declaration
C#Copypublic void ApplyAudioStreamPolicy(AudioStreamPolicy policy)
Parameters
Type | Name | Description |
---|---|---|
AudioStreamPolicy | policy | The AudioStreamPolicy to apply. |
Remarks
This must be called in TrackAdded event.
WebRTC does not support all AudioStreamType.
Supported types are Media, Voip,
MediaExternalOnly.