Tizen support
The tizen
plugin adds platform-specific behavior and functionality for Tizen. Tizen powers the Smart TVs from Samsung.
Table of contents
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>
Configuration
There is no extra configuration required for the plugin.
App development
If you are creating an application for Tizen there are some gotchas.
Configure your app with necessary privileges
In your 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
In order to make the OS emit the keypress events you need to register keys:
tizen.tvinputdevice.registerKey('MediaPlayPause');
See more from samsung documentation: LINK
Handle player exit
When the player is active it will swallow the back-button presses. In order to handle it in your application you can use the flowplayer.tizen.events.EXIT_FULLSCREEN
event triggered by the player when back button is pressed to get out of player:
player.on(flowplayer.tizen.events.EXIT_FULLSCREEN, () => {
// Handle your app state
})