Create embed.php

This commit is contained in:
HKLCF
2018-05-08 18:38:23 +08:00
committed by GitHub
parent 34aa776d4c
commit 0411305700

25
embed.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
$url = isset($_GET['url']) ? htmlspecialchars($_GET['url']) : null;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>MediaFire</title>
</head>
<body>
<div id="player"></div>
<script src="https://content.jwplatform.com/libraries/wr6i4gal.js"></script>
<script>
jwplayer("player").setup({
playlist: [{
"sources": <?php require 'mediafire.php';?>
}],
allowfullscreen: true,
width: '100%',
aspectratio: '16:9',
});
</script>
</body>
</html>