Kaynağa Gözat

Add files via upload

yeungalan 6 yıl önce
ebeveyn
işleme
46916710bc

+ 1 - 0
RemotePlay/README.txt

@@ -0,0 +1 @@
+This is a demo module of ArOZ Online Beta System for dummy / experimental purpose.

+ 18 - 0
RemotePlay/check.php

@@ -0,0 +1,18 @@
+<?php
+include_once("../auth.php");
+if (isset($_GET['rid'])){
+	if (file_exists("data/" . $_GET['rid'] . ".inf")){
+		$data = file_get_contents("data/" . $_GET['rid'] . ".inf");
+		$data = explode(",",$data);
+		header('Content-Type: application/json');
+		echo json_encode([true,$data]);
+		unlink("data/" . $_GET['rid'] . ".inf");
+	}else{
+		header('Content-Type: application/json');
+		echo json_encode([false,""]);
+	}
+}else{
+	echo "ERROR. rid not given.";
+}
+
+?>

+ 1 - 0
RemotePlay/description.txt

@@ -0,0 +1 @@
+Dummy module for experimental purpose. Do whatever you like with this folder.

+ 139 - 0
RemotePlay/embedded.php

@@ -0,0 +1,139 @@
+<?php
+include_once("../auth.php");
+if(!file_exists("data")){
+	mkdir("data",0777,true);
+}
+if (isset($_GET['fp']) && isset($_GET['rid'])){
+	$rid = $_GET['rid'];
+	$rid = explode(",",$rid)[0];
+	file_put_contents("data/" . $rid . ".inf","fopen," . $_GET['fp']);
+	echo "DONE";
+	exit(0);
+}
+
+function check_file_is_audio( $tmp ) 
+{
+    $allowed = array(
+        'audio/mpeg', 'audio/x-mpeg', 'audio/mpeg3', 'audio/x-mpeg-3', 'audio/aiff', 
+        'audio/mid', 'audio/x-aiff', 'audio/x-flac', 'audio/x-mpequrl','audio/midi', 'audio/x-mid', 
+        'audio/x-midi','audio/wav','audio/x-wav','audio/xm','audio/x-aac','audio/basic',
+        'audio/flac','audio/mp4','audio/x-matroska','audio/ogg','audio/s3m','audio/x-ms-wax',
+        'audio/xm', 'image/jpeg', 'video/mp4'
+    );
+    
+    // check REAL MIME type
+    $finfo = finfo_open(FILEINFO_MIME_TYPE);
+    $type = finfo_file($finfo, $tmp );
+    finfo_close($finfo);
+    
+    // check to see if REAL MIME type is inside $allowed array
+    if( in_array($type, $allowed) ) {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+//Check if the file exists and it is audio file.
+$valid = true;
+if(isset($_GET['filepath']) && file_exists($_GET['filepath'])){
+	//This file exists.
+	$filename = $_GET['filepath'];
+}else{
+	$valid = false;
+}
+
+if (isset($_GET['filename'])){
+	$displayName =  $_GET['filename'];
+}else{
+	$displayName =  basename($filename);
+}
+if (!check_file_is_audio($_GET['filepath'])){
+	//This is not an audio file
+	$valid = false;
+}
+if(!$valid){
+	die("Error. There are problems with the selected files.");
+}
+?>
+<html>
+<head>
+	<link rel="stylesheet" href="../script/tocas/tocas.css">
+	<script src="../script/tocas/tocas.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+	<script src="../script/jquery.min.js"></script>
+	<script src="../script/ao_module.js"></script>
+	<style>
+		body{
+			background-color:#0c0c0c;
+			color:white;
+		}
+		.white{
+			color:white !important;
+		}
+	</style>
+	
+</head>
+<body>
+<br>
+<div class="ts container" style="color:white;">
+	<h5 class="ts header">
+		<i class="white feed icon"></i>
+		<div class="white content">
+			Send to RemotePlay
+			<div class="white sub header">Request Remote Device to play a file</div>
+		</div>
+	</h5>
+	<hr>
+	<p class="white">Target RemotePlay ID</p>
+	<div class="ts basic mini fluid input">
+		<input id="remoteID" class="white" type="text">
+	</div>
+	<br><p class="white">Filename</p>
+	<div class="ts basic mini fluid input">
+		<input id="filename" class="white" type="text" value="<?php echo $displayName;?>" readonly=true>
+	</div>
+	<br><p class="white">Target Filepath</p>
+	<div class="ts basic mini fluid input">
+		<input id="filepath" class="white" type="text" value="<?php echo $filename;?>" readonly=true>
+	</div>
+	<br><br>
+	<div align="right">
+		<button class="ts basic white mini button" onClick="createRequest();">Send</button>
+	</div>
+</div>
+	<script>
+	$(document).ready(function(){
+		var previousRemoteID = ao_module_getStorage("remoteplay","remoteID");
+		if (previousRemoteID !== undefined){
+			$("#remoteID").val(previousRemoteID);
+		}
+	});
+	var rid = $("#rid").text().trim();
+	ao_module_setWindowSize(385,420);
+	ao_module_setWindowTitle("Send to RemotePlay");
+	ao_module_setWindowIcon("feed");
+	
+	$("#remoteID").on("change",function(){
+		ao_module_saveStorage("remoteplay","remoteID",$(this).val());
+	});
+	
+	$("#remoteID").on("keydown",function(e){
+		if (e.keyCode == 13){
+			//Enter is pressed
+			createRequest();
+		}
+	});
+	
+	function createRequest(){
+		var filepath = $("#filepath").val();
+		var remoteID = $("#remoteID").val();
+		$.get("embedded.php?fp=" + filepath + "&rid=" + remoteID,function(data){
+			if (data.includes("ERROR") == false){
+				ao_module_close();
+			}
+		});
+	}
+	</script>
+</body>
+</html>

BIN
RemotePlay/img/function_icon.png


BIN
RemotePlay/img/small_icon.png


+ 246 - 0
RemotePlay/index.php

@@ -0,0 +1,246 @@
+<?php
+include_once '../auth.php';
+if (isset($_GET['filepath'])){
+	header("Location: embedded.php?filepath=" . $_GET['filepath'] . "&filename=" . $_GET['filename']);
+}
+?>
+<html>
+<head>
+    <link rel="stylesheet" href="../script/tocas/tocas.css">
+	<script src="../script/tocas/tocas.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+	<script src="../script/jquery.min.js"></script>
+	<script src="../script/ao_module.js"></script>
+	<style>
+	body{
+		background-color:#0c0c0c;
+		color:white;
+	}
+	.white{
+		color:white !important;
+	}
+	.bottom{
+		position:fixed;
+		width:100%;
+		height:35px;
+		left:0px;
+		bottom:0px;
+		padding-bottom:5px;
+		padding: 5px;
+	}
+
+	</style>
+	</head>
+<?php
+$rid = rand(1000,9999);
+?>
+<body>
+<br>
+</body>
+<script>
+
+//may need update after iPadOS update.
+var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
+var currDisplay = "idle";
+
+var video = document.getElementById("video");
+var audio = new Audio("");
+
+loadScreen();
+var rid = $("#rid").text().trim();
+ao_module_setWindowSize(385,520);
+ao_module_setWindowTitle("RemotePlay");
+ao_module_setWindowIcon("feed");
+if (ao_module_virtualDesktop){
+	$(".dirModeOnly").hide();
+}
+
+setInterval(check,1000);
+
+function check(){
+	$.get("check.php?rid=" + rid,function(data){
+		if (data.includes("ERROR") == false){
+			if (data[0] == false){
+				//Nothing is found
+			}else{
+				//There is content. Read it from JSON 
+				var fileinfo = data[1];
+				
+				console.log(fileinfo[1]);
+
+						if (fileinfo[0] == "fopen"){
+							audio.pause();
+							audio.currentTime = 0;
+        					//open the given filepath
+							if(fileinfo[1].indexOf(".jpg") > 0){
+								
+								$("body").html('<img src="' + fileinfo[1] + '" style="height: 100%;display: block;margin-left: auto;margin-right: auto;"></img');
+								currDisplay = "image";
+								
+							}else if(fileinfo[1].indexOf(".mp4") > 0){
+								
+								$("body").html('<video autoplay loop id="video" style="height: 100%;display: block;margin-left: auto;margin-right: auto;"><source src="' + fileinfo[1] + '" type="video/mp4"></video><div class="ts snackbar"><div class="content"></div></div>');
+								video = document.querySelector('video');
+								var promise = video.play();
+
+								if (promise !== undefined) {
+								  promise.then(_ => {
+								  }).catch(error => {
+									video.muted = true;
+									video.play();
+									ts('.snackbar').snackbar({
+										content: 'Due to browser restricton, this video has been muted.',
+										action: '',
+										actionEmphasis: 'negative',
+									});
+									
+								  });
+								}
+
+								currDisplay = "video";
+								video = document.getElementById("video");
+								
+							}else{
+								
+								loadScreen();
+								audio.volume = localStorage.getItem("global_volume");
+								audio.loop = true;
+								audio.pause();
+								audio.currentTime = 0;
+								audio.src = fileinfo[1];
+								audio.play();
+								
+								var promise = audio.play();
+								if (promise !== undefined) {
+								  promise.then(_ => {
+								  }).catch(error => {
+									audio.muted = true;
+									audio.play();
+									ts('.snackbar').snackbar({
+										content: 'Due to browser restricton, audio can\'t stream to this device',
+										action: '',
+										actionEmphasis: 'negative',
+									});
+									//alert("Error");
+								  });
+								}
+								
+								currDisplay = "audio";
+							}
+        				    ao_module_setWindowSize(800,800);
+        				    
+        				}else if (fileinfo[0] == "setVol"){
+							localStorage.setItem("global_volume",fileinfo[1]);
+							if(currDisplay == "audio"){
+								audio.volume = localStorage.getItem("global_volume");
+							}else if(currDisplay == "video"){
+								video.volume = localStorage.getItem("global_volume");
+							}
+        					
+        				}else if (fileinfo[0] == "volup"){
+							if(currDisplay == "audio"){
+								audio.volume = audio.volume + 0.1
+							}else if(currDisplay == "video"){
+								video.volume = video.volume + 0.1
+							}
+        					
+        				}else if (fileinfo[0] == "voldown"){
+							if(currDisplay == "audio"){
+								audio.volume = audio.volume - 0.1
+							}else if(currDisplay == "video"){
+								video.volume = video.volume - 0.1
+							}
+								  
+        				}else if (fileinfo[0] == "play"){
+							
+							if(currDisplay == "audio"){
+								audio.play();
+							}else if(currDisplay == "video"){
+								video.play();
+							}
+        					
+        				}else if (fileinfo[0] == "pause"){
+							
+							if(currDisplay == "audio"){
+								audio.pause();
+							}else if(currDisplay == "video"){
+								video.pause();
+							}
+							
+        				}else if (fileinfo[0] == "fwd"){
+							
+							if(currDisplay == "audio"){
+								audio.currentTime = audio.currentTime + 15;
+							}else if(currDisplay == "video"){
+								video.currentTime = video.currentTime + 15;
+							}
+							
+        				}else if (fileinfo[0] == "bwd"){
+							
+							if(currDisplay == "audio"){
+								audio.currentTime = audio.currentTime - 15;
+							}else if(currDisplay == "video"){
+								video.currentTime = video.currentTime - 15;
+							}
+							
+        				}else if (fileinfo[0] == "stop"){
+							
+							if(currDisplay == "audio"){
+								audio.pause();
+								audio.currentTime = 0;
+							}else if(currDisplay == "video"){
+								video.pause();
+								video.currentTime = 0;
+							}
+        					
+							
+        				}else if(fileinfo[0] == "reset"){
+
+							loadScreen();
+							
+						}else if(fileinfo[0] == "newsession"){
+
+							location.reload();
+							
+						}
+					
+        		}
+    				    /* end */
+			}
+		
+	});
+}
+
+
+function loadScreen(){
+	$("body").html(`
+<br><br>
+<div class="ts container" style="color:white;">
+	<h3 class="ts center aligned icon header" style="color:white;">
+		<i class="feed icon"></i>ArOZ Remote Play
+    <div class="sub header" style="color:white;">Use this devices as a remote player or player remote!</div>
+	<hr>
+	</h3>
+	<div align="center">
+		<div class="white" style="font-size:2em;padding-top:10px;"><i class="hashtag icon"></i>Remote ID: <?php echo $rid;?></div>
+		<p class="white" style="font-size:80%;">To use ArOZ Remote Play function, use the OpenWith from your active device and enter the above ID to play with this window.<br><!--<i class="caution sign icon"></i>Warning! Only support Audio files.</p>-->
+	</div>
+	<br>
+</div>
+<div class="white bottom" align="right">
+	<div class="ts breadcrumb">
+		<a class="white section" href="remote.php">Toggle Remote</a>
+		<div class="divider"> / </div>
+		<a class="white section" href="">Refresh</a>
+		<div class="divider"> / </div>
+		<a class="white section">Clear Sessions</a>
+		<div class="divider dirModeOnly"> / </div>
+		<a class="white active section dirModeOnly" href="../">Exit</a>
+	</div>
+</div>
+<div class="ts snackbar"><div class="content"></div></div>
+<div id="rid" style="display:none;"><?php echo $rid;?></div>
+`);
+}
+</script>
+</html>

+ 220 - 0
RemotePlay/mobileremote.php

@@ -0,0 +1,220 @@
+<?php
+include_once '../auth.php';
+if(!file_exists("data")){
+	mkdir("data",0777,true);
+}
+if (isset($_GET['comm']) && isset($_GET['rid'])){
+	$rid = $_GET['rid'];
+	$rid = explode(",",$rid)[0];
+	file_put_contents("data/" . $rid . ".inf",$_GET['comm']);
+	echo "DONE";
+	exit(0);
+}
+?>
+<html>
+<head>
+    <link rel="stylesheet" href="../script/tocas/tocas.css">
+	<script src="../script/tocas/tocas.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=0.9, shrink-to-fit=no">
+	<script src="../script/jquery.min.js"></script>
+	<script src="../script/ao_module.js"></script>
+	<style>
+	body{
+		background-color:#0c0c0c;
+		color:white;
+	}
+	.white{
+		color:white !important;
+	}
+	</style>
+</head>
+<body>
+<br>
+<div class="ts container">
+
+<div class="ts center aligned grid">
+    <div class="row">
+        <div class="sixteen wide column">
+			<div class="ts white header">
+				<i class="options icon"></i>RemotePlay Remote
+			</div>
+		</div>
+    </div>
+    <div class="row">
+        <div class="sixteen wide column">
+			<p class="white">Target RemotePlay ID</p>
+			<div class="ts basic mini fluid input">
+				<input id="remoteID" class="white" type="text">
+			</div>
+		</div>
+    </div>
+	<div class="row">
+        <div class="five wide column">
+		</div>
+		<div class="six wide column">
+			<button class="ts huge basic white icon button" onClick="ffwd();"><i class="fast forward icon"></i></button>
+		</div>
+		<div class="five wide column">
+		</div>
+    </div>
+	<div class="row">
+        <div class="five wide right aligned column">
+			<button class="ts huge basic white icon button" onClick="bwd();"><i class="backward icon"></i></button>
+		</div>
+		<div class="six wide column">
+			<button class="ts huge basic white icon button" onClick="stop();"><i class="stop icon"></i></button>
+		</div>
+		<div class="five wide left aligned column">
+			<button class="ts huge basic white icon button" onClick="fwd();"><i class="forward icon"></i></button>
+		</div>
+    </div>
+	<div class="row">
+        <div class="five wide column">
+		</div>
+		<div class="six wide column">
+			<button class="ts huge basic white icon button" onClick="fbwd();"><i class="fast backward icon"></i></button>
+		</div>
+		<div class="five wide column">
+		</div>
+    </div>
+    <div class="row">
+        <div class="five wide right aligned column">
+			<button class="ts huge basic white icon button" onClick="play();"><i class="play icon"></i></button>
+		</div>
+		<div class="six wide column"></div>
+		<div class="five wide left aligned column">
+			<button class="ts huge basic white icon button" onClick="volup();"><i class="volume up icon"></i></button>
+		</div>
+    </div>
+    <div class="row">
+        <div class="five wide right aligned column">
+			<button class="ts huge basic white icon button" onClick="pause();"><i class="pause icon"></i></button>
+		</div>
+		<div class="six wide column"></div>
+		<div class="five wide left aligned column">
+			<button class="ts huge basic white icon button" onClick="voldown();"><i class="volume down icon"></i></button>
+		</div>
+    </div>
+    <div class="row">
+        <div class="sixteen wide column">
+			<br>
+			<div class="ts separated mini buttons">
+				<button class="ts huge basic white button" onClick="mute();"><i class="volume off icon"></i>Mute</button>
+				<button class="ts huge basic white button" onClick="reset();"><i class="home icon"></i>Reset</button>
+				<button class="ts huge basic white button" onClick="newsession();"><i class="add icon"></i>New Session</button>
+			</div>
+		</div>
+    </div>
+</div>
+</div>
+<div class="ts snackbar">
+    <div class="content"></div>
+    <a class="action"></a>
+</div>
+<script>
+/* for iOS or iPadOS patch (tested on iPhone8 and iPad Gen6) */
+
+/* end */
+
+
+
+
+var rid = "";
+ao_module_setWindowSize(500,320);
+$("#vol").on("change",function(){
+	sendCommand("setVol",$(this).val());
+});
+
+$("#remoteID").on("change",function(){
+	ao_module_saveStorage("remoteplay","remoteID",$(this).val());
+	rid = $(this).val();
+});
+
+function play(){
+	sendCommand("play","");
+}
+
+function pause(){
+	sendCommand("pause","");
+}
+
+function fwd(){
+	sendCommand("fwd","");
+}
+
+var ffwding = false;
+function ffwd(){
+	if(ffwding){
+		clearInterval(timer_1);
+		ffwding = false;
+		$(".button").removeAttr("disabled");
+	}else{
+	  timer_1 = setInterval(fwd, 1000);
+	  ffwding = true;
+	  $(".button").attr("disabled","disabled");
+	  $(".fast.forward.icon").parent().removeAttr("disabled");
+	}
+}
+
+function bwd(){
+	sendCommand("bwd","");
+}
+
+var fbwding = false;
+function fbwd(){
+	if(fbwding){
+		clearInterval(timer_1);
+		fbwding = false;
+		$(".button").removeAttr("disabled");
+	}else{
+	  timer_1 = setInterval(bwd, 1000);
+	  fbwding = true;
+	  $(".button").attr("disabled","disabled");
+	  $(".fast.backward.icon").parent().removeAttr("disabled");
+	}
+}
+
+function stop(){
+	sendCommand("stop","");
+}
+
+function volup(){
+	sendCommand("volup","");
+}
+
+function voldown(){
+	sendCommand("voldown","");
+}
+
+function mute(){
+	sendCommand("setVol","0");
+	$("#vol").val(0);
+}
+
+function reset(){
+	sendCommand("reset","");
+}
+
+function newsession(){
+	sendCommand("newsession","");
+}
+
+function sendCommand(comm,value){
+	var fullcomm = comm + "," + value;
+	$.get("remote.php?comm=" + fullcomm + "&rid=" + rid,function(data){
+		if (data.includes("ERROR")){
+			
+		}
+	});
+}
+
+$(document).ready(function(){
+	var previousRemoteID = ao_module_getStorage("remoteplay","remoteID");
+	if (previousRemoteID !== undefined){
+		$("#remoteID").val(previousRemoteID);
+		rid = previousRemoteID;
+	}
+});
+</script>
+</body>
+</html>

+ 128 - 0
RemotePlay/remote.php

@@ -0,0 +1,128 @@
+<?php
+include_once '../auth.php';
+if(!file_exists("data")){
+	mkdir("data",0777,true);
+}
+if (isset($_GET['comm']) && isset($_GET['rid'])){
+	$rid = $_GET['rid'];
+	$rid = explode(",",$rid)[0];
+	file_put_contents("data/" . $rid . ".inf",$_GET['comm']);
+	echo "DONE";
+	exit(0);
+}
+?>
+<html>
+<head>
+    <link rel="stylesheet" href="../script/tocas/tocas.css">
+	<script src="../script/tocas/tocas.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+	<script src="../script/jquery.min.js"></script>
+	<script src="../script/ao_module.js"></script>
+	<style>
+	body{
+		background-color:#0c0c0c;
+		color:white;
+	}
+	.white{
+		color:white !important;
+	}
+	</style>
+</head>
+<body>
+<br>
+<div class="ts container">
+<div class="ts white header">
+    <i class="options icon"></i>RemotePlay Remote
+    <div class="sub white header">Control your remote player here!</div>
+</div>
+	<p class="white">Target RemotePlay ID</p>
+	<div class="ts basic mini fluid input">
+		<input id="remoteID" class="white" type="text">
+	</div>
+	<p class="white">Volume Control (Min <--> Max)</p>
+	<div class="ts slider">
+		<input id="vol" type="range" min="0" max="1" step="0.05" value="0">
+	</div>
+	<br>
+	<div class="ts separated mini buttons">
+		<button class="ts basic white button" onClick="play();"><i class="play icon"></i>Play</button>
+		<button class="ts basic white button" onClick="pause();"><i class="pause icon"></i>Pause</button>
+		<button class="ts basic white button" onClick="bwd();"><i class="play icon"></i>Back forward</button>
+		<button class="ts basic white button" onClick="fwd();"><i class="play icon"></i>Fast forward</button>
+		<button class="ts basic white button" onClick="speedincrease();"><i class="play icon"></i>Speed increase</button>
+		<button class="ts basic white button" onClick="stop();"><i class="stop icon"></i>Stop</button>
+		<button class="ts basic white button" onClick="mute();"><i class="volume off icon"></i>Mute</button>
+		<button class="ts basic white button" onClick="reset();"><i class="stop icon"></i>Reset</button>
+	</div>
+</div>
+<script>
+var rid = "";
+ao_module_setWindowSize(500,320);
+$("#vol").on("change",function(){
+	sendCommand("setVol",$(this).val());
+});
+
+$("#remoteID").on("change",function(){
+	ao_module_saveStorage("remoteplay","remoteID",$(this).val());
+	rid = $(this).val();
+});
+
+function play(){
+	sendCommand("play","");
+}
+
+function pause(){
+	sendCommand("pause","");
+}
+
+function fwd(){
+	sendCommand("fwd","");
+}
+
+var speedincreaseing = false;
+function speedincrease(){
+	if(speedincreaseing){
+		clearInterval(timer_1);
+		speedincreaseing = false;
+	}else{
+	  timer_1 = setInterval(fwd, 1000);
+	  speedincreaseing = true;
+	}
+}
+
+function bwd(){
+	sendCommand("bwd","");
+}
+
+function stop(){
+	sendCommand("stop","");
+}
+
+function mute(){
+	sendCommand("setVol","0");
+	$("#vol").val(0);
+}
+
+function reset(){
+	sendCommand("reset","");
+}
+
+function sendCommand(comm,value){
+	var fullcomm = comm + "," + value;
+	$.get("remote.php?comm=" + fullcomm + "&rid=" + rid,function(data){
+		if (data.includes("ERROR")){
+			
+		}
+	});
+}
+
+$(document).ready(function(){
+	var previousRemoteID = ao_module_getStorage("remoteplay","remoteID");
+	if (previousRemoteID !== undefined){
+		$("#remoteID").val(previousRemoteID);
+		rid = previousRemoteID;
+	}
+});
+</script>
+</body>
+</html>

+ 41 - 0
RemotePlay/youtubecontent.html

@@ -0,0 +1,41 @@
+<?php
+include_once '../auth.php';
+if (isset($_GET['filepath'])){
+	header("Location: embedded.php?filepath=" . $_GET['filepath'] . "&filename=" . $_GET['filename']);
+}
+?>
+<html>
+<head>
+    <link rel="stylesheet" href="../script/tocas/tocas.css">
+	<script src="../script/tocas/tocas.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+	<script src="../script/jquery.min.js"></script>
+	<script src="../script/ao_module.js"></script>
+	<style>
+	body{
+		background-color:#0c0c0c;
+		color:white;
+	}
+	.white{
+		color:white !important;
+	}
+	.bottom{
+		position:fixed;
+		width:100%;
+		height:35px;
+		left:0px;
+		bottom:0px;
+		padding-bottom:5px;
+		padding: 5px;
+	}
+
+	</style>
+	</head>
+<?php
+$rid = rand(1000,9999);
+?>
+<body>
+<video autoplay loop id="video" style="height: 100%;display: block;margin-left: auto;margin-right: auto;"><source src="http://192.168.1.126/AOB/Desktop/files/admin/inithe9878fe5ad90e4b896e7958c.mp4" type="video/mp4"></video>
+</body>
+
+</html>