0byt3m1n1
Path:
/
home
/
mgatv524
/
medcenter.mgaplay.com.br
/
web
/
media
/
[
Home
]
File: 25.xlf
<?xml version="1.0"?> <layout width="1920" height="1080" bgcolor="#000" schemaVersion="3" enableStat="0"><region id="33" width="24" height="18" top="0" left="0"><options><loop>0</loop><transitionDirection>N</transitionDirection><transitionDuration/><transitionType/></options><media id="40" type="embedded" render="native" duration="60" useDuration="0" fromDt="1969-12-31 21:00:00" toDt="2038-01-19 00:14:07" enableStat="0"><options><enableStat>Inherit</enableStat><name>antena 1 novo 1</name><scaleContent>1</scaleContent><transparency>0</transparency><updateInterval>525600</updateInterval></options><raw><embedHtml><![CDATA[<!DOCTYPE html> <html> <head> <base href="https://www.antena1.com.br" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Rádio Ao Vivo | Antena 1 | Embedded</title> <meta name="KEYWORDS" content="antena1, streaming, rádio, radio, Rádio Ao Vivo, rádio Ao Vivo"> <meta name="author" content="©2018 Antena1"> <link rel="icon" type="image/ico" href="/favicon.ico" /> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-5235184-4"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-5235184-4'); </script> <!-- End Google --> <style> html { background-color: trasparent; overflow: hidden; } body { background-color: #909090; margin: 0px; } .playerContainer { position: relative; width: 174px; height: 60px; text-align: center; background-color: #909090; overflow: hidden; vertical-align: middle; } .logo { border: none; float: left; margin-top: 9px; margin-left: 16px; } .playPause { float: left; background-image: url('/embeddedPlayer/img/pause.png'); margin-left: 13px; margin-top: 22px; width: 23px; height: 23px; cursor: pointer; } </style> </head> <body> <div class="playerContainer"> <a href="https://www.antena1.com.br/aovivo" target="_blank"><img class="logo" src="/embeddedPlayer/img/Logo-default.png" alt="Antena 1 logo" width="90px" height="45px"/></a> <div class="playPause" id="playPause"></div> <audio id="player" autoplay> <source src="/stream/stream/1;?type=mp4" type='audio/mp4; codecs="mp4a.40.5"' /> <source src="/stream/stream/1;?type=aacp" type="audio/aacp" /> <source src="/stream/stream/2;?type=mpeg" type="audio/mpeg" /> Seu navegador não suporta o audio element. </audio> </div> <script> const player = document.getElementById('player'); const ctrl = document.getElementById('playPause'); const playImg = "url('/embeddedPlayer/img/play.png')"; const pauseImg = "url('/embeddedPlayer/img/pause.png')"; let gaHeartBeatHandle = false; const gaHeartBeat = function(){ if(!player.paused){ //send ga event if player is actually playing gtag('event', "isPlaying-embed", { 'event_category': "AoVivo-embed", 'non_interaction': true }); } //repeat every 4 minutes to keep session alive gaHeartBeatHandle = setTimeout(function(){gaHeartBeat()}, 1000*60*4); } setTimeout(function(){ // after seven seconds, check if player is really playing and start the gaHeartBeat if(!player.paused){ gaHeartBeat() }else{ //if the player is not playing, set the play icon (this might happen on mobile devices or on a slow connection) ctrl.style.backgroundImage = playImg player.pause() //just to be sure console.warn("Player not playing. Bad internet connection or mobile device?") } }, 7000); ctrl.onclick = function(event) { event.preventDefault() if(player.paused){ //start stream ctrl.style.backgroundImage = pauseImg player.play() //start ga logging gaHeartBeat() }else{ //stop stream ctrl.style.backgroundImage = playImg player.pause() //cancel ga logging clearTimeout(gaHeartBeatHandle) } }; console.log("canPlayType audio/mp4; codecs='mp4a.40.5'", player.canPlayType('audio/mp4; codecs="mp4a.40.5"')); console.log("canPlayType audio/aacp", player.canPlayType("audio/aacp")); console.log("canPlayType audio/mpeg", player.canPlayType("audio/mpeg")); </script> </body> </html>]]></embedHtml><embedScript><![CDATA[<script type="text/javascript"> function EmbedInit() { // Init will be called when this page is loaded in the client. return; } </script> ]]></embedScript><embedStyle><![CDATA[<style type="text/css"> </style> ]]></embedStyle></raw></media></region><tags><tag>imported</tag></tags></layout>