I am a Vimeo iframe when I model trigger video Bootstrap video and when a model closes the play-off Then I have to start playing. Currently, I may have to start playing by opening the modal with the IFrame with a feature feature and it can be loaded with jQuery by triggering this model, this is the code snippet;
jQuery ("# videogumb"). Click (function () {jQuery ('# mymodal .modal-body iframe'). Attr ('src', '-source-code');}); It works fine and I start it when the modal opens, but when I turn off the music, the music plays in the background.
The second method works fine, but only when it's set to autoplay is set to autoplay and I have this snippet to turn off the modal without setting it to autoplay;
jQuery ("Modal-backdrop, #m modal. Close, #mymodal .btn"). Attr ("# myModal iframe"). Attr ("# myModal iframe"). Attr ("src"));}); < / Code> When I turn off the modal, this video stops. I should be combined in any way when the medal opens and when the modal closes to stop playing I have to autoplay it.
Any clue?
Thanks.
To add aerosag to the answer, check the documentation of Vimeo.
- Wbumic embed code API = 1 and Kiladhi_aid = vimeoplayer Add like:
& lt; iframe src = "// Pleyrkvimokcom/veedio/ll6l60l60 ? api = 1 & pplplayer_id = vimeoplayer & amp; title = 0 & amp; amp; byline = 0 & amp; amp; portrait = 0 "name =" vimeoplayer "Id =" nofocusvideo "width =" 615 "height =" 346 "Frembardr =" 0 "Vebkitolofloskrin Mojlaoplskrin Acceptable screen & gt; & Lt; / Iframe & gt; Note - I gave it an ID named 'NofocasVideo' which will be watched here: >
var iframe = documents like aliorem BIID ('nofocasvideo'); Announce 2 variables above the aeroding JS such as: / p>
& lt; Script src = "http://a.vimeocdn.com/js/froogaloop2.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; Var iframe = document.getElementById ('nofocusvideo'); // $ f == Frauglup Verwer Player = $ F ($); $ ('Modal'). ('Hidden.bs.modal', function () {player.api ('pause');}) $ ('modal'). At ('show.bs.modal', function () {player.api ('play');}) & lt; / Script & gt;
Popular posts from this blog
I have a SKScene where I am adding an SKSpriteNode I have subclassed the SKSpriteNode class to create this node. In the subclass I am defining some SKActions on Sprite. What do I want to do when the end of this phantom ends the SKAction sequence, then I add a new Prayer node to this scene. How is this possible. The following code is mine: The code for the sequence is that I'm running on the Scansprinitode subclass (TEMissileNode): - SKAction * moveDown = [SKAction moveToY: Self.position.y - 20 Duration: 0.2]; SKAction * animation = [SKAction animateWithTextures: textures timePerFrame: time / 7]; SKAction * moveMissileProjectile = [SKAction Moving: Pointoffscreen Term: Time]; SKAction * group = [SKAction group: @ [animation, movement projectile]]; SKAction * Sequence = [SKAction Sequence: @ [Hilldown, Group, [SKAction removalFromParent]]]; [Self run action: sequence]; From the main scene, I call those actions that execute these tasks TEMissileNode * missile = [tmissil...
An embarrassing simple question seems to be, but how can I move a Matlab table vector? aTableT = aTable '; I tried a standard syntax for the simple interaction of a line vector to a line vector aTable : ATableT = reshape (aTable, 1, Height (aTable)); and aTableT = rot90 (aTable); According to the head, the last time table should work for table, see. However, I get this error code: Error type in using table / permit (line 396) Undefined function 'permute' for the input arguments. Error in rot 90 (line 29) b = magnitude (b, [2 1 3: ndims (a)]); NB: fliplr is not useful either pretty sure I have covered clear angles - any ideas? Thanks! Try changing your table into an array, move it, then back to a table In other words, try doing this: aTableArray = table2array (aTable); ATableT = array 2table (aTableArray. '); I have also read the document for rot90 , and it says that rot90 is definitely working for tables Do, and I find you...
I have a small form with 10 text boxes, I have set them in the correct tab order. I want them on my tab service I was wondering if there is a way to set the text box so that they can be selected for editing until they are tabbed. That is ... I do not want the end user to edit the text box to click on them, I just want to make them editable through tabu. this should do the trick public partial category poor text box: Text Box {Safe Override Zero WndProc (Ref: Message Message) {if (m.msg == (Int) WM.LBUTTONDOWN) {Return; // mount down events} base.WndProc (ref m); }} Window message enum can be found. How to do this without anherizing: text box : class EatMouseDown: netwindows {safe override zero WndProc (ref message message) {if (m.msg == (int) WM.LBUTTONDOWN) {return; } Base.WandProc (Ref M); }} Safe Override Zero Onload (EventEurge E) {base.OnLoad (e); How to do this without any part: left a clean part, whatever is important, this can be a buggy but it works R...
Comments
Post a Comment