window.onload = function() {
flowplayer(function (api, root ) {
// prevent seeking completely, also via keyboard
var disable = function (e) {
e.preventDefault();
}
var enable = function (e) {
return true;
}
api.on('ready', function () {
$('.flowplayer').find('.fp-ui').click(function(){
$.post('/fa/ajax/news/video/691309',{},function (data) {});
});
$('.fp-quality-selector').hover(function () {
clearTimeout($(this).data('timeout'));
$(this).animate({height : '60px'}, 'slow');
}, function() {
var hoverR = $(this);
var t = setTimeout(function(){
hoverR.animate({height : '27px'}, 'slow');
}, 1000);
$(this).data('timeout', t);
})
});
});
$('.video-share-code').click(function(){
if($('.video_share_tag_box').hasClass('close-tag-box')) {
$('.video_share_tag_box').removeClass('close-tag-box');
$('.video_share_tag_box').addClass('open-tag-box');
} else {
$('.video_share_tag_box').removeClass('open-tag-box');
$('.video_share_tag_box').addClass('close-tag-box');
}
return false;
});
flowplayer(".player_691309", {
width : 700,
height :
$(document).ready(function() {
var api722403 = flowplayer("#player_722403", {
width : 700,
height : 85,
ratio: 9/16,
keyboard :false,
embed :false,
playlist: [
{
// set up adverts for second clip
ima: {
ads: [{
// a pre-roll advert for this feature
time: 10,
ad_type: "standardvideo",
max_ad_duration: 6000,
sdmax: 6000,
}]
},
title: "Flowplayer Quality Selector",
// quality selector plugin configuration
qualities: [, "480p", "284p"],
qualitiesUrl : {
"480p": "http://cdn.tabnak.ir/files/fa/news/1396/2/20/722447_757.mp4","284p": "http://cdn.tabnak.ir/files/fa/news/1396/2/20/722448_967.mp4",
},
sources: [
{ type: "video/mp4",src: "http://cdn.tabnak.ir/files/fa/news/1396/2/20/722446_196.mp4" },
]
},
]
});
// prevent seeking completely, also via keyboard
var disable = function (e) {
e.preventDefault();
}
var enable = function (e) {
return true;
}
api722403.on('ready', function