advancejulu
  • Blog

Super player version 1.3a

4/6/2023

0 Comments

 
super player version 1.3a

Implementing player listenerĮxample below shows how to implement player listener, which will perform some action on player If any media got Czech subtitles, thenīy default they will be enabled and displayed during media playback. Setting bp.getPlayerConfig().subtitles = "cz" Ĭhoose Czech (“cz” - ISO language code) language as default. M2.subtitlesSets = new SubtitlesFile("cz", "") BradmaxPlayer bp = (BradmaxPlayer) findViewById(R.id.bradmax_player_full_screen_webview) Second use single external file for subtitles in Czech language Settings - just defining duration, so before starting playback it will be displayed correctly on Sample below show how to define playlist. Use “embed id” in tRemoteBradmaxPlayerEmbedId() method.Įxample: BradmaxPlayer bp = (BradmaxPlayer) findViewById(R.id.bradmax_player_full_screen_webview) īp.setRemoteBradmaxPlayerEmbedId("6e6040e800a877db910c71d42e95980e7787eceb_4023") ĭefining playlist with one video with subtitles.It is just after “/embed-player/” and before "?mediaUrl=". Search there for "embed id", which is placed " ?mediaUrl=…". Click “get embed code” button on selected player.

super player version 1.3a

Will be downloaded next time player is opened.įor using remotly loaded player “embed Id” is needed. adding custom colours and logo for holidays), then new view Platform since last load then it is loaded from WebView cache.

super player version 1.3a

In this example player is always loading from bradmax platform.

  • Pass relative (relative to assets dir) path to your player into tLocalBradmaxPlayerAssetPath(String path) method.īp.setLocalBradmaxPlayerAssetPath("bradmax_player.js").
  • Save bradmax_player.js file in your app assets path (see: where find assets folder).
  • Extract bradmax_player.js file from downloaded ZIP file ,.
  • You have to download player build from ,.
  • This example shows how to use custom configured and generated bradmax JavaScript player from bradmax Sample app manifest (AndroidManifest.xml) with configuration for not “re-creating” view on devicde orientation change. Import .SubtitlesFile Ĭlass BradmaxPlayerDemo extends AppCompatActivity void onCreate(Bundle savedInstanceState) īradmaxPlayer bp = (BradmaxPlayer) findViewById(R.id.bradmax_player_full_screen_webview) Below is presented complete example with fullįile content, but for next examples only changes in BradmaxPlayerDemo.onCreate() are present.īradmaxPlayer class extends WebView component, so can be threaded as WebView with additionalĪndroid app Activity class. Sample XML viewĪnd general configuration for Activity are the same.
  • Simple ads example with loading ads from remote vmap fileĪll examples below differs only in sample BradmaxPlayerDemo.onCreate() method.
  • Defining playlist with one video with subtitles.
0 Comments



Leave a Reply.

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    April 2023

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Blog