public class PrepareMediaCommandParams
extends OCastCommandParams
Represents the parameters of a prepare command.
| Constructor and Description |
|---|
PrepareMediaCommandParams(java.lang.String url,
int updateFrequency,
java.lang.String title,
java.lang.String subtitle,
java.lang.String logo,
Media.Type mediaType,
Media.TransferMode transferMode,
boolean autoplay)
Creates an instance of
class PrepareMediaCommandParams. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutoplay()
Indicates if the media should play automatically once the prepare command is complete.
|
java.lang.String |
getLogo()
The media thumbnail.
|
Media.Type |
getMediaType()
The media type.
|
java.lang.String |
getSubtitle()
The media subtitle.
|
java.lang.String |
getTitle()
The media title.
|
Media.TransferMode |
getTransferMode()
The media transfer mode.
|
int |
getUpdateFrequency()
The frequency of
|
java.lang.String |
getUrl()
The media URL.
|
build, getName, optionspublic PrepareMediaCommandParams(@NotNull
java.lang.String url,
int updateFrequency,
@NotNull
java.lang.String title,
@Nullable
java.lang.String subtitle,
@Nullable
java.lang.String logo,
@NotNull
Media.Type mediaType,
@NotNull
Media.TransferMode transferMode,
boolean autoplay)
Creates an instance of class PrepareMediaCommandParams.
url - The media URL.updateFrequency - The frequency of class MediaPlaybackStatus events, in seconds. 0 means no event.title - The media title.subtitle - The media subtitle.logo - The media thumbnail.mediaType - The media type.transferMode - The media transfer mode.autoplay - Indicates if the media should play automatically once the prepare command is complete.class PrepareMediaCommandParams@NotNull public java.lang.String getUrl()
The media URL.
public int getUpdateFrequency()
The frequency of
class MediaPlaybackStatus events, in seconds. 0 means no event.
class MediaPlaybackStatus@NotNull public java.lang.String getTitle()
The media title.
@Nullable public java.lang.String getSubtitle()
The media subtitle.
@Nullable public java.lang.String getLogo()
The media thumbnail.
@NotNull public Media.Type getMediaType()
The media type.
@NotNull public Media.TransferMode getTransferMode()
The media transfer mode.
public boolean getAutoplay()
Indicates if the media should play automatically once the prepare command is complete.