| Modifier and Type | Field and Description |
|---|---|
protected Session |
Channel.ResultProcessor.session
The
Session if one applies |
| Modifier and Type | Field and Description |
|---|---|
protected Set<Session> |
Channel.sessions
|
| Modifier and Type | Method and Description |
|---|---|
Session |
Channel.ResultProcessor.getSession() |
Session |
CastDevice.startSession(String sourceId,
Application application)
Establishes a
Session with the specified Application
unless one already exists, in which case the existing Session is
returned. |
Session |
Channel.startSession(String sourceId,
Application application,
String userAgent,
VirtualConnectionType connectionType)
Establishes a
Session with the specified Application
unless one already exists, in which case the existing Session is
returned. |
Session |
CastDevice.startSession(String sourceId,
Application application,
String userAgent,
VirtualConnectionType connectionType)
Establishes a
Session with the specified Application
unless one already exists, in which case the existing Session is
returned. |
| Modifier and Type | Method and Description |
|---|---|
void |
Session.SessionClosedListener.closed(Session session)
Called when the specified
Session is closed. |
boolean |
Channel.closeSession(Session session)
Closes the specified
Session unless it's already closed, in which
case nothing is done. |
MediaStatus |
Channel.getMediaStatus(Session session)
Request a
MediaStatus from the application with the specified
Session, using 30000L as the timeout
value. |
MediaStatus |
Channel.getMediaStatus(Session session,
long responseTimeout)
Request a
MediaStatus from the application with the specified
Session. |
boolean |
Channel.isSessionClosed(Session session)
Checks whether or not the specified
Session is closed. |
MediaStatus |
Channel.load(Session session,
Boolean autoplay,
Double currentTime,
Media media,
boolean synchronous,
long responseTimeout)
Asks the targeted remote application to load the specified
Media
using the specified parameters. |
MediaStatus |
Channel.load(Session session,
List<Integer> activeTrackIds,
Boolean autoplay,
String credentials,
String credentialsType,
Double currentTime,
Map<String,Object> customData,
LoadOptions loadOptions,
Media media,
Double playbackRate,
QueueData queueData,
boolean synchronous,
long responseTimeout)
|
MediaStatus |
Channel.load(Session session,
StandardRequest.Load loadRequest,
boolean synchronous,
long responseTimeout)
Asks the targeted remote application to execute the specified
StandardRequest.Load request. |
MediaStatus |
Channel.pause(Session session,
int mediaSessionId,
boolean synchronous)
Asks the remote application to pause playback of the media referenced by
the specified media session ID, using 30000L
as the timeout value.
|
MediaStatus |
Channel.pause(Session session,
int mediaSessionId,
boolean synchronous,
long responseTimeout)
Asks the remote application to pause playback of the media referenced by
the specified media session ID.
|
MediaStatus |
Channel.play(Session session,
int mediaSessionId,
boolean synchronous)
Asks the remote application to start playing the media referenced by the
specified media session ID, using 30000L as
the timeout value.
|
MediaStatus |
Channel.play(Session session,
int mediaSessionId,
boolean synchronous,
long responseTimeout)
Asks the remote application to start playing the media referenced by the
specified media session ID.
|
MediaStatus |
Channel.seek(Session session,
int mediaSessionId,
double currentTime,
StandardRequest.ResumeState resumeState,
boolean synchronous)
Asks the remote application to move the playback position of the media
referenced by the specified media session ID to the specified position,
using 30000L as the timeout value.
|
MediaStatus |
Channel.seek(Session session,
int mediaSessionId,
double currentTime,
StandardRequest.ResumeState resumeState,
boolean synchronous,
long responseTimeout)
Asks the remote application to move the playback position of the media
referenced by the specified media session ID to the specified position.
|
<T extends Response> |
Channel.send(Session session,
String namespace,
Request message,
String sourceId,
String destinationId,
Class<T> responseClass,
long responseTimeout)
Sends the specified
Request to the specified destination using
the specified parameters. |
<T extends Response> |
Channel.sendGenericRequest(Session session,
String namespace,
Request request,
Class<T> responseClass)
|
<T extends Response> |
Channel.sendGenericRequest(Session session,
String namespace,
Request request,
Class<T> responseClass,
long responseTimeout)
|
MediaStatus |
Channel.setMediaVolume(Session session,
int mediaSessionId,
MediaVolume volume,
boolean synchronous)
Asks the remote application to change the volume level or mute state of
the stream of the specified media session.
|
MediaStatus |
Channel.setMediaVolume(Session session,
int mediaSessionId,
MediaVolume volume,
boolean synchronous,
long responseTimeout)
Asks the remote application to change the volume level or mute state of
the stream of the specified media session.
|
MediaStatus |
Channel.stopMedia(Session session,
int mediaSessionId,
boolean synchronous)
Asks the remote application to stop playback and unload the media
referenced by the specified media session ID, using
30000L as the timeout value.
|
MediaStatus |
Channel.stopMedia(Session session,
int mediaSessionId,
boolean synchronous,
long responseTimeout)
Asks the remote application to stop playback and unload the media
referenced by the specified media session ID.
|
| Constructor and Description |
|---|
ResultProcessor(Session session,
Class<T> responseClass,
long requestTimeout)
Creates a new instance using the specified parameters.
|
Copyright © 2022. All rights reserved.