Code to play movie

Hi people,
I'm looking for a few lines of code that will play a movie
upon "onclick" in it's exact location without having to reload the
page at all. Here is the site I'm talking about:
http://www.inspiringmen.com/rrss/ad/
As you can see I've given the main image enough cell padding
to allow the movie to play directly overlapping the space
allocated. But for all my efforts I still cannot have the darn
thing done in using any of the QT tags, like embed and the like.
I believe I'd have to create some java to allow for this but
don't know where to start.
You guys have been a great help before and I could sure use
it here.

In addition you could load an external swf file containing
the QT movie when
the play button is pressed, so the main page doesn't load
that swf file (QT
movie) till the play button is pressed.
You cannot lose until you give up !!!
"boss33" <[email protected]> wrote in
message
news:eot6u2$93l$[email protected]..
> hi guys,
>
> This query is really important to me. And I'd appreciate
a quick reply.

Similar Messages

  • HT203175 I just bought "Identity Thief".  Itunes says it has received and accepted my code and my movie is ready for viewing.... The movie shows up in my library as being there... I go to play movie and it just sits there and doesn't play... what to do

    I just bought the movie Identity Thief... Itunes says it has received and accepted my code and my movie is ready to play... when I go to click on the movie that shows up in my library... it just sits there and does not play.... i tried to reenter my code and it says the code is already in use in my library.... What do I do...???

    Hi cjgurley,
    Welcome to Apple Support Communities.
    You may find some of the steps in this article helpful:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    If necessary, you can download purchases again by following the steps outlined here:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Best,
    Jeremy

  • I know this can't be the right code to play on mp3 in flash movie

    I just feel that this is not the right code to playing sound if actionscript 3. I'm trying to play a mp3 sound only in flash can someone tell what is the right script to use. This is what I' m using.
    stop();
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    goback_btn.addEventListener(MouseEvent.onRelease, goSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    function playSound(e:MouseEvent):void {
        this.play();
    function goSound(e:MouseEvent):void {
        this.gotoAndPlay("1");
    function stopSound(e:MouseEvent):void {
        this.stop();
    thanks

    it's in my library
    I figured out how to write code for mp3 to play
    Now I can't write one to make it stop or gotoAndPlay.
    This is my code to play
    play_btn.addEventListener(MouseEvent.CLICK, playMusic);
    function playMusic(e:MouseEvent):void {
        var myMusic:Sound = new Sound();
        var soundFile:URLRequest = new URLRequest("custodiansofkingdom.mp3");
        myMusic.load(soundFile);
        myMusic.play();
    Can someone tell me how to write code to make it stop and gotoAndPlay
    Thanks

  • Unable to play some movie from Netflix on my iPad. When I click on a movie an error message comes up which says "cannot play movie. Please try again". Can anyone assist me? I just upgraded to iOS 7.1. Netflix not able to find problem.

    Unable to play some movies from Netflix on my iPad. When I click on a movie an error message comes up "Cannot play movie. Please try again later." I contacted Netflix but have not been able the help so I am wondering if it's my iPad. I didn't have a problem before but I have recently upgraded to iOS 7.1. Also is a certain amount of storage needed to play a movie? About how much is that?

    Hello all,
    I have an iPad 2 16GB with iOS 7.0.3 and Netflix version 5.0.2. I cannot watch netflix on an External LCD monitor that I have through VGA out. I use bluetooth speakers, so the AirPlay is going to that for Audio. Before this update, this combo worked without an issue.
    So as of Friday Nov. 8/2013, I contacted Netflix support, and they said they fixed the problem on their end, and the fix is on the Apple side of things, and to contact Apple support.
    So, I contacted Apple support, and the first person I spoke to said I would have to agree to pay a $35 fee for 30 days of support to this problem since my unit is out of warranty. I said this isn't a hardware issue, it's a software issue, and I'm not willing to pay to fix a problem you created. So I got a Senior Level advisor on the line, and she was helpful, and she's looking into the issue for me and said she'll contact me sometime on Tuesday or Wednesday (Nov. 12 or 13) to let me know of the issue.
    Here's the thing: this is a combination of Netflix and iOS not working correctly with any of the Apple Authorized Dongles. This is truly a code error that some hot shot programmer had major oversight on, and their management didn't catch it either. There was no reason for Netflix to rush to get this Netflix update going until Apple sorted out the bugs in iOS 7.
    Anyway, if I hear anything from Donna (the advisor), I'll post it and let you guys know. In the mean time, good luck!

  • Can't play mov files after update for MAC OS 10.6.8. Can't edit in Final cut anymore!

    can't play mov files after update for MAC OS 10.6.8. Can't edit in Final cut anymore!. SHould i by a registration code for QT 7 Pro? I can't play mov files at all.. they were okay in my final cut time line. Now i can't see them!!! I can't import movies from my camera!!!
    Help from Brazil!!!
    Tks

    David,
    tks for your help !!!
    Hi people, first, tks for Birdman308 for his link
    https://www.hightail.com/dl?phi_action=app/orchestrateDownload&rurl=https%3A%2F% 2Fwww.hightail.com%2Ftransfer.php%3Faction%3Dbatch_download%26batch_id%3DOGhkZ28 xeWFiV3dYRHRVag
    and makbookpro as well for his link
    http://blog.lib.umn.edu/mcfa0086/discretecosine/164630.html
    Now i can back to work!!!

  • Cannot play .mov Files....

    I am not able to play .mov files in my JFrame Window....
    The Visual Content shows onli a pink screen and following exception...
    The mov file which i tried to play is a standard file and plays well with quicktime player... Its not working with my code alone... I ve posted my code also... Can anyone look at this issue and guide me????
    *--------------------Configuration: <Default>--------------------*
    *# An unexpected error has been detected by Java Runtime Environment:*
    *#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c911c48, pid=1864, tid=996*
    *# Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode, sharing windows-x86)*
    *# Problematic frame:*
    *# C  [ntdll.dll+0x11c48]*
    *# An error report file with more information is saved as:*
    *# D:\project\New Folder\hs_err_pid1864.log*
    *# If you would like to submit a bug report, please visit:*
    *#   http://java.sun.com/webapps/bugreport/crash.jsp*
    *# The crash happened outside the Java Virtual Machine in native code.*
    *# See problematic frame for where to report the bug.*
    *import javax.media.*;*
    *import java.awt.BorderLayout;*
    *import java.awt.Component;*
    *import javax.swing.*;*
    *public class summar extends javax.swing.JFrame {*
        *public summar() {*
            *initComponents();*
        *private void initComponents() {*
            *trailer1 = new javax.swing.JPanel();*
    *          trailer1.setLayout(new BoxLayout(trailer1,BoxLayout.Y_AXIS));*
    *          trailer1.setVisible(true);*
            *setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);*
            *getContentPane().setLayout(null);*
            *trailer1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));*
    *Player player=null;*
                    *try{player=Manager.createRealizedPlayer(new MediaLocator("file:\\c:\\common\\trailer.mov"));*
                    *player.setMediaTime(new Time(30.0));*
                    *trailer1.add(player.getVisualComponent());*
    *          Control controls[]=player.getControls();*
    *          CachingControl cc=null;*
                    *for(int i=0;i<controls.length;i++)*
    *               if(controls[i] instanceof CachingControl)*
    *                    cc=(CachingControl) controls;*
    *                    trailer1.add(cc.getProgressBarComponent());     *
    *                    System.out.println("Found CachingControl");*
    *          if(player.getControlPanelComponent()==null)*
    *               System.out.println("Null");*
    *          else*
    *               trailer1.add(player.getControlPanelComponent());*
    catch(Exception e1){}
    getContentPane().add(trailer1);
    trailer1.setBounds(250, 70, 320, 220);
    pack();
    *public static void main(String args[]) {*
    summar s=new summar();
    s.setBounds(0,0,960,660);
    s.setVisible(true);
    private javax.swing.JPanel trailer1;

    When I 1st used QT after upgrading to ML, I received a message saying that a codec was missing, and that accordingly QT  could not play the files.  Just now, after tinkering with VSL in vain, I re-launched QT, and opened what had been a '.mov'-file, only to find that it is now an '.mpg'-file.  How that transformation occurred, I do not know, but the result is that QTwill play the file perfectly well.
    I am back with QT, and many thanks to you all that have tried to help.

  • Need to see the Time code when playing

    I need to send, on a DVD, a project I'm working on to someone so he can see the time code as the movie is playing. Anyone have any ideas as to what I can do, either imovie 11, or outside of it?

    Top right corner, press the tiny album cover art.

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

  • Playing movie with text button

    I'm trying to get a movie to start once I click on a text button (play movie).  So far I have this code in place and it is working.  I just need to know the function necessary to start the movie to put in place of the comment I have below.
    play_btn.addEventListener (MouseEvent.CLICK,playClick);
    function playClick(e:MouseEvent)
    //code to start movie
    THANKS!

    If the movie that is supposed to play is the one containing the button, then you can just put  play(); inside the function.  But if it is some other movie, you'll need to target that movie by its instance name...  mcName.play();

  • Play movie with JMF

    Hey,
    I just started out with JMF (I wanted to play a movie with java).
    I got this code:
    import java.applet.*;
    import java.awt.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.media.*;
    * Demonstrate simple code to play a movie with Java Media Framework.
    * @author Ian F. Darwin, http://www.darwinsys.com/
    * @version $Id: JMFPlayer.java,v 1.9 2004/02/09 03:21:20 ian Exp $
    public class NewJApplet extends JPanel implements ControllerListener {
        /** The player object */
        Player thePlayer = null;
        /** The parent Frame we are in. */
        JFrame parentFrame = null;
        /** Our contentpane */
        Container cp;
        /** The visual component (if any) */
        Component visualComponent = null;
        /** The default control component (if any) */
        Component controlComponent = null;
        /** The name of this instance's media file. */
        String mediaName;
        /** The URL representing this media file. */
        URL theURL;
        /** Construct the player object and the GUI. */
        public NewJApplet(JFrame pf, String media) {
            parentFrame = pf;
            mediaName = media;
            // cp = getContentPane();
            cp = this;
            cp.setLayout(new BorderLayout());
            try {
                theURL = new URL(getClass().getResource("."), mediaName);
                thePlayer = Manager.createPlayer(theURL);
                thePlayer.addControllerListener(this);
            } catch (MalformedURLException e) {
                System.err.println("JMF URL creation error: " + e);
            } catch (Exception e) {
                System.err.println("JMF Player creation error: " + e);
                return;
            System.out.println("theURL = " + theURL);
            // Start the player: this will notify our ControllerListener.
            thePlayer.start(); // start playing
        /** Called to stop the audio, as from a Stop button or menuitem */
        public void stop() {
            if (thePlayer == null) {
                return;
            thePlayer.stop(); // stop playing!
            thePlayer.deallocate(); // free system resources
        /** Called when we are really finished (as from an Exit button). */
        public void destroy() {
            if (thePlayer == null) {
                return;
            thePlayer.close();
        /** Called by JMF when the Player has something to tell us about. */
        public synchronized void controllerUpdate(ControllerEvent event) {
            // System.out.println("controllerUpdate(" + event + ")");
            if (event instanceof RealizeCompleteEvent) {
                if ((visualComponent = thePlayer.getVisualComponent()) != null) {
                    cp.add(BorderLayout.CENTER, visualComponent);
                if ((controlComponent = thePlayer.getControlPanelComponent()) != null) {
                    cp.add(BorderLayout.SOUTH, controlComponent);
                // re-size the main window
                if (parentFrame != null) {
                    parentFrame.pack();
                    parentFrame.setTitle(mediaName);
        public static void main(String[] argv) {
            JFrame f = new JFrame("JMF Player Demo");
            Container frameCP = f.getContentPane();
            NewJApplet p = new NewJApplet(f,
                    argv.length == 0 ? "file:/C:/Users/Patrick Kos/Pictures/BAA.avi"
                    : argv[0]);
            frameCP.add(BorderLayout.CENTER, p);
            f.setSize(200, 200);
            f.setVisible(true);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }but I always get a unable to handle format exception, expect with mp3 files.
    But i"ve looked up the supported formats and its says its supported so??

    i get this error
    Unable to handle format: XVID, 320x240, FrameRate=29.9, Length=230400 0 extra bytes
      Unable to handle format: unknown, 22050.0 Hz, 0-bit, Stereo, Unsigned, 8000.0 frame rate, FrameSize=9216 bits
    Failed to realize: com.sun.media.PlaybackEngine@7259da
    Error: Unable to realize com.sun.media.PlaybackEngine@7259da
    Exception in thread "main" javax.media.CannotRealizeException
            at javax.media.Manager.blockingCall(Manager.java:2005)
            at javax.media.Manager.createRealizedPlayer(Manager.java:580)
            at projectnemo.NewJApplet.main(NewJApplet.java:102)

  • Play movie clip on frame

    I am using Flash CS4 and i have made some short movie clips. I want one of them to play on frame 24 once and then the next on frame 48 ect. How would i do this?
    Thank you in advance,
    Ben

    Your posting could be interpretted at least a couple ways, so I'll try for one of them... Give your movieclips instance names via the Properties panel, and in an actions layer, on the frame you want one to play, add a keyframe and in it add the code: mcName.play();  where mcName is whatever instance name you assign to the movieclip
    The preceding assumes you have a stop(); command in the first frame of each movieclip.
    If that doesn't agree with the scenario you intend, try explaining the details again.

  • IPod Classic won't play movie

    I download Les Misérables from iTunes with a redemption code I got within my DVD.
    It plays perfectly fine on iTunes.
    However once I synced it to my 80GB 6th gen iPod Classic, it does not play.
    It simply goes back to the previous screen (choose a movie).
    Any ideas on how to fix this? - as far as I'm aware, this is the only video that does not work, all others do but they are home videos.

    I have an 80 classic and i started getting new movies and tv shows and my ipod stoped playing movie files. The time i experienced this was May 22, 2009. I loaded the free episode of the Glee Club offered by itunes. Did you ever find out how to fix that. Someone PLEASE HELP!!!!!!!!!

  • Subtitles are not getting displayed while playing movies

    Hi,
    Recently I have upgraded with Max OS X 10.6 Snow Leopard. After this upgrade whenever I play movies in my VLC player, I am getting a message as "freetype: failed to load font file /System/Library/Fonts/LucidaGrande.dfont" and then the subtitles are not displayed.
    Can someone advise how to resolve it? I tried to download LucidaGrande.dfont from internet. But I couldnt find one. Please help.
    Thanks.
    Ravi

    Hello, Ravi & welcome to the forums.
    Lucida Grande is included with Mac OS X.
    Check and validate all of your fonts with Apple's Font Book (look in the Applications folder). Search for Lucida Grande to be sure it was properly installed. Find and remove duplicates as well.
    Also, don't hesisate to perform wholesale deletion of old and/or little used fonts - be skeptical of anything that has come from Office 2008, including those related to an Equation Editor installation.
    Finally, be sure all the apps you are using are compatible with SnowLeopard. Check with their authors for updates.

  • When I try to enter codes for digital movie downloads it tells me "code redemption is temporarily unavailable. Try again later." Customer support has been no help. Anyone else have this problem?

    When I try to enter codes for digital movie downloads it tells me "code redemption is temporarily unavailable. Try again later." Customer support has been no help. Anyone else have this problem?
    Am sick of going back and forth with what has turned out to be worthless customer support. Have sent them so much info and pictures, no help. All they do is send me links for instructions on how to redeem the codes. I know how to redeem, I have redeemed at least 50 codes. To them I am obviously an idiot though. To me it seems to be a problem on their end, but can't get an answer from them on why it is telling me code redemption is unavailable. Please help! Anybody!

    Confirming my suspicions with every passing hour. Support on this forum is non-existent like the support from Apple support. But, you got my money now... why would you care?

  • Randomly Apple TV can't play Movies/Tv shows and music.

    I've seen other people having problems with this issue but with all my searching, have not found an answer and thought I'd share my experience in case someone has a solution or suggestion.
    Our cable modem service comes into an access pannel in the bedroom closet. It goes to the Linksys WRT54G router, then to a hub which sends out to all the rooms in our house. Our house is new and pre-wired for ethernet in each room. It comes in the office, goes into another hub and then to the Mac Mini I have and to a NAS Lacie storage drive where all my movies, music and photos are at. We stream everything and only synk photos on the Apple TV.
    Over the last couple of days, the Apple TV can't play movies or music for some reason. The errors I get with Movies/TV is "The selected video cannot be played." The format was not recognized. With music the message is "Apple TV cannot play the current song." I know all the movies and music work because a day before I just played I AM LEGEND and it worked perfectly.
    I've got a couple of theories and wanted to float them by everyone. I use a Harmony 880 remote and when I select Apple TV, it turns on the ATV and then sets the inputs on the other items. When I'm done and select watch TV, it turns ATV off. Should the ATV stay on all the time? Could this be causing the problem?
    I've restarted the ATV, the Mac Mini, the hubs, the cable modem, the router. Nothing brings it back. But if it sits for a while, a couple hours or so, then it's back. However, it just stops playing for no reason and the next day it might not work again.
    I'm running iTunes 7.6.2 and I checked the ATV and iTunes and both say they are up to date on their software.
    I could really use some help here. The frustrating part is the kids want to watch one of their movies for the 700th time and it won't play many time.
    Thanks everyone.
    John
    I use a Harmony 880 (I believe) remote.

    Oops----thinking of the light on the Airport!!! =-)
    The status light is gray, so it is not setting off any "alarms", everything else is working, but when I go to watch a movie, rented or owned, it times out and resets itself. I ran a diagnostic and it said everything was working properly, I reset to factory settings and still had the same problem, and even reset the Airport to make sure it was not just the connection.
    At a complete loss as to any other ideas to try to get her up and running again. No way am I going anywhere near an Apple Store with all the iPad hype that is out right now!!!!!!

Maybe you are looking for