1.07
anywheresoftware.b4a.objects.SimpleExoPlayerWrapper
SimpleExoPlayer
An advanced audio and video player. It supports more formats than MediaPlayer.
Can be used together with SimpleExoPlayerView.
<b>Should be a process global variable.</b>
process
Complete
Error (Message As String)
Ready
TrackChanged
android.permission.INTERNET
CreateFileSource
Creates a local file source.
java.lang.Object
Dir
java.lang.String
FileName
java.lang.String
Pause
Pauses the playback.
void
CreateListSource
Concatenates multiple sources.
java.lang.Object
Sources
anywheresoftware.b4a.objects.collections.List
CreateUriSource
Creates a Uri source for non-streaming media resources.
java.lang.Object
Uri
java.lang.String
InitializeCustom
void
ba
anywheresoftware.b4a.BA
EventName
java.lang.String
NativePlayer
java.lang.Object
Initialize
Initializes the player.
void
ba
anywheresoftware.b4a.BA
EventName
java.lang.String
CreateHLSSource
Creates a HLS (Http live streaming) source.
java.lang.Object
Uri
java.lang.String
Play
Starts or resumes playback. If the source is currently loading then it will starting playing when ready.
void
CreateLoopSource
Creates a loop source. The child source will be played multiple times.
Pass -1 to play it indefinitely.
java.lang.Object
Source
java.lang.Object
Count
int
CreateSmoothStreamingSource
Creates a Smooth Streaming source.
java.lang.Object
Uri
java.lang.String
Prepare
Prepares the media source. The Ready event will be raised when the playback is ready. You can call play immediately after calling this method.
void
Source
java.lang.Object
Release
Releases the player resources. The player needs to be initialized again before it can be used.
void
CreateDashSource
Creates a Dash (Dynamic Adaptive Streaming over Http) source.
java.lang.Object
Uri
java.lang.String
CurrentWindowIndex
int
Returns the index of the window currently played.
Position
long
value
int
Gets or sets the current position (in milliseconds). Note that the Ready event will be raised after this call.
Volume
float
f
float
Gets or sets the volume (0 - 1).
Duration
long
Returns the resource duration (in milliseconds).
IsPlaying
boolean
Returns true if the player is currently playing.
anywheresoftware.b4a.objects.SimpleExoPlayerViewWrapper
SimpleExoPlayerView
A player interface. Should be added as a custom view with the designer.
The Player property must be set.
com.google.android.exoplayer2.ui.SimpleExoPlayerView
process
DesignerCreateView
void
base
anywheresoftware.b4a.objects.PanelWrapper
lw
anywheresoftware.b4a.objects.LabelWrapper
props
anywheresoftware.b4a.objects.collections.Map
IsInitialized
boolean
Initialize
void
arg0
anywheresoftware.b4a.BA
arg1
java.lang.String
BringToFront
void
SetLayout
void
arg0
int
arg1
int
arg2
int
arg3
int
SendToBack
void
SetVisibleAnimated
void
arg0
int
arg1
boolean
RemoveView
void
Invalidate3
void
arg0
int
arg1
int
arg2
int
arg3
int
Invalidate2
void
arg0
android.graphics.Rect
SetColorAnimated
void
arg0
int
arg1
int
arg2
int
SetBackgroundImageNew
anywheresoftware.b4a.objects.drawable.BitmapDrawable
arg0
android.graphics.Bitmap
Invalidate
void
SetLayoutAnimated
void
arg0
int
arg1
int
arg2
int
arg3
int
arg4
int
RequestFocus
boolean
Player
Player
anywheresoftware.b4a.objects.SimpleExoPlayerWrapper
Sets the player engine.
Left
int
arg0
int
Background
android.graphics.drawable.Drawable
arg0
android.graphics.drawable.Drawable
Parent
java.lang.Object
Color
arg0
int
ResizeMode
s
java.lang.String
Sets the resize mode. Possible values: FIT, FIXED_HEIGHT or FIXED_WIDTH
Enabled
boolean
arg0
boolean
Top
int
arg0
int
Visible
boolean
arg0
boolean
Padding
int[]
arg0
int[]
UseController
boolean
b
boolean
Enables or disables the controller.
ControllerTimeout
int
i
int
Gets or sets the controller timeout (measured in milliseconds). The control will disappear after the set period.
Pass -1 to show it indefintely.
Height
int
arg0
int
Tag
java.lang.Object
arg0
java.lang.Object
Width
int
arg0
int
key:ResizeMode, displayname:Resize Mode, fieldtype:String, defaultvalue:FIT, list:FIT|FIXED_HEIGHT|FIXED_WIDTH
key:UseController, displayname:Use Controller, fieldtype:Boolean, defaultvalue:True
key:ControllerTimeout, displayname:Controller Timeout (ms), fieldtype:Int, defaultvalue:5000, description:Pass -1 to prevent the controller from hiding.
1.42
exoplayer-core-2.11.3.aar
exoplayer-dash-2.11.3.aar
exoplayer-hls-2.11.3.aar
exoplayer-2.11.3.aar
exoplayer-smoothstreaming-2.11.3.aar
exoplayer-ui-2.11.3.aar
extension-rtmp-2.11.3.aar
exoplayer_desugar.jar