public class ElementConnectedEvent extends MediaEvent
Constructor and Description |
---|
ElementConnectedEvent(MediaObject source,
String timestamp,
String timestampMillis,
List<Tag> tags,
String type,
MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription)
Indicates that an element has been connected to another
|
Modifier and Type | Method and Description |
---|---|
MediaType |
getMediaType()
Getter for the mediaType property
|
MediaElement |
getSink()
Getter for the sink property
|
String |
getSinkMediaDescription()
Getter for the sinkMediaDescription property
|
String |
getSourceMediaDescription()
Getter for the sourceMediaDescription property
|
void |
setMediaType(MediaType mediaType)
Setter for the mediaType property
|
void |
setSink(MediaElement sink)
Setter for the sink property
|
void |
setSinkMediaDescription(String sinkMediaDescription)
Setter for the sinkMediaDescription property
|
void |
setSourceMediaDescription(String sourceMediaDescription)
Setter for the sourceMediaDescription property
|
getType, setType
getSource, getTags, getTimestamp, getTimestampMillis, setSource, setTags, setTimestamp, setTimestampMillis
public ElementConnectedEvent(MediaObject source, String timestamp, String timestampMillis, List<Tag> tags, String type, MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription)
source
- Object that raised the eventtimestamp
- [DEPRECATED: Use timestampMillis] The timestamp associated with this object: Seconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).timestampMillis
- The timestamp associated with this event: Milliseconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).tags
- type
- Type of event that was raisedsink
- sink element in new connectionmediaType
- Media type of the connectionsourceMediaDescription
- Description of the source mediasinkMediaDescription
- Description of the sink mediapublic MediaElement getSink()
public void setSink(MediaElement sink)
sink
- sink element in new connectionpublic MediaType getMediaType()
public void setMediaType(MediaType mediaType)
mediaType
- Media type of the connectionpublic String getSourceMediaDescription()
public void setSourceMediaDescription(String sourceMediaDescription)
sourceMediaDescription
- Description of the source mediapublic String getSinkMediaDescription()
public void setSinkMediaDescription(String sinkMediaDescription)
sinkMediaDescription
- Description of the sink mediaCopyright © 2022 Kurento. All rights reserved.