diff options
author | Alib <aliboba@free.fr> | 2011-03-04 18:58:54 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2011-03-04 18:58:54 +0100 |
commit | e339afb48098c150d15ba519bed62e2673deb4a7 (patch) | |
tree | 56122e631eeab92fee704824f2318dbbe8897b75 /js | |
parent | 22585ff8fb58299573e068647a54b981c7254586 (diff) | |
download | istreamdev-e339afb48098c150d15ba519bed62e2673deb4a7.tar.gz istreamdev-e339afb48098c150d15ba519bed62e2673deb4a7.tar.bz2 |
added patch for better iPad support ( breaks logo icon on stream button, but useless on ios 4.2)
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index e5863c1..d442ed4 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -51,6 +51,11 @@ jQT = new $.jQTouch({ $(document).ready(function(e){
dataString = "action=getGlobals";
showStatus( 0,"Getting configuration data" );
+ if ( navigator.userAgent.match(/iPad/i)) {
+ is_ipad = true;
+ } else {
+ is_ipad = false;
+ }
$.getJSON("bin/backend.php",
dataString,
function(data){
@@ -599,7 +604,8 @@ function playvideo(session,name) { streaming.find('ul[class="streamstatus"]').find('span[class="mode"]').html(message);
if ( status == "ready" || status == "error" ) {
streaming.find('#player').removeAttr("style");
- streaming.find('#player').html('<video id="videofeed" width="' + thumbwidth + '" height="' + thumbheight + '" poster="ram/session' + session + '/thumb.png?' + time + '" src="' + url + '" controls autoplay ></video><span rel="ready"></span>');
+ streaming.find('#player').html('<video id="videofeed" src="' + url + '" controls autoplay ></video><span rel="ready"></span>');
+
return false;
}
prevmsg = message;
|