[CS5][JSX] How to place a video from an URL

Hey everyone,
I found some great help in this forum in the past, so I hope someone can help me again this time.
I'm using Indesign CS5 on a mac. I write in Javascript.
What i try to do is dynamically placing a video from a URL.
I thought I could do this by adding a rectangle, then in the rectangle place a movie and finally add the URL to it.
This does not work. I'm lost at how to proceed.
Here is the code that i hoped would do the trick (just the relevant lines from a bigger script)
var myDocument = app.documents.item(0);
var myPage = myDocument.pages.item(0);
frameVideo = myPage.rectangles.add({geometricBounds:[0, 0, 144, 144]});
onlineVideo = frameVideo.movies.add();
onlineVideo.url= "http://www.meffect.nl/rocvideo/91870.mp4";
When i run this script I don't get any errors, but the video in the URL is not loaded.
Should I use something like
onlineVideo= frameVideo.place(URL("http://www.meffect.nl/rocvideo/91870.mp4"));
This doesn't work either!
I hope this is possible at all... I think it is, since you can do it manually in InDesign too.
Thanks guys,
Michiel

Hey guys,
I just arrived at the office after a good night of sleep, so I thought, let's give it another shot.
For some reason now my code works. It's the exact code I posted yesterday.
I have no clue why it didn't work then, but it works now.
Weird, but I don't mind as long as it keeps working
Thanks anyway!
Michiel

Similar Messages

  • How can I upload video from my Canon ZR900 DV onto my my MacBook Pro?

    I have system 7.5.5 and plugged my camera into my MacBook Pro using the proper firewire cable (since both ends seemed to fit into their proper places) but now I have no idea how to retrieve the video from my video camera.  Does someone have any idea how I can get this to show up so I can watch this on my computer screen, rather than the small screen on the camera?
    Thanks!
    Erik

    Hi Erik,
    In order to import video from your DV camera into your MacBook Pro you will need an application designed to do this. Fortunately you should have iMovie on you computer and that is one of the many things it can do. See this video that shows the process -
    iMovie ’11: Import Video
    http://support.apple.com/kb/VI104
    as well as this article -
    iMovie '11: Import video from a tape-based (FireWire-equipped) camcorder
    http://support.apple.com/kb/PH2144
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How do I transfer videos from one ipad to another

    How do I transfer videos from one ipad to another

    Sync to computer, then from computer to other device.
    http://support.apple.com/kb/HT4083

  • How can I move videos from Revolution phone to mac?

    How can i move videos from Verizon Revolution to Mac? My computer is Mac os x version 10.5.8
    I have several videos that are too long to send via email, which is how I have been moving pictures and videos. I plugged it in using the USB port. The phone says I'm connected via usb. My mac brought up a box warning that the "cd connected" is not readable.

    Hi ..
    You can use the Image Capture app located in your Applications folder to import vidoe content from the phone to your Mac
    Instructions here >  Using a camera with your Mac - Apple Support
    If you have problems, make sure your Mac's software is up to date.
    Open System Preferences > App Store then click:  Check Now

  • How can I transfer videos from my PC to my iPod touch (iOS 7.0.2)?

    Hi,
    I'd like to know how I can transfer videos from my PC to my iPod touch (iOS 7.0.2)?
    Thank u for your help.

    iOS: Importing personal photos and videos from iOS devices to your computer

  • How can i send video from my iphone 4s to email

    How can i send video from my i phone 4s to an email address?

    Mail attachment size is determined by your ISP, & limit that size to betweem 10MB's & 25MB's, depending on ISP. So, unless it is a very small video, you won't be able to.

  • How can I stream video from my laptop to apple tv while doing a different task on my laptop?

    How can I stream video from my laptop to apple tv while doing a different task on my laptop?  I want to be able to stream a video to my tv while browsing the internet or working on writing on my laptop. Thanks

    You would have to use airplay within iTunes then, unless you want to use 3rd party software (ie Beamer)

  • I use my iphone 5 to record home videos. I have an apple tv but dvd burners dont have a hdmi plug in. Any suggestions on how i can burn videos from iphone 5?

    I use my iphone 5 to record home videos. I have an apple tv but dvd burners dont have a hdmi plug in. Any suggestions on how i can burn videos from iphone 5?
    I had a av cord that plugged into the iPhone 3gs and iPad 2 but its not compatible with the 5 connector. Right now i have to email myself the videos in small segments and open and save on the iPad 2 to burn them.  Is there an easier way to burn these from my iPhone 5 or through air play on apple tv?
    Thanks

    Connect the phone by USB to the computer, import with image capture, iPhoto or whatever application you use to import movies, drop it into iTunes.

  • How can I download video from a Canon ZR30 video camera to my IMac.  I bought Elgato Video Capture, but the connections do not match.  There is no white female end in the camera.  Also, the red and yellow connections are loose at the camera end.

    How can I download video from a Canon ZR30 video camera to my IMac?  I have Elgato Video Capture, but the provided connectors are loose in the camera and the camera does not have a white female end.  No signal shows up on the computer when I connect the red and yellow connectors.

    Broken solder joints on the camera me thinks!!
    sorry

  • How do I transfer video from ipad to macbook pro

    How do I transfer video from my iPad to my MacBook Pro?

    Hi MeSwolf,
    You can do it wirelessly with Dropbox. The Dropbox app has a very cool auto-upload process that will automatically upload photos and videos from the iPad Camera Roll to Dropbox.
    First sign up for a free Dropbox account from your computer.
    Then, download the free Dropbox app on your iPad.
    Log in to the Dropbox app on the iPad with your new account and click on the Photos icon in the lower left corner of the screen (second one from the left).
    Select "Enable Camera Upload" and "Only Wi-Fi." The upload process will begin for all existing photos and videos in the Camera Roll.
    From now on, all future photos and videos taken by the iPad will automatically upload to the Dropbox folder. You can then download your photos from Dropbox to your computer by going tohttp://www.dropbox.com, logging in to your account, and downloading the photos and videos.
    Hope this helps!
    ~Joe

  • HOW DO I IMPORT VIDEO FROM IPAD TO MACBOOK PRO

    HOW DO I IMPORT VIDEO FROM IPAD TO MACBOOK PRO

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Copy Photos (& Videos) Between iOS Devices
    http://tinyurl.com/cnz95bc
     Cheers, Tom

  • How do I play video from my macbook pro to my tv?

    How do I play video from my macbook pro to my tv?

    What model MacBook Pro do you have? On my late 2011, I used to use a Mini DisplayPort/Thunderbolt to HDMI adapter to get video and audio from my Mac to my television. I used this adapter from Monoprice. Worked great - I just no longer use it because I bought a 27" monitor.
    You can also use AirPlay mirroring if you've the right MBP and an Apple TV - but the wired method works, too.
    Clinton

  • How do I download video from my Sony Handycam recorder to my macbook pro ?

    How do I download video from my Sony Handcam Video Recorder (DCR-SX44) to my macbook pro, using imovie? Seems like it was meant to work with a PC (lots of info and a CD for PC use...instructions to contact Apple for macs!)  I've saved video to both the internal drive and a SDHC card, but having no luck...

    have you tried to follow advice given in the Manual?
    http://help.apple.com/imovie/mac/10.0/?lang=en#movbc953953e

  • How do I transfer video from my sony DCR-SR82 to macbook pro

    How do I transfer video from my sony DCR-SR82 to macbook pro. Any assistance would be appreciated. Thanks

    "It's vital to research your computer purchases before you make them ... especially when you spend so much money, you need to be sure it'll work with the devices that you already have."
    I agree with you...to a point. I knew my 13-inch aluminum had no firewire, but I had no idea Apple would leave me high and dry by creating a product that would not accept DV video by any means. That's like producing a computer without a headphone jack. It's unconscionable for a company that promotes easy video editing and creation as one of their primary selling points to put a product like this out there. I have iMovie and I can't even use it?? Who thought THAT was a good idea? I upgraded to Mac for a reason and I'm deeply disappointed.

  • How do I upload video from my iPhone to my desktop

    how do I upload video from my iPhone to my desktop

    Try connecting your phone to computer with USB cable, and with iTunes open, select iPhone in Sidebar and 'transfer purchases'.

Maybe you are looking for

  • Substitution not working

    Hi Friends, I created a substitution rule as follows (Call point 2 - Line item level): prerequisite: BSEG - KOSTL = 'ABC' AND BSEG - MWSKZ = 'V1' Substitutions (if prerequisite is met) BSEG - MWSKZ = 'V2' Logically, this seems to be correct. But when

  • Fields only on the last page of a report

    Hello everybody, I have a report region1, the report can contain many records thus I will have to paginate it.... In the same page, I must have another region2 with some fields on it, but theses fields must appear only on the last page of my report,

  • Create an instance of a class from another

    Hello, I made a BADI and inside the implementation CLASS y want to call a CLASS specialized in creating random numbers (CL_ABAP_RANDOM_INT). What should I do  to be able to call this class methods inside my class implementation. Kind Regards.

  • IPhone 4S - Push: for what email providers ?!

    I have an iPhone 4S - my question is about PUSH mail ... Does iPhone support PUSH only with some email providers -  if yes, where can i find a list with these email providers ?! The PUSH feature is provided by iPhone, or by the providers of email hos

  • Purchasing an extended warranty for the Sealed Battery

    Hi, I purchased an open box Lenovo X1 which has 2yrs onsite warranty remaining. I am now trying to purchase an extended warranty for the sealed battery unit but not sure how to proceed. I have found the product 04W7993 which sounds like the right ite