mirror of
https://github.com/hklcf/MediaFire-Stream-API
synced 2026-01-13 05:14:29 -08:00
Create embed.php
This commit is contained in:
25
embed.php
Normal file
25
embed.php
Normal 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>
|
||||
Reference in New Issue
Block a user