I did RTMP streaming it is working fine for me, But now client needs HLS streaming, here is my code for RTMP streaming
var playerInstance = jwplayer("containerForShortVideo");
playerInstance.setup({
image: "' .Main_VideoUrl(ImagesUrl($VideoDetails[0])) /*S3_VIDEO_BUCKETABSOLUTE_PATH . $VideoDetails[0]['ImageName']*/ . '",
autostart: false,
sources: [
{
file: "' . S3_VIDEO_BUCKETABSOLUTE_PATH . $highResolutionURL . '",
label: "1080p",
type: "mp4"
},
{
file: "' . S3_VIDEO_BUCKETABSOLUTE_PATH . $VideoDetails[0]['VideoStreamURL'] . '",
label: "480p",
type: "mp4"
},
{
file: "' . S3_VIDEO_BUCKETABSOLUTE_PATH . $mediumResolutionURL . '",
label: "360p",
default: "true",
type: "mp4"
},
{
file: "' . S3_VIDEO_BUCKETABSOLUTE_PATH . $lowResolutionURL . '",
label: "240p",
type: "mp4"
}
],
advertising: {
client: "vast",
schedule: {
adbreak1: {
offset: "pre",
tag: "'.$adurl1.'",
},
adbreak2: {
offset:"'.$adurmidtime.'",
tag: "'.$adurl2.'",
},
adbreak3: {
offset: "post",
tag: "'.$adurl3.'",
},
}
}
});
Can anyone please tell me how can i convert this into HLS streaming ?