console.log(0)
console.log({"id":"197431","vkey":"pracyd","file_original_name":"Recensione iPhone XR NOVA.mp4","file_upload_path":"\/androidworld\/2018\/11\/recensione-iphone-xr-nova_1527243947.mp4","file_mime_type":"video\/mp4","file_size":"800896733","file_thumb":"\/upload\/thumb\/androidworld\/2018\/11\/iphone-xr_396947380.png","file_thumb_push":null,"file_thumb_associate":null,"contentprovider_id":"111","category_id":"1","title":"Recensione iPhone XR","tags":"Recensione iPhone XR","description":"Recensione iPhone XR","note":"","testo":"","opinion":null,"user_id":"186","created_at":"2018-11-02 13:23:29","updated_at":"2018-11-02 13:40:07","videostore_default":"2","ready":"0","publish_date":"2018-11-02 12:08:00","url":"","url_stats":"https:\/\/www.mobileworld.it\/tag\/iphone-xr\/","durata":"1018","upload_start_at":"2018-11-02 13:08:56","upload_end_at":"2018-11-02 13:21:27","upload_ip":"93.46.51.81","formato":"1920x1080","verticale":"0","extra_filter":null,"external_uploaded":null,"external_updated":null,"external_info":null,"external_img":null,"external_id":"","adkaora":"0","external_freewheel":"1","aws":"0","title_gz":null,"mediaset_play":"0","vsid":"200653","video_id":"197431","video_vkey":"pracyd","cp_id":"111","file_thumb_local_path":"\/upload\/thumb\/androidworld\/2018\/11\/recensione-iphone-xr-nova_1527243947dwl2.jpg","transferred_at":"2018-11-02 13:25:02","uploaded_at":"2018-11-02 13:26:54","chechek_at":"2018-11-02 13:40:07","status":"3","videostore_id":"2","url_m3u8":"https:\/\/video-encoder-output.s3-eu-west-1.amazonaws.com\/amets\/mobileworld\/2018\/11\/pracyd\/pracyd.m3u8","url_mp4":"","url_mp4_list":"","adv":"1","screenshoot":"3000","priorita_input":"D","priorita":"banzai_sp","ripubblicato":"0","alexa":"0","url_mp4_alexa":"","embed":"125725"})
console.log("[ptp] IdNova: pracyd | version: PAMELa swfg");
var ptpKAR_pracyd=true;
var ptpHasadv_pracyd=true;
var mobile = false;
  let div_pracyd = document.createElement("div");
  let ptp_pracyd = "av-content-wrapper-pracyd";
  div_pracyd.setAttribute("id", ptp_pracyd);
    document.currentScript.parentNode.appendChild(div_pracyd);

(function (a,l,t,e,r) {
  a[e] = a[e] || function(s) { (a[e].run = a[e].run || []).push(s)};
  let g,z = l.getElementsByTagName(t)[0];
  if (l.getElementById(e)){return;}
  g = l.createElement(t); g.id = e; g.src = r; g.async = 1;
  z.parentNode.insertBefore(g,z);
}(window, document, 'script', 'AVPushLoader', "https://ptp.stbm.it/pushdown/loader/av/pushdown-loader.js?cb=2.9.6"));

var ptpWebsite='swfg';
var ptpAdserver='freewheel';
var ptpAutoplay_pracyd=true;
if(typeof(isPrimoPtpVideo)==='undefined'){
  var isPrimoPtpVideo='pracyd';
  var amazonPtpBidding= [];
  var amazonPtpStarted=false;
}else{
  ptpAutoplay_pracyd=false;
}
function playPtppracyd(params){
  console.debug("[ptp] playPtppracyd");


AVPushLoader({
    website:  ptpWebsite,
    adServer: ptpAdserver,
            flyMode: "fade",
    mode: "content",
    preferMaxQuality: true,
    videoId: "pracyd",
    hasAdv: ptpHasadv_pracyd,
    flightEnabled: true,
            closeFlyingAfter: 7000,
            prerollAutoplay: ptpAutoplay_pracyd,
    contentAutoplay: false,
        targetElementId: ptp_pracyd
});

}
if(isPrimoPtpVideo=='pracyd'){
  function playPrerollWithAmazon(params){
    if(!amazonPtpStarted){
      amazonPtpStarted=true;
      amazonPtpBidding = params;
      playPtppracyd(params);
    }
  }
  setTimeout(function(){
    if(!amazonPtpStarted){
      playPrerollWithAmazon([]);
    }
  }, 5000 );
}else{
  console.info("[ptp] no autoplay pracyd");
  playPtppracyd([]);
}

