webOS plugin

The webOS plugin adds platform-specific behavior and functionality, including remote control functionality, for webOS. WebOS powers LG Smart TVs. Wowza provides Smart TV help to create webOS apps.

Installation

Include the webos plugin next to the core player:

Copy
Copied
<script src="//cdn.flowplayer.com/releases/native/3/stable/flowplayer.min.js"></script>
<script src="//cdn.flowplayer.com/releases/native/3/stable/plugins/webos.min.js"></script>

App development

If you are creating an application for webOS, keep the following in mind (see below).

Disable history API

In your appinfo.json, disable the back button on the remote control to use the history API:

Copy
Copied
{
  "...": "...",
  "disableBackHistoryAPI": true
}

Handle back button from player

The player will handle the back buttons internally. If you click the back button from your remote when the player is in a "neutral" state, the player will emit the flowplayer.webos.events.EXIT_FULLSCREEN event that you can handle in your app:

Copy
Copied
player.on(flowplayer.webos.events.EXIT_FULLSCREEN, () => { // Exit from videoplayer requested
  window.webOS.platformBack() // shut down app
})