GithubHelp home page GithubHelp logo

lesha724 / yii2-youtube-widget Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 3.0 10 KB

Виджет для отображения видео youtube

PHP 100.00%
youtube yii2-youtube-widget yii2 yii2-widgets yii2-extension widget

yii2-youtube-widget's People

Contributors

lesha724 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

yii2-youtube-widget's Issues

Hi. Is it possible to make width parameter in percents?

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 это возможно).

Если указывать параметр - не работает.
Может подскажете как это можно сделать?

Modal is dosn't work

Строю модальное окно аяксом, засовываю в него виджет ютуба, при закрытии окна и открытии нового, ютуб плеер не инициализируется. Место где должен быть видос пустое, то есть видео появляется только в первом модальном окне. Если ввести в консоль onYouTubePlayerAPIReady(), то виджет прогружается. Исправьте пожалуйста эту ошибку.

if we do refresh(ctrl + F5) multiple times that time video is not coming

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.