Created
May 29, 2012 21:21
-
-
Save j0x0j/2830785 to your computer and use it in GitHub Desktop.
Videos for mobile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if((strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')) || (strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) || (strstr($_SERVER['HTTP_USER_AGENT'],'iPad'))) { | |
echo "<img src='/templates/images/icon-cam.gif' width='9' height='10' class='content_icon'> <a href=\"http://d.wapamovil.wapatv2.netdna-cdn.com/play/_definst_/mp4:vod/wapamovil.wapatv2/".$row_video[0]['mp4_file']."/playlist.m3u8\">Oprime para ver video</a> <img src='/templates/images/icon-cam.gif' width='9' height='10' class='content_icon'><br />"; | |
}else{ | |
echo "<img src='/templates/images/icon-cam.gif' width='9' height='10' class='content_icon'> <a href=\"rtsp://d.wapamovil.wapatv2.netdna-cdn.com/play/_definst_/mp4:vod/wapamovil.wapatv2/".$row_video[0]['mp4_file']."\">Oprime para ver video</a> <img src='/templates/images/icon-cam.gif' width='9' height='10' class='content_icon'><br />"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment