V1.0.5 Exoplayer for AppInventor | Play media with Google's Exoplayer

Exoplayer UI 1.0.4

Events


Event raised when fullscreen button is clicked and its status changes. Here you can perform different functions to enter or exit fullscreen.


Example

Event raised when controls visibility changes. Here you can update your UI. For example : You can show/hide a title label etch.


Functions


create_simple

Create player view in a layout.

create_styled

Create styled player view.

show_controls

Show controls.

hide_controls

Hide Controls.

show_system_ui

Show system UI. The function is in experimental phase and may not work properly.

hide_system_ui

Hide System UI. The function is in experimental phase and may not work properly.


Properties


fast_forward_button_visible

next_button_visible

previous_button_visible

rewind_button_visible

shuffle_button_visible

subtitle_button_visible

fullscreen_button_visible

Show or hide player controls

use_artwork

Set whether to show an image when playing an audio file.

default_thumbnail

Set default thumbnail in case if there is no thumbnail in media metadata, the player will show this thumbnail. It works only for audio files.

Set repeat toggle modes. This will show/hide repeat toggle button.

Set when to show loading progress indicator.

Set video resize mode

auto_show_controller

Automatically show controller when media is interupted during playback.

controller_timeout

Milliseconds after which the controller should hide.

hide_on_touch

Hide controller on touch.

use_controller

Whether to use default controller or not.

animation_enabled

Enable/Disable controls animation.


Track Properties

active_thumb_size

Active thumb size.

thumb_size

Thumb size.

disabled_thumb_size

Disabled thumb size.

buffered_color

Buffered track color.

track_color

Track color.

progress_color

Progress color.


Subtitle Properties

background_color

Subtitle background color.

foreground_color

Subtitle foreground color. ( Text Color )

edge_color

Subtitle edge color.

window_color

Subtitle window color.

Text size type.
1- Use SizeTypeAbsolute if you want to set a specific font size irrespective of the player size.
2- Use SizeTypeFractional if you want to set font size relative the player size.

text_size_absolute

Absolute text size.

text_size_fraction

Fractional text size.

Subtitle render view type. Use ViewTypeWeb if your subtitles have html styles embedded. For general purpose, you can always use ViewTypeCanvas.

Subtitle edge type.

bottom_padding

Subtitle bottom padding.

ignore_padding

Whether to ignore bottom padding or not.

typeface

Specify a custom font.