https://github.com/gustavocstl/video-popup-js
Plugin jquery para popups de vídeos
https://github.com/gustavocstl/video-popup-js
jquery modal popup video vimeo youtube
Last synced: 4 months ago
JSON representation
Plugin jquery para popups de vídeos
- Host: GitHub
- URL: https://github.com/gustavocstl/video-popup-js
- Owner: gustavocstl
- Created: 2017-08-22T20:18:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T17:06:38.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T23:18:48.697Z (8 months ago)
- Topics: jquery, modal, popup, video, vimeo, youtube
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jQuery Video Popup Plugin (Vimeo and YouTube)
### Utilizando
Depois de incluir o jQuery e os arquivos do plugin na sua página HTML, basta criar a div que irá receber a ação do popup.
```html
Open Popup
``````javascript
$("#video").videoPopup({
autoplay: 1,
controlsColor: 'white',
showVideoInformations: 0,
width: 1000,
});
```---
### Options
É possível definir diversas opções na chamada do popup:
```javascript
$("#video").videoPopup({
autoplay: false,
showControls: true,
controlsColor: null,
loopVideo: false,
showVideoInformations: true,
width: null
});
```### Custom Options
Cada plataforma possui atributos diferentes, então, caso precise, você pode defini-los utilizando o ```customOptions```
YouTube -> https://developers.google.com/youtube/player_parameters?hl=pt-br#Parameters
Vimeo -> https://developer.vimeo.com/apis/oembed#arguments
```javascript
$("#video").videoPopup({
autoplay: 1,
controlsColor: 'white',
showVideoInformations: 0,
width: 1000,
customOptions: {
rel: 0,
end: 60
}
});
```