I´d like to include this php code in embedded layout. I put it in the html code option of embedding layout. But It doesnt working.
Is possible I use it with embedded layout?
<//html>
<//body>
<?php
// Include the library
include('simple_html_dom.php');
// Retrieve the DOM from a given URL
$html = file_get_html('http://www.climatempo.com.br/tempo-no-seu-site/videos/selo/sul/420x315/');
$iframes = $html->find('iframe');
$v = $iframes[0];
$s = $v->src."?autoplay=1";
header ("Location: $s");
?>
<///body>
<///html>
I am afraid we do not allow custom modules or module development on our platform - it would be a security risk. All modules need to be completed and analysed by our security team before we can accept them.
You will need to have an offline development environment to make and test your module, and once it is completed you can submit it to us for inclusion in the project.
Looking at what you are trying to do - I am not sure you are approaching it in the correct way. I would look at using Xibo embedded module and javascript to add ?autoplay=1 to the end of that iframe.