Syntax small fix (video autoplay and loop)

Hi, for the life of me I don't know where to put the autoplay and loop, here's my current attempt. the video loads but it doesnt play
vid.html('<video id= "video1" style="position: absolute;bottom: 0px; right: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; overflow: hidden" >' +
"<source src='video/video.mp4' type='video/mp4' autoplay= 'autoplay' loop= 'loop'/>" +
"<source src='video/video.webm' type='video/webm' autoplay= 'autoplay' loop= 'loop'/>" +
"<source src='video/video.ogg' type='video/ogg' autoplay= 'autoplay' loop= 'loop'/>" +
"</video>");
What am I doing wrong?  (Apart from not understanding any code whatsoever!)

You need the autoplay and loop in the video part of the code like this:
<video preload="auto" autoplay="true" loop="true" width="100%" height="auto">
How ever I do this in a completely different way 1st I set up a Html page holding the video and the code then I embed the video into Edge with an Iframe like so:
Html page:
<!DOCTYPE html>
<html>
<body>
<style type="text/css">
#video_background {
position: absolute; bottom: 0px; right: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1000; overflow: hidden; }
</style>
<div id="video_background"><video preload="auto" autoplay="true" loop="true" muted="true" volume="0" width="100%" height="auto">
<source src="folio.webm" type="video/webm">
<source src="folio.ogg" type="video/ogg">
<source src="folio.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video></div>
</body>
</html>
JQuery:
var container = sym.$('#Stage_Iframe');
var Video = ' <iframe width="100%" height="100%" frameborder="0" scrolling="no" src="video.html"></iframe>'
container.html(Video);

Similar Messages

  • [svn:osmf:] 10085: Fixing video width and height getting reset when there' s no true dimensional change reported by 'onMetaData'.

    Revision: 10085
    Author:   [email protected]
    Date:     2009-09-09 07:39:54 -0700 (Wed, 09 Sep 2009)
    Log Message:
    Fixing video width and height getting reset when there's no true dimensional change reported by 'onMetaData'.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/video/VideoElement.as

    hi their i have tried your last code but their is a problem with it on my pc that when i click the send video button it gives the error related to vector,
    Vector deviceList = CaptureDeviceManager.getDeviceList()
    di = (CaptureDeviceInfo)deviceList.firstElement();
    returns zero.
    please help my email address is [email protected]
    kindly send me an email regarding the solution of my problem. i am using 'creative web cam' over XP windows.

  • Video autoplay and audio autoplay not possible simultaneously?

    Hi,
    I've got a article with a video set to autoplay immediatly and a audio set to play immediatly.
    But when audio starts video stopps playing. Is this expected behaviour¿
    v31 IOS8
    Thx in advance
    Hans

    Yes, that's expected behavior. Playing a media clip stops any other media clip.

  • I seem to have lost the ability to sync video playlist and loop it

    I had to replace the airport card in my original AppleTV, reset to factory settings and upgraded to the latest version of the AppleTV software and now I can sync the videos (QT versions of Keynote presentations that we loop and play on a big screen in the entry hall of the church) but I can't see the playlist they they are in and don't see how to loop them. Was this changed in the latest version of the AppleTV software?  If so, is there a way to go back to a previous version but not the factory original because it didn't do the looping either.

    Ahhhh - I found the applicatins folder - it is not in there either.  When I searchd for iPhoto I did get a message saying I may have to reinstall it as it is not compatible with this version of the iOS.  I updated to this Mountain Lion version some timeback and only recently wanted to use the iPhoto app - so - maybe it was lost when I updated to the new iOS.
    I will be very upset if I lose all my photos in it.

  • Having a qt movie auto play and loop without controls

    I have a qt movie that I want to place on a page in iweb - but i want it to autoplay and loop and do not want the controls to show at the bottom of the movie- can this be done?
    thanks

    Yes, and there's a couple different ways to do this. One way is to use a specially created QuickTime movie that will play and loop a remote movie. I've gone through some steps of how to do this here.
    (turn your volume down, loud movie at the following link)
    http://web.mac.com/makentosh/iWeb/zample/crab.html
    Another way is to edit the .js file for that page so that you set the
    autoplay to true,
    controller to false,
    loop to true,
    and adjust the size of the movie to be 16 pixels shorter to account for the missing controller. I used part of THAT technique on some movies here.
    http://web.mac.com/makentosh/iWeb/zample/abutton.html
    Here are some more specific instructions. These are for audio, but with a few changes, could be for your video as well.
    http://www.rowan-cottage.co.uk/Site/Autoplay%20Music.html

  • TS3195 I can upload photos and smaller size videos but when a video is 24 minutes long for instance, it doesn't upload at all from my iPhone to the PC. How do I upload these videos that are longer in length?

    I can upload photos and smaller size videos but when a video is 24 minutes long for instance, it doesn't upload at all from my iPhone to the PC. How do I upload these videos that are longer in length?

    Are you using any software to import videos? Did you tried Picasa or you just open your iPhone from My Computer?

  • In the past when I have imported my dslr video/audio files and then my zoom audio files Final Cut Pro has organized them in pairs in my library. For some reason my video/audio and my audio are being organized seperately. How do I fix this? Thanks!

    In the past when I have imported my dslr video/audio files and then my zoom audio files Final Cut Pro has organized them in pairs in my library. For some reason my video/audio and my audio are being organized seperately. How do I fix this? Thanks!

    Thank you Russ! Seems as though the timestamp on my audio files was completely incorrect so it placed the files far away from the corresponding video. I've modified the timestamp information and this has helped. The hour/minute information is incorrect but at least now I'm in the ballpark. Thank you!

  • Multithreaded Video Decoding and Seek frame accuracy for seamless m4a loop

    Hi everybody,
    We read that flash 11.2 and Air 3.2 will improve the seek functionality.
    Right now being able to select a part of a track and precisely loop it is very difficult and complex for an mp3 but impossible with an m4a due to NetStream.
    So if you could let us know if the Multithreaded Video Decoding and Seek frame accuracy improvement in 11.2 and 3.2 will bring us a solution would be great!
    Basically as m4a are local files does 11.2 and 3.2 will allow to seek not only to keyframes but anyframe? This is key functionality to all music applications. If not do you think it will come soon?
    Thank You

    Seamless looping using seek will not work very well. It will have to be a separate feature.
    You could submit it as a feature request.

  • My MacBook Air tells me I'm out of memory.  to my knowledge I use only 65 GB for documents, photos, videos, apps, and it tells me that 75 GB is taken by "other"  What is in other, and how can I fix it?

    my MacBook Air tells me I'm out of memory.  to my knowledge I use only 65 GB for documents, photos, videos, apps, and it tells me that 75 GB is taken by "other"  What is in other, and how can I fix it?

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Ignore any other messages that appear in the Terminal window.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • Video's are missing and can not post any video's and can no longer see on Facebook after upgrading mac software.  Facebook says content is unavailable.  Is this a facebook issue or is there something that I can do to fix on my mac.

    Video's are missing from facebook album under photo's.  It shows that I have 99 and only shows 24.  These are not copyright problems.  I have had them up for years.  Now, I can not post any video's  too.  Message says that content is currently unavailable. It seemed to happen after I upgraded to 10.7.5 but it could be coincidental.  Of course, I have not got any email from facebook to help with this problem and I am really frustrated that I can not find my video's and post any new ones anymore.  Any help would be appreciated.

    I would like to add that Comcast is my internet provider. Perhaps that is part of the issue although the Connection Doctor confirms the mail box is connecting to the internet. No other function processes when Connection Doctor program is used to find the source of the issue. I have read forum posts but am unable to find a way to get my Apple mail to be delivered to my computer. It worked fine up until I chose to transfer mail to the Cloud. My mail account is a .mac account.
    Still hoping someone out there can help me.
    thanks,
    anne

  • Podcasts and tv shows videos stop and start when playing.  The Audio flows fine, but video freezes for a moment and continues.  Do you know what I can do to fix?

    When watching a podcast or tv program on itunes the video freezes and starts.  The audio still flows just fine.  Do you know what the solution might be?

    set the wake-on lan on the main computer
    The laptop's too far away from the router to be connected by ethernet. It's all wifi.
    No separate server app on the laptop, it's all samba
    The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
    I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
    Last edited by saft (2010-03-18 20:38:08)

  • How do I turn off video autoplay in Internet Explorer?

    I do not want any kind of videos or animations to play unless I choose to click on the "Play" button.
    This includes Flash, HTML5, GIF, MP4, or any type of video that may be invented.
    What would be ideal is to have a new set of controls in Internet Options that would allow the user to control/override the video controls in all web pages.
    For example, HTML5 has the <video> ... </video> element that has certain attributes:
    autobuffer
    autoplay
    controls
    loop
    The user should be able to control each these attributes on a global basis for all web pages. For example:
    Control Panel
    Internet Options
    Advanced tab
    Video options (new category)
    autobuffer - yes or no (new option)
    autoplay - yes or no (new option)
    controls - yes or no (new option)
    loop - yes or no (new option)

    Hi,
    web designers make the choice to annoy you or not with autoplay or scripted autoplay content.
    Contact the website administrators to make your complaints or add the sites to your IE Restricted sites zone which will stop some annoyances but not all... Ensure also that you have turned on Tracking Protection and ActiveX Filtering (Tools menu in IE).
    Possibly a developer could create an extension for IE that would do all that you want sites not to do, but I don't know of any, and generally recommend addons free browsing.
    Post general questions about IE to http://answers.microsoft.com. Include with your questions the full address of any websites you are having issues with. This allows the support engineers to visit the problem sites
    to investigate and make recommendations.
    this forum was for questions about html, css and scripting for website developers using MSIE browsers.
    Regards.
    Rob^_^

  • Video FX: video effects and editing drive (incl. RAID disk arrays)

    Having had an issue with rendering iMovie effects and read through a few posted thread, I ran an experiment that pinpoints an incompatibility between iMovie and large size (800GB) RAID array volumes. Hence the following questions:
    Is iMovie designed to support large sire RAID disk arrays ?
    Could anybody test a non-RAID array large size (say 500GB or better 1000GB) volume to check if it is size or RAID dependent ?
    When can we expect a fix ?
    For more details, please read on.
    Reading through the other threads talking about the Quartz composer effects, it sounds like the Apple programmers have a lot of work ahead to deliver a more robust 6.0.2 version.
    I wanted to record the noticed incompatibility of working with a project outside the System & Application drive and applying Quartz composer effects.
    Most keen videographers are using either a good large size external drive, a RAID array or a separate partition to store their video footage and editing work. So the noticed incompatibility needs to be looked into.
    Interestingly, I read of other users having the same problem but Karl Petersen also mentionned that he didn't have the problem ...
    So, what's wrong ? If the problem would be consistent, it would be easy to have Apple on their toes to fix it, but if not ...
    So I ran a small experiment. I took the same iMovie project and copied it to my different disks and volumes (at least the ones where I had enough space) and tested 3 types of effects:
    -1- the non-Quartz Composer 'fast/slow/reverse' effect, which caused me trouble already in iMovie '05;
    -2- the Quartz Composer 'sepia tone' effect, which I was using without problem in the previous version;
    -3- the non-Quartz Composer 'aged film' effect, which I was using without problem in the previous version;
    My disk and volume configuration is the following:
    -> First internal 500GB Serial ATA Disk split into 3 partitions:
    a) 30GB System & Applications Drive (Start-up Disk);
    b) 20GB Pictures Drive;
    c) 415.6GB Partition as Slice 1 of my Apple RAID array;
    -> Second internal 500GB Serial ATA Disk split into 4 partitions:
    d) 15GB Virtual PC System & Applications Drive;
    e) 15GB MAC & PC Documents Drive;
    f) 20GB Musics Drive;
    g) 415.6GB Partition as Slice 2 of my Apple RAID array;
    -> Internal 831.3GB Apple RAID Array - striped RAID set made of 2 slices (volumes c and g above);
    -> External 120GB FireWire Disk in one volume.
    All volumes are formated using Mac OS Extended (Journaled) format.
    The result is consistent and points towards an incompatibility of iMovie with either very large size volume or RAID array. Indeed, all tested effects preview fine on all tested volumes, however, they can be applied seemlessly on all tested volumes apart for my large size RAID array.
    When the project is on the RAID array, hitting the apply button results in the following:
    For the non-Quartz Composer 'fast/slow/reverse' effect and the Quartz Composer 'sepia tone' effect, rendering starts but then stops a fraction of a second later (as if it was unable to write the rendered file to disk). Resulting image in the video viewer is shifted diagonally to leave a black corner on the bottom-left.
    For the non-Quartz Composer 'aged film' effect, rendering starts and proceeds but the resulting image in the video viewer is again shifted diagonally to leave a black corner on the bottom-left. Note that resizing the iMovie window corrects this viewer issue.
    Conclusion:
    Is iMovie designed to support large sire RAID disk arrays ?
    Could anybody test a non-RAID array large size (say 500GB or better 1000GB) volume to check if it is size or RAID dependent ?
    When can we expect a fix ?
    Regards,
    Alex

    I had the same problem rendering a movie with iMovie 6 when the file is placed on a second internal disk.
    Clicking the 'Ignore ownership on this volume' tick box is a solution but I find it too blunt. My Mac is configured as a multiuser system and I bought the second internal disk to use it for my /Users directory. I thus don't want the different users to be able to create files in each others directories.
    When unclicking the 'Ignore ownership on this volume' tick box again I'm surprised to find that rendering still works fine for all users with the desired file integrity.
    I would have preferred to set up all the permissions using unix commands instead of all this magic. Can anyone explain the proper way to configure the correct permissions using the Terminal?
    Power Mac G5 DP 1.8GHz   Mac OS X (10.4.5)  

Maybe you are looking for