Greetings to all in this forum.
I have a server with Wowza Media Server Perpetual Edition 3.5 on Ubuntu Server 12.04 LTS.
I’m trying to make a playlist with php I detect the device that connects to the web.
I already checked with pc, iphone, ipad, ipod, mac etc and everything works properly but I connect with a Samsung Galaxy I can not play.
I checked the live streaming from my server rtsp real player and everything is fine but my jwplayer will not.
That’s what I can be doing wrong?
index.html
Inside of …
[HTML]
[/HTML]
playlist.php
[PHP]
<?php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone") || strpos($_SERVER['HTTP_USER_AGENT'],"iPod") || strpos($_SERVER['HTTP_USER_AGENT'],"iPad")): ?> Playlist Presentación Libro: El sombrero de paja.Presentacion.
Sat, 20 Diciembre 2012 20:30:00 GMT
<media:content url=“http://mydomind.com:1935/live/presentacion_2/playlist.m3u8” />
<media:thumbnail url=“thumbs/1.gif” />
jwplayer:providerhttp</jwplayer:provider>
<?php elseif (strpos($_SERVER['HTTP_USER_AGENT'],"blacberry") || strpos($_SERVER['HTTP_USER_AGENT'],"android")): ?> Playlist Presentación Libro: El sombrero de paja.Presentacion.
Sat, 20 Diciembre 2012 20:30:00 GMT
<media:content url=“rtsp://mydomind.com:1935/live/presentacion_2” />
<media:thumbnail url=“thumbs/1.gif” />
jwplayer:providerrtsp</jwplayer:provider>
<?php else: ?> Playlist Presentación Libro: El sombrero de paja.Presentacion.
<media:content url=“presentacion_1” />
<media:thumbnail url=“thumbs/1.gif” />
jwplayer:providerrtmp</jwplayer:provider>
jwplayer:streamerrtmp://mydomind.com:1935/live/</jwplayer:streamer>
<?php endif; ?>[/PHP]
Must I change this line:
elseif (strpos($_SERVER[‘HTTP_USER_AGENT’],“blacberry”) || strpos($_SERVER[‘HTTP_USER_AGENT’],“android”)):
for this?:
elseif (strpos($_SERVER[‘HTTP_USER_AGENT’],“blacberry”) || strpos($_SERVER[‘HTTP_USER_AGENT’],“samsung”) || strpos($_SERVER[‘HTTP_USER_AGENT’],“sony”) || strpos($_SERVER[‘HTTP_USER_AGENT’],“google”)):
Thank you very much for your help
Manyblue