Hi Guys,
Am looking for a way to serve a different video file if the user is on a mobile device / iPhone.
For example a .flv if they are on a desktop, but .3gp on an iPhone.
Ultimately I'd like to be able to do this in K2.
I did see something about including a php statement similar to this:
<?php
if(strstr($_SERVER['HTTP_USER_AGENT'],’iPhone’) || strstr($_SERVER['HTTP_USER_AGENT'],’iPod’)) {
print <<<END
<embed src=”http://pathtovideo.3gp” width=”XXX” height=”XXX” href=”http://pathtovideo.3gp”>
END;
}
else {
print <<<END
*****VIDEO EMBED CODE*****
END;
}
?>
But that would only work in the body and not allow me to select the alternate video in K2.
Hrmmmm.....