zcriptz
1
Xi
Programador
Verificación en dos pasos activada
Suscripción a IA
Usando o código PHP que publiquei neste tópico:
forobeta.com
Só mudei:
Por:
Salvei e nomeei fembed.php
Dá para adiantar/atrasar o vídeo.
Código HTML/Javascript: (Deve ser salvo em um arquivo à parte, não no mesmo)
Ao pausar, volta a mostrar o formulário acima do vídeo para poder colocar outra URL.
Pode ajudar vocês a aprender a criar elementos e a usar <video>. 👍
Stream de Fembed 🎦 PHP grátis (Proxy)
<?php error_reporting(0); $fembedUrl = $_GET['url']; $partSize = 3; //MB $personalKey = 'sBBcAcKK123'; //Una clave para el token, la que quieran... class xURL{ public function __construct($cookies=NULL, $agent=NULL, $proxy=NULL){ $this->resources = []...
Só mudei:
PHP:
$url = 'https://feurl.com/v/kkxeds3jqnge83q';
Por:
PHP:
$url = $_GET['url'];
Salvei e nomeei fembed.php
Dá para adiantar/atrasar o vídeo.
Código HTML/Javascript: (Deve ser salvo em um arquivo à parte, não no mesmo)
Inserir CODE, HTML ou PHP:
<html>
<head>
<script>
function makePlayer(){
videoElement = document.createElement('video');
videoElement.className = 'video-js';
videoElement.style = 'width:100%;height:100%';
document.body.appendChild(videoElement);
}
function playVideo(url){
if(!window.videoElement)
makePlayer();
;
videoForm = document.getElementById('videoForm');
videoElement.src = 'fembed.php?url='+encodeURI(url);
videoElement.play();
videoElement.controls = 1;
videoElement.onplay = function(){ videoForm.style.display = 'none' };
videoElement.onpause = function(){ videoForm.style.display = '' };
return false
}
</script>
<style>
body{
margin:0;
padding:0;
background:black;
color:white;
width:100%;
height:100%;
}
#videoForm{
z-index:2;
position:absolute;
line-height:50px;
font-size:20px;
}
#urlInput{
width:300px;
}
</style>
</head>
<body>
<form id="videoForm" method="post" onsubmit="return playVideo(document.getElementById('urlInput').value)">
URL de Fembed: <input id="urlInput" type="text"><input type="submit" value="Reproducir">
</form>
</body>
</html>
Ao pausar, volta a mostrar o formulário acima do vídeo para poder colocar outra URL.
Pode ajudar vocês a aprender a criar elementos e a usar <video>. 👍
Última edição: