J.R.
J.R.

Reputation: 6059

Tizen Samsung SDK: How do you play HLS video?

http://www.samsungdforum.com/TizenGuide/?FolderName=tizen61&FileName=index.html#/TizenGuide/?Foldername=tizen61&Filename=index.html

The above says:

You have two options for multimedia player in Tizen application.

■Use HTML5 tag. It doesn’t support DRMs and streaming engines like DASH, HAS, HLS and SmoothStreaming.

■Use avplay API or Samsung TV product API. It supports DRMs and streaming engines like DASH, HAS, HLS and SmoothStreaming.

Is this true? They say it's a private SDK, is that why I can't see any references to it online? And do we need the private sdk to stream HLS at all, or is it only for fancy player stuff?

Upvotes: 5

Views: 9998

Answers (2)

slva2000
slva2000

Reputation: 149

config.xml must content:

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

in head html file include:

JS:

var init = function () {
    console.log('init() called');
    var videos = document.querySelector('video');
   videos[0].play();
};

window.onload = init;

HTML:

<body>
    <video src="file.m3u8" controls></video>
</body>

See also this example: https://github.com/SamsungDForum/PlayerHTML5

Upvotes: 0

Ivan Solntsev
Ivan Solntsev

Reputation: 2120

HTML5 video tag does not supports HLS on Tizen platform.

You need to use AVPlay API to play streaming or DRM content.

Try to test AVPlay (Video Play) Sample in your emulator.

Upvotes: 4

Related Questions