Adding Video as Login screen background

noscrodamus wrote on Wednesday, April 06, 2016:

I was able to get the video running but it is overlaying ontop of the login frame.

<?php
$ignoreAuth = true;
include_once ("../globals.php");
?>
<HTML>
<head>
<?php html_header_show(); ?>
<TITLE><?php xl ('Login','e'); ?></TITLE>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
<link rel=stylesheet href="../themes/login.css" type="text/css">

</HEAD>


<div style="position: fixed; z-index: -1; min-width: 100%; min-height: 100%;">
<video autoplay controls muted>
<source src="xxxxx.webm" type="video/webm" />
</video>
</div>

<div style="position: fixed; z-index: 300;"

<frameset rows="<?php echo "$GLOBALS[logoBarHeight],$GLOBALS[titleBarHeight]" ?>,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame class="logobar" src="<?php echo $rootdir;?>/login/filler.php" name="Filler Top" scrolling="no" noresize frameborder="NO">
  <frame class="titlebar" src="<?php echo $rootdir;?>/login/login_title.php" name="Title" scrolling="no" noresize frameborder="NO">
  <frame src="<?php echo $rootdir;?>/login/login.php" name="Login" scrolling="auto" frameborder="NO">
  <!--<frame src="<?php echo $rootdir;?>/login/filler.php" name="Filler Bottom" scrolling="no" noresize frameborder="NO">-->
</frameset>

<noframes><body bgcolor="#FFFFFF">

</body></noframes>
</div>

</HTML>

Everything seems to be referencing everything else, which files do I have to alter the z-indexes for, or is there a better way to do this? Thanks

tmccormi wrote on Thursday, April 07, 2016:

I’ve got a version of the Login set that does not use frames. I did this for a customer. I’ve been meaning to post it for the project. I’ll see what I can pull together and share.

tmccormi wrote on Thursday, April 07, 2016:

and Here it is: GitHub - tmccormi/openemr at no-frames-login

noscrodamus wrote on Thursday, April 07, 2016:

Thanks for the reply!
So im guessing the reason why I cant have a background video is because of the frames.
Which files would I have to copy over from your repo to apply the desired change?

tmccormi wrote on Thursday, April 07, 2016:

See attached screen shot from GitHub.

noscrodamus wrote on Thursday, April 07, 2016:

Wasnt able to get it working. Ive opted to go with an Image. Thank you Tony!