I have used the licensed version of FlowPlayer 5.3.2 to play an encoded video in mp4 format. In almost all the browsers it plays without any hiccup but it does not play in the latest version of Chrome 28.0.1500.95m (to date 13-08-2013) on Windows 7. I'm loading the player to the page upon a button click using AJAX. This happens only in Chrome for Windows. I am triggering the following function on a button click and pops up the light box and loads the player using AJAX inside it.
function playVideo() {
var url1 = 'http://example.com/dashboard/play_video';
var url = 'http://s3.amazonaws.com/xxxxxxxxx/xxxxxx.mp4?413142680';
$.ajax({
url: url1,
type: 'post',
data: 'url=' + url,
success: function(data) {
var toolbox1 = $("#how_to_make_video").html();
$("#video_preview2").html(data + toolbox1);
$("#video_preview2").dialog({
width: 700,
height: 500,
close: function(event, ui) {
$(".flowplayer").stop();
}
});
if (url.indexOf("s3.amazonaws.com") !== -1) {
$(".flowplayer").flowplayer({splash: true,
rtmp: "rtmp://" + userStream + "/cfx/st",
swf: "/site/js/flowplayer/flowplayer.swf"
});
} else {
$(".flowplayer").flowplayer({splash: true,
swf: "/site/js/flowplayer/flowplayer.swf"
});
}
}
});
}
This is the same function that is used to play in all the other browsers. But when playing videos using this, the player shows an error "html5: Video not properly encoded" first and then automatically changes it to "html5: Video file not found". When the video URL "url" in above code is pasted in Chrome's address bar it does not play either. But it plays in other browsers on other platforms.
Is it a problem with the latest version of Chrome or the video?