Wednesday, 10 May 2017

HLS streaming in JW player

I have configured JW-PLAYER and AWS account and transcoded some videos using AWS account.

Now, on which Devices I can access it for free with the quality option. I created a manifest file and it has the details as below.

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=535000,RESOLUTION=400x224,CODECS="avc1.42001e,mp4a.40.2"
1494256592025_tammatamma_400k.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=804000,RESOLUTION=480x270,CODECS="avc1.42001e,mp4a.40.2"
1494256592025_tammatamma_600k.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1381000,RESOLUTION=640x360,CODECS="avc1.4d001f,mp4a.40.2"
1494256592025_tammatamma_1m.m3u8

I am testing in mac safari, and I think it is only device I think I can play using free account.(Is any other device supported)

jwoptions = {
flashplayer: "assets/jwplayer.loader.swf",
id: "myPlayer1",
debug: true,
type: "hls",
hlshtml: true,
autostart: false,
androidhls: true,
width: "100%",
file: $sce.trustAsResourceUrl("http://my-url/index.m3u8"),
hlslabels: {
"535": "High",
"804": "Medium",
"1381": "Low"
},
primary: "flash",
}

But, I am not not getting the HD button to toggle the quality. Please help me out.

Thank You



via Sravan

No comments:

Post a Comment