
autostart: "true" attribute not working in IPAD, working on my Laptop though
Hello Friends, I am developing a website having a JW Player video, targeted at IPad users,
My video auto starts while testing it on my laptop/pc, works in all browswers on my laptop, how ever the video would not auto start on Ipad
Am I doing some thing wrong? or would the auto start code be any different for Ipad.
Given below is my Code.
<div id="HDOT264SOG">Player Loading</div>
<script type="text/javascript">
function LoadSegment(startTime, duration) {
jwplayer("HDOT264SOG").setup({
flashplayer: "JWplayer/player.swf",
controlbar: "bottom",
height: 400,
width: 650,
skin: "JWplayer/skin/metarby10.swf",
autostart: "true"
}).onReady(function() {
if (this.container.tagName.toLowerCase() == "object") {
// Flash case
this.load({
file: "Sample_Video.mp4",
streamer: "rtmp://*****.*****.net/****", //Streamer Masked for Security
provider: "rtmp",
start: 200,
duration: 400
});
} else {
// HTML5 case
this.load({
file: "http://*****.*****.net/****/mp4:Sample_Video.mp4/playlist.m3u8",
//Streamer Masked for Security
start: 200,
duration: 400
});
}
});
}
</script>
One more thing, I am using all the necessary Header files and javascripts,
The Javascript function - LoadSegment shown above is called by Ajax Events
and it all works fine, I have no problem in the video playing, it plays well
on pc, it plays well on ipad as well after the user hits the play button,
problem is
I want it to autostart on ipad, i.e make it start automatically
with out the user having yo push the play button on the player.
Note* - i have also tried variations like
autostart: "true"
autoplay: "true"
autostart: true
autoplay: true
None of them work for Ipad
Help is welcome, thanks in advance