Used by the com.google.appinventor.components.runtime.Form class to display videos in fullscreen.
- Author
- Vance Turnewitsch
Definition at line 39 of file FullScreenVideoUtil.java.
◆ FullScreenVideoUtil()
com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FullScreenVideoUtil |
( |
Form |
form, |
|
|
Handler |
handler |
|
) |
| |
◆ createFullScreenVideoDialog()
Dialog com.google.appinventor.components.runtime.util.FullScreenVideoUtil.createFullScreenVideoDialog |
( |
| ) |
|
Creates the dialog for displaying a fullscreen VideoView.
- Returns
- The created Dialog
Definition at line 283 of file FullScreenVideoUtil.java.
◆ dialogInitialized()
boolean com.google.appinventor.components.runtime.util.FullScreenVideoUtil.dialogInitialized |
( |
| ) |
|
◆ onCompletion()
void com.google.appinventor.components.runtime.util.FullScreenVideoUtil.onCompletion |
( |
MediaPlayer |
arg0 | ) |
|
◆ onPrepared()
void com.google.appinventor.components.runtime.util.FullScreenVideoUtil.onPrepared |
( |
MediaPlayer |
arg0 | ) |
|
◆ performAction()
synchronized Bundle com.google.appinventor.components.runtime.util.FullScreenVideoUtil.performAction |
( |
int |
action, |
|
|
VideoPlayer |
source, |
|
|
Object |
data |
|
) |
| |
Perform some action and get a result. The data to pass in and the result returned are controlled by what the action is.
- Parameters
-
action | Can be any of the following:
|
source | The VideoPlayer to use in some actions. |
data | Used by the method. This object varies depending on the action. |
- Returns
- Varies depending on what action was passed in.
Definition at line 164 of file FullScreenVideoUtil.java.
◆ prepareFullScreenVideoDialog()
void com.google.appinventor.components.runtime.util.FullScreenVideoUtil.prepareFullScreenVideoDialog |
( |
Dialog |
dia | ) |
|
Call just before displaying a fullscreen video Dialog. This method sets up some listeners.
- Parameters
-
dia | The dialog that will display the video. |
Definition at line 341 of file FullScreenVideoUtil.java.
◆ setSource()
boolean com.google.appinventor.components.runtime.util.FullScreenVideoUtil.setSource |
( |
String |
source, |
|
|
boolean |
clearSeek |
|
) |
| |
Sets the source to be used by the fullscreen video Dialog. This method also attempts to load the internal VideoView with the source.
- Parameters
-
- Returns
- True if the video was successfully loaded. False otherwise.
Definition at line 377 of file FullScreenVideoUtil.java.
◆ showing()
boolean com.google.appinventor.components.runtime.util.FullScreenVideoUtil.showing |
( |
| ) |
|
◆ startDialog()
void com.google.appinventor.components.runtime.util.FullScreenVideoUtil.startDialog |
( |
| ) |
|
◆ ACTION_DATA
final String com.google.appinventor.components.runtime.util.FullScreenVideoUtil.ACTION_DATA = "ActionData" |
|
static |
◆ ACTION_SUCESS
final String com.google.appinventor.components.runtime.util.FullScreenVideoUtil.ACTION_SUCESS = "ActionSuccess" |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_DURATION
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_DURATION = 196 |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_FULLSCREEN
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_FULLSCREEN = 195 |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_PAUSE
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PAUSE = 192 |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_PLAY
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PLAY = 191 |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_SEEK
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SEEK = 190 |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_SOURCE
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SOURCE = 194 |
|
static |
◆ FULLSCREEN_VIDEO_ACTION_STOP
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_STOP = 193 |
|
static |
◆ FULLSCREEN_VIDEO_DIALOG_FLAG
final int com.google.appinventor.components.runtime.util.FullScreenVideoUtil.FULLSCREEN_VIDEO_DIALOG_FLAG = 189 |
|
static |
◆ VIDEOPLAYER_FULLSCREEN
final String com.google.appinventor.components.runtime.util.FullScreenVideoUtil.VIDEOPLAYER_FULLSCREEN = "FullScreenKey" |
|
static |
◆ VIDEOPLAYER_PLAYING
final String com.google.appinventor.components.runtime.util.FullScreenVideoUtil.VIDEOPLAYER_PLAYING = "PlayingKey" |
|
static |
◆ VIDEOPLAYER_POSITION
final String com.google.appinventor.components.runtime.util.FullScreenVideoUtil.VIDEOPLAYER_POSITION = "PositionKey" |
|
static |
◆ VIDEOPLAYER_SOURCE
final String com.google.appinventor.components.runtime.util.FullScreenVideoUtil.VIDEOPLAYER_SOURCE = "SourceKey" |
|
static |
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/util/FullScreenVideoUtil.java