0
I have an HTML here that I use to generate Players on My Site
But I have to keep changing the contents of the file to access Different Videos
I’d like to know if there’s a way to change the area:
De acordo com a url inserida Exemplo
www.site.com.br/Player.html?video=video.mp4;img=img.png
Teria que mudar o Arquivo para Php?
Por Favor me Ajude não tenho experiencia com Programação WEB
HTML:
<video id="my_video_1" class="video-js vjs-default-skin" width="640px" height="267px"
controls preload="none" poster='https://image.tmdb.org/t/p/w780/fVcZErSWa7gyENuj8IWp8eAfCnL.jpg'
data-setup='{ "aspectRatio":"640:267", "playbackRates": [1, 1.5, 2] }'>
<source src="" type='video/mp4' />
</video>
Why would you like to use PHP? your website is in PHP? I think a javascript already solves.
– teliz
I use Wordpress, However I have no idea how to do this!
– Barry Allen
If that’s all your player is, you could make a simple PHP program that uses the arguments from
$_GET
to fill in what will appear in the video. But you’ll have to learn some PHP if you want to start with the manual: http://php.net/manual/en/reserved.variables.get.php– Daniel