Open sebastiano75 opened 3 years ago
Você precisa usar os métodos do player instanciado, algo como:
var plyr = new Plyr('#plyr')
plyr.source = {
type: 'video/mp4',
sources: [{
src: '../videolibrary/001.mp4',
size: '480'
}]
}
Quando as coisas não estiverem funcionando como esperado, tente ler a documentação com atenção e paciência.
Expected behaviour
I need to change video by pressing a button
Actual behaviour
The video don't change
Steps to reproduce
I tried with these line codes $('#video').source = {type : 'video/mp4', src : '../videolibrary/001.mp4', size: '480' }; player.play();
nothing happened
Environment
Console errors (if any)
Link to where the bug is happening