Comments (12)
+1. How can i set the destination div?
from bigvideo.js.
Currently you can’t. Might add that at some point, but for now I recommend you guys use VideoBG: http://syddev.com/jquery.videoBG/
from bigvideo.js.
Oh. Thanks! That's perfect.
PS. bu then i ask what's the default DOM element in wich BigVideo.js tries to put the video bg? The body? Because i was not able to use it in a yootheme joomla template that with some css rules uses another div as the background, not the body.
from bigvideo.js.
VideoBG isn't quite as fully-featured as I needed, so for anyone who wants to quickly hack this in:
I just replaced
To be clear: that's not exactly best practice, and if you want BigVideo to be in any way reusable elsewhere on your site, don't do that, but deadlines are deadlines, right? :)
from bigvideo.js.
Seems like it's now possible, there is a container
option added by @johnpolacek
https://github.com/dfcb/BigVideo.js/blob/master/lib/bigvideo.js#L-35
Usage example
$(function() {
BV = new $.BigVideo({useFlashForFirefox:false, container:$('.slider.home')});
BV.init();
BV.show('test.mp4', {altSource:'test.ogv', ambient:true});
});
from bigvideo.js.
Has anyone gotten this working successfully? Have an example? The usage example above from @thejae doesn't seem to work for me.
from bigvideo.js.
It did work for me, using this container:
< div class="video-wrapper" >< /div >
and then:
jQuery(function($) { var BV = new $.BigVideo({useFlashForFirefox:false, container:$('.video-wrapper')}); BV.init(); if (Modernizr.touch) { BV.show('image.jpg'); } else { BV.show('video.mp4',{ambient:true}); } });
from bigvideo.js.
@zillionsk8 thanks. Did that allow you to actually contain bigvideo inside your wrapper div, or did it still take up the entire browser window?
Ideally, I want to be able to have a bigvideo.js video at the top of a page as a header but also be able to scroll down and have more content below it, and I haven't yet found a way to accomplish that.
from bigvideo.js.
Yes, it populated the BigVideo generated content inside that wrapper div but then it takes over the height settings and eats whatever is under, you could control it using something like:
$('#big-video-vid_html5_api').css('height','100px');
or percentage:
$('#big-video-vid_html5_api').css('height','50%');
from bigvideo.js.
In case anyone has issues using the container option, the negative left margin on #big-video-vid causes an overflow issue during resizing. Placing an overflow:hidden on big-video-wrap solves it.
from bigvideo.js.
This method ( $('#big-video-vid_html5_api').css('height','100px'); ) did not works for me, I used iframe with height: 777px; width: 100% and border:0; and static page with player, attached to body...
from bigvideo.js.
You need to specify the container of the BigVideo object:
BV = new
from bigvideo.js.
Related Issues (20)
- Requests for Video.js 5.0? HOT 4
- Drupal 7 > Uncaught TypeError: The element or ID supplied is not valid HOT 1
- doLoop= false doesn't return to start after finish.
- Controls appear for a split second then get removed. How do I stop this? HOT 3
- Add options to docs
- ECMDERR Failed to execute; unable to connect to github.com
- Is there a way to have both looped and unlooped videos in a playlist?
- Multiple posters playlist
- ambient: true doesn't work on showPlaylist HOT 5
- Can't remove duration and Unmute on windows HOT 1
- Video doesn't load on page change
- Video stop working under Android Chrome
- Chrome (46.0.2490.80 m) Not Looping
- Preload videos from playlist
- Video shows strings while loading on BVshow() breakpoint HOT 3
- setting video to parallax
- Stack div's below.
- As reported by one of my users, sometimes this happens HOT 1
- First, Awesome Code! / Issues with the new Chrome version 66 / Video auto play without sound not working HOT 3
- Chrome update incompatible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigvideo.js.