An open API service indexing awesome lists of open source software.

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

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
}
});
```