lesha724 / yii2-youtube-widget Goto Github PK
View Code? Open in Web Editor NEWВиджет для отображения видео youtube
Виджет для отображения видео youtube
Need to make width in percents (like 50%).
If i try to write in widget - it doesn't works.
Maby you advice any possibility how to do this? Thanks.
Подскажите пожалуйста, возможно ли указывать ширину в процентах? (для iframe youtube это возможно).
Если указывать параметр - не работает.
Может подскажете как это можно сделать?
Строю модальное окно аяксом, засовываю в него виджет ютуба, при закрытии окна и открытии нового, ютуб плеер не инициализируется. Место где должен быть видос пустое, то есть видео появляется только в первом модальном окне. Если ввести в консоль onYouTubePlayerAPIReady(), то виджет прогружается. Исправьте пожалуйста эту ошибку.
Hi,
Thanks for your widget.
some times new youtube video url is not loaded first time.if refresh the page then video is coming.please tell me how to prevent this.
Hi,
I am using Your suggested code only
$singlePost->url, //youtube url. 'iframeOptions'=>[ 'class'=>'youtube-video' ], 'divOptions'=>[ 'class'=>'youtube-video-div' ], 'height'=>420, 'width'=>'100%', 'playerVars'=>[ 'autoplay' =>1, 'controls' =>1, 'showinfo' =>0, 'start' =>0, 'loop ' =>1, 'modestbranding'=>1, 'rel'=>0, 'iv_load_policy'=>3, 'enablejsapi'=>1 ] ]); ?>even after keeping static youtube link also getting same problem.this one is occured only if you are refreshed page with ctrl+F5.Please suggest me why it is happening.sorry for my english.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.