console.log(0)
console.log({"id":"102741","vkey":"mc1fml","file_original_name":"Prova Xiaomi yeelight.mp4","file_upload_path":"\/smartworld\/2016\/06\/prova-xiaomi-yeelight_2778440242.mp4","file_mime_type":"video\/mp4","file_size":"90813751","file_thumb":"\/upload\/thumb\/androidworld\/2016\/06\/recensione-yeelight_1307164408.png","file_thumb_push":null,"file_thumb_associate":null,"contentprovider_id":"112","category_id":"1","title":"Prova Xiaomi Yeelight","tags":"Prova Xiaomi Yeelight","description":"Prova Xiaomi Yeelight","note":"","testo":"","opinion":null,"user_id":"62","created_at":"2016-06-21 09:58:07","updated_at":"2016-06-21 10:08:28","videostore_default":"2","ready":"0","publish_date":"2016-06-21 07:56:00","url":"","url_stats":"https:\/\/www.smartworld.it\/recensioni\/xiaomi-yeelight-lampada","durata":"128","upload_start_at":"2016-06-21 09:56:27","upload_end_at":"2016-06-21 09:57:44","upload_ip":"79.17.60.109","formato":"1920x1080","verticale":"0","extra_filter":null,"external_uploaded":null,"external_updated":null,"external_info":null,"external_img":null,"external_id":null,"adkaora":"0","external_freewheel":"1","aws":"0","title_gz":null,"mediaset_play":"0","vsid":"105989","video_id":"102741","video_vkey":"mc1fml","cp_id":"112","file_thumb_local_path":"\/upload\/thumb\/smartworld\/2016\/06\/prova-xiaomi-yeelight_2778440242dwl2.jpg","transferred_at":"2016-06-21 10:01:03","uploaded_at":"2016-06-21 10:01:41","chechek_at":"2016-06-21 10:08:28","status":"3","videostore_id":"2","url_m3u8":"https:\/\/video.amedigital.it\/amets\/smartworld\/2016\/06\/mc1fml\/mc1fml.m3u8","url_mp4":"","url_mp4_list":"","adv":"1","screenshoot":"3000","priorita_input":"D","priorita":"D","ripubblicato":"0","alexa":"0","url_mp4_alexa":"","embed":"71703"})
console.log("[ptp] IdNova: mc1fml | version: PAMELa swfg");
var ptpKAR_mc1fml=true;
var ptpHasadv_mc1fml=true;
var mobile = false;
  let div_mc1fml = document.createElement("div");
  let ptp_mc1fml = "av-content-wrapper-mc1fml";
  div_mc1fml.setAttribute("id", ptp_mc1fml);
    document.currentScript.parentNode.appendChild(div_mc1fml);

(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_mc1fml=true;
if(typeof(isPrimoPtpVideo)==='undefined'){
  var isPrimoPtpVideo='mc1fml';
  var amazonPtpBidding= [];
  var amazonPtpStarted=false;
}else{
  ptpAutoplay_mc1fml=false;
}
function playPtpmc1fml(params){
  console.debug("[ptp] playPtpmc1fml");


AVPushLoader({
    website:  ptpWebsite,
    adServer: ptpAdserver,
            flyMode: "fade",
    mode: "content",
    preferMaxQuality: true,
    videoId: "mc1fml",
    hasAdv: ptpHasadv_mc1fml,
    flightEnabled: true,
            closeFlyingAfter: 7000,
            prerollAutoplay: ptpAutoplay_mc1fml,
    contentAutoplay: false,
        targetElementId: ptp_mc1fml
});

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

