public class VideoDropDownReceiver extends DropDownReceiver implements DropDown.OnStateListener, BufferSeekBar.BufferSeekBarChangeListener, android.view.View.OnClickListener, android.view.View.OnLongClickListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
VideoDropDownReceiver.AlternativeVideoPlayer |
static class |
VideoDropDownReceiver.WaveRelayAlternativePlayer
Consolidates the original third party logic for Wave Relay devices.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DISPLAY |
static java.lang.String |
SNAPSHOT_DIRNAME |
static java.lang.String |
TAG |
static java.lang.String |
VIDEO_DIRNAME |
DROPDOWN_STATE_FULLSCREEN, DROPDOWN_STATE_NONE, DROPDOWN_STATE_NORMAL, FIVE_EIGTHS_HEIGHT, FIVE_EIGTHS_WIDTH, FIVE_TWELFTHS_HEIGHT, FIVE_TWELFTHS_WIDTH, FULL_HEIGHT, FULL_WIDTH, HALF_HEIGHT, HALF_WIDTH, HANDLE_THICKNESS_LANDSCAPE, HANDLE_THICKNESS_PORTRAIT, NO_HEIGHT, NO_WIDTH, QUARTER_SCREEN, SEVEN_SIXTEENTH_WIDTH, THIRD_HEIGHT, THIRD_WIDTH, THREE_EIGHTHS_HEIGHT, THREE_EIGHTHS_WIDTH, TWO_THIRDS_HEIGHT, TWO_THIRDS_WIDTH| Constructor and Description |
|---|
VideoDropDownReceiver(MapView mapView,
android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
static VideoDropDownReceiver.AlternativeVideoPlayer |
getAlternativeVideoPlayer()
Obtain the currently set Alternative video player.
|
void |
mediaBytes(int i,
byte[] bytes) |
void |
mediaEOF() |
void |
mediaFatalError(java.lang.String s) |
void |
mediaKLVData(KLVData klvData) |
void |
mediaStreamExtentsUpdate(long startMillis,
long endMillis) |
protected boolean |
onBackButtonPressed()
For a dropdown that has told the drop down manager to ignore the back button.
|
void |
onClick(android.view.View view) |
void |
onDropDownClose() |
void |
onDropDownSelectionRemoved() |
void |
onDropDownSizeChanged(double width,
double height) |
void |
onDropDownVisible(boolean v) |
boolean |
onLongClick(android.view.View view) |
void |
onProgressChanged(BufferSeekBar seekBar,
int progress) |
void |
onReceive(android.content.Context c,
android.content.Intent intent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sp,
java.lang.String key) |
void |
onStartTrackingTouch(BufferSeekBar seekBar) |
protected void |
onStateRequested(int state)
Signal for a request by the handle.
|
void |
onStopTrackingTouch(BufferSeekBar seekBar) |
static void |
registerVideoViewLayer(VideoViewLayer v)
Registers an overlay view on top of the video window.
|
static void |
setAlternativeVideoPlayer(VideoDropDownReceiver.AlternativeVideoPlayer a)
Method for setting the alternative video player for TAK.
|
static void |
unregisterVideoViewLayer(VideoViewLayer v)
Unregisters an overlay view previously registered.
|
_showDropDown, callResize, closeDropDown, dispose, dropDownAlreadyExists, getAssociationKey, getBackStackCount, getDropDown, getMapView, hideDropDown, isClosed, isPortrait, isRetained, isTablet, isTransient, isVisible, resize, setAssociationKey, setRetain, setSelected, setSelected, setSelected, setTransient, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, unhideDropDownabortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic static final java.lang.String TAG
public static final java.lang.String DISPLAY
public static final java.lang.String VIDEO_DIRNAME
public static final java.lang.String SNAPSHOT_DIRNAME
public VideoDropDownReceiver(MapView mapView, android.content.Context context)
public void onSharedPreferenceChanged(android.content.SharedPreferences sp,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListenerpublic static void registerVideoViewLayer(VideoViewLayer v)
v - the videoviewlayer to registerpublic static void unregisterVideoViewLayer(VideoViewLayer v)
v - the videoviewlayer to unregisterpublic boolean onLongClick(android.view.View view)
onLongClick in interface android.view.View.OnLongClickListenerpublic void onClick(android.view.View view)
onClick in interface android.view.View.OnClickListenerpublic void onProgressChanged(BufferSeekBar seekBar, int progress)
onProgressChanged in interface BufferSeekBar.BufferSeekBarChangeListenerpublic void onStartTrackingTouch(BufferSeekBar seekBar)
onStartTrackingTouch in interface BufferSeekBar.BufferSeekBarChangeListenerpublic void onStopTrackingTouch(BufferSeekBar seekBar)
onStopTrackingTouch in interface BufferSeekBar.BufferSeekBarChangeListenerpublic void mediaBytes(int i,
byte[] bytes)
public void mediaStreamExtentsUpdate(long startMillis,
long endMillis)
public void mediaEOF()
public void mediaFatalError(java.lang.String s)
public void mediaKLVData(KLVData klvData)
public void disposeImpl()
DropDownReceiverdisposeImpl in class DropDownReceiverpublic void onReceive(android.content.Context c,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiverprotected void onStateRequested(int state)
DropDownReceiveronStateRequested in class DropDownReceiverstate - DROPDOWN_STATE_FULLSCREEN = 2;
DROPDOWN_STATE_NORMAL = 1;
DROPDOWN_STATE_NONE = 0;protected boolean onBackButtonPressed()
DropDownReceiveronBackButtonPressed in class DropDownReceiverpublic void onDropDownSelectionRemoved()
onDropDownSelectionRemoved in interface DropDown.OnStateListenerpublic void onDropDownVisible(boolean v)
onDropDownVisible in interface DropDown.OnStateListenerpublic void onDropDownSizeChanged(double width,
double height)
onDropDownSizeChanged in interface DropDown.OnStateListenerpublic void onDropDownClose()
onDropDownClose in interface DropDown.OnStateListenerpublic static void setAlternativeVideoPlayer(VideoDropDownReceiver.AlternativeVideoPlayer a)
a - the implementation of the alternative video player or null if no alternative should
be used. Make sure that during plugin unload the alternative video player is
set to null.public static VideoDropDownReceiver.AlternativeVideoPlayer getAlternativeVideoPlayer()