public class AntPlusVideoControllableDevicePcc extends AntPlusBaseControllableDevicePcc
Modifier and Type | Class and Description |
---|---|
static class |
AntPlusVideoControllableDevicePcc.IpcDefines
Defines the keys and values used to communicate between the PCC and plugin.
|
static interface |
AntPlusVideoControllableDevicePcc.IVideoCommandReceiver
Receiver for the VideoCommand event, which is:
Commands sent by a remote control to initiate an action on a video device.
|
AntPluginPcc.IDeviceStateChangeReceiver, AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
PATH_ANTPLUS_PLUGINS_PKG
Modifier and Type | Method and Description |
---|---|
static PccReleaseHandle<AntPlusVideoControllableDevicePcc> |
requestAccess(Context bindToContext,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusVideoControllableDevicePcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver,
AntPlusVideoControllableDevicePcc.IVideoCommandReceiver videoCommandReceiver,
VideoDeviceCapabilities capabilities,
int channelDeviceId)
Send a request to access the plugin to receive video commands and gain control of video status updates.
|
void |
updateVideoStatus(int volume,
boolean muted,
int timeRemaining,
int timeProgressed,
VideoDeviceState videoState)
Update the status of the video device
|
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public static PccReleaseHandle<AntPlusVideoControllableDevicePcc> requestAccess(Context bindToContext, AntPluginPcc.IPluginAccessResultReceiver<AntPlusVideoControllableDevicePcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver, AntPlusVideoControllableDevicePcc.IVideoCommandReceiver videoCommandReceiver, VideoDeviceCapabilities capabilities, int channelDeviceId)
bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
RequestAccessResult#SUCCESS
RequestAccessResult#DEVICE_ALREADY_IN_USE
RequestAccessResult#USER_CANCELLED
RequestAccessResult#CHANNEL_NOT_AVAILABLE
RequestAccessResult#BAD_PARAMS
RequestAccessResult#ADAPTER_NOT_DETECTED
RequestAccessResult#DEPENDENCY_NOT_INSTALLED
RequestAccessResult#OTHER_FAILURE
stateReceiver
- The receiver to receive the state updates of the accessed device, if successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.videoCommandReceiver
- Receiver to receive eventscapabilities
- An instance of VideoDeviceCapabilities
used to indicate the capabilities of the video
device (e.g., support for recorder or playback). Capabilities cannot be changed after initialization.channelDeviceId
- Two-byte device number in the ANT channel ID to use when opening the controls channel.
This number is used for pairing with remotes and should be as unique as possible.
Set to zero to let the plugin generate the device ID (RECOMMENDED) based on the ANDROID_ID.
This number cannot be changed after initialization.public void updateVideoStatus(int volume, boolean muted, int timeRemaining, int timeProgressed, VideoDeviceState videoState)
volume
- Current volume setting, given as a percentage.muted
- True if the audio is muted; false otherwisetimeRemaining
- Time remaining on the video clip on a playback device, or time remaining available for recording on a recoding device. In seconds.timeProgressed
- Current number of seconds into playback/recording.videoState
- Current VideoDeviceState
of the video deviceCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.