vimeowrap.js icon indicating copy to clipboard operation
vimeowrap.js copied to clipboard

resize player

Open Lane7creative opened this issue 11 years ago • 8 comments

Is there a way to get the player at 100% width? I've tried just about all the css and javascript calls to iframes as i can think of. Thoughts?

Lane7creative avatar May 17 '14 02:05 Lane7creative

Looking at the code, there's surprisingly no easy way to achieve that. I'll try to add this in the future. If you need it right now I can do it but for a small fee. Cheers

luwes avatar May 17 '14 13:05 luwes

figured it out...add a class to the div wrap...call it in css .class_name iframe{width: 100%}

Lane7creative avatar May 17 '14 15:05 Lane7creative

@Lane7creative I did similar with

<div class="vimeoPlaylist">
                    <div id="player"></div>
                </div>

but the inline style applied by the JS always wins out. Any suggestions?

1stevengrant avatar Nov 18 '15 00:11 1stevengrant

Just checking, is there any workaround for this issue or a way to specify the percentage width for the style sheet that the player will honor? Really need the player to be full width of the window. Pixel width isn't working well on mobile devices.

mrlad avatar Feb 16 '18 17:02 mrlad

I'm using this html.

Then I'm adding css to class video-player with width 100% and height 100%; I'm also calling out the iframe with same 100%. Hope this helps. Css looks like this.

.video-player{position:fixed; top:0px; left:0px; margin:0; padding:0; width:100%; height:100%; z-index: 5000; }

#video-player2{position:fixed; top:0px; left:0px; margin:0; padding:0; width:100%; height:100%; z-index: 5000; }

.video-player iframe{width:100% !important; height: 100% !important;}

.player{position:absolute; top:0px; left:0px; margin:0; padding:0; width:100%; height:100%; z-index: 5000; }

#video-player2 iframe{width:100% !important; height: 100% !important;}

Lane7creative avatar Feb 16 '18 17:02 Lane7creative

Sorry this html <div id="video-player2" class="video-player" style="display:none;"></div>

Lane7creative avatar Feb 16 '18 17:02 Lane7creative

What element in the CSS should I be associating with the vimeowrap()? vimeowrap('player')?

mrlad avatar Feb 16 '18 21:02 mrlad

Pull request: https://github.com/luwes/vimeowrap.js/pull/25

bengoshow avatar May 29 '19 15:05 bengoshow