Pular para o conteúdo

Ajuda com construçao de script

Responder tópico
  • Denunciar
  • Indicar

1. Ajuda com construçao de script

Enviado em 30/07/2017 - 17:18h

Boa tarde a todos...
Gostaria de fazer o seguinte, nesse codigo abaixo:

<html>
<head>
<style>

.header-container{
width: 100% !important;
height: auto !important;
border-left: none;
border-right: none;
position: relative;
padding: 0px;
}

video-container{
position: absolute;
top: 0%;
left: 0%;
height: 100%;
width: 100%;
overflow: hidden;
}

.video{
position: absolute;
z-index: -1;
opacity: 0.78;
widows: 100%;
width: 100% !important;
height: auto !important;
margin:0 auto;
}
</style>
</head>
<body>

<div class="header-container">
<div class="video-container">

<video preload ="true" autoplay loop = "loop" volume = "0" style="width: 100%;
height: auto;">

<source src="link.mp4" media="all and (max-width:720px)">

</div>
</div>

</body>
</html>


Gostaria de uma codigo em php que entrasse onde esta "link.mp4" de forma que eu pudesse chama-lo assim:
Salvarei esse codigo acima como Player.php.
http://www.cinetela.tk/Player.php/id=$link
Onde $link seria a url do video que eu reproduziria.

Nao sei se me entenderam, mas se puderem me ajudar desde ja agradeço.

Responder tópico

2. Re: Ajuda com construçao de script

Enviado em 30/07/2017 - 18:02h

Boa noite Celio.
Seguem exemplos:
Vídeo:
<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls>
<source src="https://www.w3schools.com/tags/movie.mp4"; type="video/mp4">
Your browser does not support the video tag.
</video>
<p><strong>FONTE:
</strong>https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_video.</p>;
</body>
</html>

AUDIO

<!DOCTYPE html>
<html>
<body>

<audio controls>
<source src="https://www.w3schools.com/tags/horse.mp3"; type="audio/mpeg">
Your browser does not support the audio element.
</audio>

<p><strong>Note:</strong> The audio tag is not supported in Internet Explorer 8 and earlier versions.</p>
<p><strong>FONTE:
</strong>https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_audio</p>;
</body>
</html>


ATt.:
Marcelo Oliver

3. Re: Ajuda com construçao de script

Enviado em 30/07/2017 - 18:10h

msoliver escreveu:

Boa noite Celio.
Seguem exemplos:
Vídeo:
<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls>
<source src="https://www.w3schools.com/tags/movie.mp4"; type="video/mp4">
Your browser does not support the video tag.
</video>
<p><strong>FONTE:
</strong>https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_video.</p>;
</body>
</html>

AUDIO

<!DOCTYPE html>
<html>
<body>

<audio controls>
<source src="https://www.w3schools.com/tags/horse.mp3"; type="audio/mpeg">
Your browser does not support the audio element.
</audio>

<p><strong>Note:</strong> The audio tag is not supported in Internet Explorer 8 and earlier versions.</p>
<p><strong>FONTE:
</strong>https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_audio</p>;
</body>
</html>


ATt.:
Marcelo Oliver
Obrigado Marcelo,
Deixa eu ver se explico melhor.
Fiz esse codigo embed que postei acima, no caso queria um php que fizesse o seguinte:
Onde for link ele pegaria um url externo, dessa forma http://www.cinetela.tk/player.php?action=http://www.youtube.com/video

Entendeu? Gostaria que ele "embedasse" url's setadas depois do action, no caso qualquer url (Video) que eu setar.

4. Re: Ajuda com construçao de script

Enviado em 30/07/2017 - 19:21h

celiomagalhaesjr escreveu:

msoliver escreveu:

Boa noite Celio.
Seguem exemplos:
Vídeo:
<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls>
<source src="https://www.w3schools.com/tags/movie.mp4"; type="video/mp4">
Your browser does not support the video tag.
</video>
<p><strong>FONTE:
</strong>https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_video.</p>;
</body>
</html>

AUDIO

<!DOCTYPE html>
<html>
<body>

<audio controls>
<source src="https://www.w3schools.com/tags/horse.mp3"; type="audio/mpeg">
Your browser does not support the audio element.
</audio>

<p><strong>Note:</strong> The audio tag is not supported in Internet Explorer 8 and earlier versions.</p>
<p><strong>FONTE:
</strong>https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_audio</p>;
</body>
</html>


ATt.:
Marcelo Oliver
Obrigado Marcelo,
Deixa eu ver se explico melhor.
Fiz esse codigo embed que postei acima, no caso queria um php que fizesse o seguinte:
Onde for link ele pegaria um url externo, dessa forma http://www.cinetela.tk/player.php?action=http://www.youtube.com/video

Entendeu? Gostaria que ele "embedasse" url's setadas depois do action, no caso qualquer url (Video) que eu setar.


Celio, entendi sim, só não fiz em PHP, pq não tenho como testar.

mso

5. Re: Ajuda com construçao de script

Enviado em 30/07/2017 - 19:26h



Celio, entendi sim, só não fiz em PHP, pq não tenho como testar.

mso
Envia que testo aqui

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder