The value of $width is getting echoed fine and tallies with the browser width but the if statement just doesnt execute.
<?php
$width = "<script>document.write(window.outerWidth); </script>";
echo($width);
if ($width > 599) {
echo do_shortcode('[codepeople-html5-media-player id="1"]');
} else {?>
<img src="/wp-content/uploads/2015/04/copy-jandp-logo2.png" alt="logo" />
<?php } ?>