public class PlaylistProxy
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PlaylistProxy.Flags
Proxy creation flags.
|
static class |
PlaylistProxy.MediaSourceParams
Playlist Proxy URL parameters.
|
static class |
PlaylistProxy.MediaSourceType
The media source type: a single Marlin file, or a Marlin HLS
playlist.
|
Constructor and Description |
---|
PlaylistProxy()
PlaylistProxy constructor.
|
PlaylistProxy(java.util.EnumSet<PlaylistProxy.Flags> flags)
PlaylistProxy constructor with flags.
|
Modifier and Type | Method and Description |
---|---|
void |
getAndClearLastError()
Check the Playlist Proxy execution status.
|
java.lang.String |
getAuthToken()
Obtain the current Playlist Proxy authentication token.
|
java.lang.String |
makeUrl(java.lang.String mediaSource,
PlaylistProxy.MediaSourceType mediaSourceType,
PlaylistProxy.MediaSourceParams mediaSourceParams)
Make a Playlist Proxy URL.
|
void |
start()
Start running playlist proxy.
|
void |
stop()
Stop running playlist proxy.
|
public PlaylistProxy(java.util.EnumSet<PlaylistProxy.Flags> flags) throws ErrorCodeException
ErrorCodeException
PlaylistProxy.Flags
public PlaylistProxy() throws ErrorCodeException
ErrorCodeException
public void start() throws ErrorCodeException
stop()
ErrorCodeException
public void stop() throws ErrorCodeException
ErrorCodeException
public java.lang.String getAuthToken() throws ErrorCodeException
ErrorCodeException
public void getAndClearLastError() throws ErrorCodeException
ErrorCodeException
public java.lang.String makeUrl(java.lang.String mediaSource, PlaylistProxy.MediaSourceType mediaSourceType, PlaylistProxy.MediaSourceParams mediaSourceParams) throws ErrorCodeException
mediaSource
- path or URL to the Marlin media sourcemediaSourceType
- mime type of the original mediamediaSourceParams
- url parameters, can be null.
However, in the case of SINGLE_FILE MediaSourceType, the
sourceContentType must be set to select between BBTS
("video/mp2t"), PDCF ("video/mp4") and DCF
(application/vnd.oma.drm.dcf).ErrorCodeException