Skip to content

Tizen plugin

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

Installation

Include the tizen plugin next to the core player:

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

App development

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

Configure your app with necessary privileges

In config.xml, you can grant your app privileges.

Enable network access to be able to fetch videos:

<access origin="*" subdomains="true"></access>
<tizen:allow-navigation>*</tizen:allow-navigation>
<tizen:privilege name="http://tizen.org/privilege/internet" />

Allow remote control access:

<tizen:privilege name="http://tizen.org/privilege/tv.inputdevice" />

Register keys

To make the OS emit the keypress events you need to register keys, add:

tizen.tvinputdevice.registerKey('MediaPlayPause');

See more from the Samsung documentation.

Handle player exit

When the player is active, it will swallow the back-button presses. To handle this in your application, use the flowplayer.tizen.events.EXIT_FULLSCREEN event triggered by the player when the back button is pressed, to get out of player:

player.on(flowplayer.tizen.events.EXIT_FULLSCREEN, () => {
  // Handle your app state
})