-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Video Files #8
Comments
Same, did you find a solution? |
I did not
…On Tue, Jan 8, 2019 at 11:14 AM Raymond Cosgrave ***@***.***> wrote:
Same, did you find a solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcTX2DqhseYH9oXpKudn2fEtovqwenuTks5vBMP4gaJpZM4WJxYa>
.
|
I know this is old, but just encase this is helpful. You can use the Custom content example to get local videos working. I use data objects on the HTML to get the video source, but you choose another method. var = mp4 = $this.data('mp4') !== 'undefined' ? '<source src="' + $this.data('mp4') + '" type="video/mp4">' : null ,
webm = $this.data('webm') !== 'undefined' ? '<source src="' + $this.data('webm') + '" type="video/mp4">' : null ,
ogg = $this.data('ogg') !== 'undefined' ? '<source src="' + $this.data('ogg') + '" type="video/mp4">' : null ;
SimpleLightbox.open({
content: '<video id="js-banner-video" class="l-banner__video" autoplay="" loop="" width="100%" controls>' +
mp4 +
webm +
ogg +
'</video>',
elementClass: 'slbContentEl',
htmlClass: ' v-lightbox-open',
closeBtnClass: ' v-lightbox__close-button',
nextBtnClass: ' v-lightbox__next-button',
prevBtnClass: ' v-lightbox__prev-button',
overlayClass: ' v-lightbox__overlay'
}); |
Nice, it works, but can someone give me some hint how to implement sliding option with this solution. |
Well there's a better way which is not documented :
|
This is amazing. Why it is not documented? |
Thank you Buddy works well in vanillaJS
|
I managed to get this working, thank you so much. One question, is there a way to set the embedded video's attributes with this method? I'd like the video to loop, but I'm having difficulty figuring out if this is possible. Any help would be appreciated! |
Are local video files supported? When I tried to link to local videos the lightbox gets hung up while displaying 'Loading...'
The text was updated successfully, but these errors were encountered: