Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed kaltura iframe css issues with iOS and Android

  • Loading branch information...
commit b9f88fdeda9ad2c601523ed8a454d46d511dd8e7 1 parent 4da46e3
@avivais avivais authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 modules/KalturaSupport/kalturaIframe.php
View
7 modules/KalturaSupport/kalturaIframe.php
@@ -436,6 +436,9 @@ private function outputIframeHeadCss(){
overflow:hidden;
background: #000;
color: #fff;
+ position: fixed;
+ top: 0px;
+ left: 0px;
}
<?php
if( $this->isError() ){
@@ -547,6 +550,10 @@ function getViewPortSize(){
if( ua.indexOf('Android' ) !== -1 ){
// Also android does not like "type" on source tags
videoTagHTML= videoTagHTML.replace(/type=\"[^\"]*\"/g, '');
+ // Android 4.0.X issues with fixed position
+ if ( ua.indexOf( 'Android 4.0' ) ) {
+ document.getElementsByTagName('body')[0].style.cssText = 'position: static';
+ }
}
// IE < 8 does not handle class="persistentNativePlayer" very well:

1 comment on commit b9f88fd

@avivais

Followup to e6e3ebb

Please sign in to comment.
Something went wrong with that request. Please try again.