Your Website Title
mobile

Going Big Screen: How To Use Samsung Tizen's AVPlay?

Published on: April 26, 2021
blog-author-avatar
Written by:
Pieter-Jan Speelmans
Listen to this blog:

In the previous blog post, we’ve covered how to best bring your applications to Samsung Tizen and touched on the two approaches we have in delivering audio and video content to Samsung Tizen. In this blog, we will discuss how to leverage Samsung Tizen's native playback component, AVPlay. We will also list down its known use-case limitations.

THIS IS A SNIPPET FROM OUR “GOING BIG SCREEN: BRINGING VIDEO TO SAMSUNG TIZEN” GUIDE WHICH YOU CAN DOWNLOAD HERE.

 

Native Approach: AVPlay, Tizen’s native video player

As with most smart TV systems, Tizen comes with its own native video player, providing support for the most common streaming protocols. Tizen’s native video player is called AVPlay. Using AVPlay isn’t all too difficult and simply requires loading the AVPlay API library. This is as simple as loading the following script:

<script type= "text/javascript" src= "$WEBAPIS/webapis/webapis.js"></script>

With this library loaded, you can enable playback easily with AVPlay API by:

1. Defining the playback window and indicating AVPlay is to be used,

var objElem = document.createElement('object');

objElem.type = 'application/avplayer';

document.body.appendChild(objElem);

2. Configuring a media source,

webapis.avplay.open('https://content.domain.com/channel1.m3u8');

3. Loading the media source to prepare for playback,

webapis.avplay.prepare();

4. and trigger playback.

webapis.avplay.play();

As you can see, getting playback up and running is very simple. Beyond this, AVPlay brings some additional capabilities such as:

AVPlay: Challenges and Use-case Limitations

AVPlay has been around since Tizen’s early days in 2015 (with the launch of Tizen 2.3) and has evolved a lot, but as a result, AVPlay differs significantly in capabilities across different platform versions of Tizen. The main purpose of AVPlay however hasn’t changed: empower media apps to use basic playback capabilities. In practice, when building a full media app the capabilities of AVPlay will soon reach their limitations.

There are two main challenges which OTT video publishers often start to encounter when working with AVPlay:

  • Capabilities are limited to basic use cases and offer little flexibility.
  • Different versions of AVPlay are tied down to support specific versions of streaming protocols and (greatly) differ in capabilities.

Where the limited basic use cases support is often initially not seen as a huge issue, the problems start growing once new business cases get added. Some notable use cases which are difficult or even impossible to support properly are:

  • Monetization through client-side (CSAI) or server-side ad insertion (SSAI).
  • Reducing playback latency for optimal user experience in interactive or live broadcasts.
  • Advanced bitrate selection (or even manual bitrate selection)
  • Identifying streaming issues as error responses are extremely brief.
  • Monitoring QoE due to lack of detailed events (no possibility to inspect the size of the buffer, details of different tracks and qualities, …)
  • Support for alternative subtitle formats and subtitle styling.
  • Improved scrubbing with thumbnails or I-FRAME streams.

On top of these limitations, there are a lot of other fundamental technical limitations across different Tizen versions. These, consequently, make AVPlay to be a less viable option in delivering a reliable viewing experience on Samsung Tizen. In our next blog post, we are going to explore them and list down the varying support levels across Samsung Tizen versions and models.

You can download the complete version of this topic in our “GOING BIG SCREEN: BRINGING VIDEO TO SAMSUNG TIZEN” guide here.

 

Questions about our Tizen support? Contact our THEO experts.

Contact us

Want more information on one of our THEO solutions? Get in contact with us today.

Contact us

Want more information on one of our THEO solutions? Get in contact with us today.