How to dynamically display .flv files in website

I'm using a JSP for my interface.?? In the webpage, I want to pass a java variable, which holds the url to the video that was retrieved from the database, to the flash player script to dynamically determine which video to play.?? For example, this code in the page will play a movie successfully:
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','706','height','633','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_Co mponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPlay=true&autoRewind= false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage',' http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="706" height="633" id="FLVPlayer">
?????????????????????????????? <param name="movie" value="FLVPlayer_Progressive.swf" />
?????????????????????????????? <param name="salign" value="lt" />
?????????????????????????????? <param name="quality" value="high" />
?????????????????????????????? <param name="scale" value="noscale" />
?????????????????????????????? <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPlay=tr ue&autoRewind=false" />
?????????????????????????????? <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPla y=true&autoRewind=false" quality="high" scale="noscale" width="706" height="633" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />??????????????????????????
</object></noscript></td>
But this code will not play the movie successfully:
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','706','height','633','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','<%= flashVars %>','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="706" height="633" id="FLVPlayer">
?????????????????????????????? <param name="movie" value="FLVPlayer_Progressive.swf" />
?????????????????????????????? <param name="salign" value="lt" />
?????????????????????????????? <param name="quality" value="high" />
?????????????????????????????? <param name="scale" value="noscale" />
?????????????????????????????? <param name="FlashVars" value="<%= flashVars %>" />
?????????????????????????????? <embed src="FLVPlayer_Progressive.swf" flashvars="<%= flashVars %>" quality="high" scale="noscale" width="706" height="633" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />??????????????????????????
</object></noscript></td>
The only difference in the two is that in the second, I use a java variable to set the flash Variables. The variable I use is <%= flashVars %>?? which is equal to: &MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video2&autoPlay=false&autoRe wind=false
When I view the resulting page source code after building and running the site, The source code is exactly the same for both of them yet one works and one doesn't.?? Any help would be greatly appreciated!

I've been searching google all day to figure this one out.  I'm not simply trying to play a video, I can already do that... I'm retrieving the location of the video from the database and trying to pass it as an argument to the player, no different than if I was dynamically displaying an image or some text. For some reason I'm not able to do this.

Similar Messages

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • HOW TO TURN A .FLV FILE INTO AN SWF IN ADOBE?

    Questions,,,,,
    1. In a flash slide,,,,,How do I add effects to the movie,
    like an intro black curtain coming up from the top and closing down
    on the bottom,,,,,,to make it look more
    professional?,,,,,,,,,,,like this video-SUMMER NIGHTS-
    http://music.yahoo.com/ar-289037-videos--Lil-Rob
    2. How do I convert .flv files to swf files so I can upload
    them to my site,,,,,because thats all it excepts?

    Peace,
    I will try to answer both questions. You abviously know how
    to creat an .FLV file. when you load you files on the server you
    must place the .SWF and the .FLV in the same folder. With that you
    will create your link to the .SWF file.
    In regards to the other issue. I am incline to think that
    what you see is a video effect and not a Flash one. If I where to
    try this I would upload my video into the time line and add a new
    layor to hold my effect. This should do it. But it will of course
    make you .SWF larger than if you did the effect in a video editing
    program.
    I hope I helped some how.
    Peace
    Khnumtemu

  • How to play a FLV file located in a second FMS?

    How to play a FLV file located in a second FMS not directly accessible by the flash client?
    - I am publishing an audio stream from the flash client to a FMS;
    - This FMS then publishes the stream to a second FMS, which records the stream to a FLV;
    How can I play in the client the FLV audio file that I recorded in the second FMS?
    - The first FMS is accessible by the flash client, but the second FMS is only accessible by the first FMS.
    thanks in advance
    fabio

    Answer in http://www.flashcomguru.com/forum/forum_posts.asp?TID=4276&PN=1&TPN=1

  • How to import a flv-file (downloaded form YouTube) into iMovie?

    How to import a flv-file (downloaded form YouTube) into iMovie?
    It needs to be converted to which format?
    Suggestions how to do that?
    Thanks.
    Mattie
    The Netherlands

    http://perian.org (free).
    QuickTime Player Pro ($30).

  • Difficulty using hardcoded swf file to display flv files

    Hi,
    I have created a swf player using the flvplayback component to display flv files. The document in flash is 275 pixels wide by 130px pixels long. I also have my video component (flyPlayBack) set at 275px by 100px to display the playback controls. My flash code is my simple like the following
    import fl.video.*;
    var myflashvars:Object = new Object();
    myflashvars = this.loaderInfo.parameters;
    var fullVideoPath:String = "";
    for (var item:String in myflashvars)
        if(item == "filename")
            fullVideoPath = myflashvars[item];
    videoPlayer.source = fullVideoPath;
    So using the above it should play the video and does.
    (1) First question is I tried playing 2 different videos in my html code.
    <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='275' height='130'>
    <param name='allowFullScreen' value='true' />
    <param name='movie' value='moviePlayer.swf' />
    <param name='wmode' value='window' />
    <param name='scale' value='showall' />
    <param name='flashvars' value='filename=sample_sorenson2.flv' />
    <embed width='275' height='130' allowFullScreen='true' type='application/x-shockwave-flash' src='moviePlayer.swf' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='window' scale='showall' flashvars='filename=sample_sorenson2.flv' />
    </object>
    Just like above works fine. But I tried playing 2 different videos, the first video image is below
    The second video image is below
    I notice the video sizes are different but not the video player size, is this to do a thing called aspect ratio? Is it possible to change this using my simple actionscript code above?
    (2) I also tried the full screen button but the video only takes up part of the screen, as shown below. sorry about image size.
    Is this a common occurance, is there a way to access the buttons on the flyplayback instance using actionscript and overridding the behaviour? Any advice upon my current situation would be much appreciated. Thanks.

    To me the first two screen shots look like you set the wrong aspect ratio/screen size. I don't see any scaling of the player at all... only black bars on sides because the video didn't fill the entire video player display.
    And yes, there is a much more powerful and versatile means of displaying Flash video, called NetStream. You can design your own player and have better control over the display. I always use NetStream rather than the FLVPlayback.
    But if you are having sizing issues introduced during the creation of the video... then the player itself is not necessarily going to fix that. You need to know the correct display size and aspect ratio for each video you plan to display.
    However, you can somewhat adjust the display size for each video using some actionscript... as you see here:
    http://www.cataractvideo.com/cv/physicians/cataract_surgery.html
    an example of a larger (high brandwidth) version and a smaller (lower bandwidth) version... depending on which button you click.
    More on NetStream:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l
    Here is a great tutorial on building your own NetStream video player:
    http://gotoandlearn.com/
    scroll to the very bottom of the page "Video Basics"
    Best of luck!
    Adninjastrator

  • How can we display svg files in flex at runtime using FileReference? Actually we are trying to load

    how can we display svg files in flex at runtime using FileReference? Actually we are trying to load the svg file from the  local directory.

    This should give you the JRE version;
    System.out.println(System.getproperty("java.version"));
    and this should tell you where its running from;
    System.out.println(System.getProperty("java.home"));
    There are loads more system properties, check the JDK documentation for java.lang.System and look at the getProperties method which has a list.
    Stewart

  • How do we display .doc files or .pdf files inside flex containers like Panel or Canvas?

    How do we display .doc files or .pdf files inside flex containers like Panel or Canvas? (i am talking about Flex web browser application and NOT air)
    thanks in advance.

    Perhaps I was not clear...
    We have a Word doc.
    We want to create a PDF doc from it.
    We want, in Word/VBA, to add content (annotation/text note=sticky) to the PDF from Word via VBA macro.
    What is the best way to do this?
    1. Use a VBA call to the PDF doc to execute the AcroJS (we would pass the content, location, etc for the note in the call) - what is this VBA call that will execute AcroJS in an PDF doc?
    2. Use AIC OLE objects to access the PDF doc.
    From your last answer - it sounds like I cannot add the annotation to the PDF from the Word VBA macro - is that correct?
    Our content is already in the Word doc - We want to execute a macro in Word that will add content to the PDF doc  - can this not be done in Word?

  • How do I import .flv files to Adobe Premiere 12?

    How do I import .flv files to Adobe Premiere 12?
    thanks,

    XTimeTravelers
    If the details are as stated in your latest post, there are no inconsistencies here between us. Misunderstandings, probably.
    Photoshop Elements 11 and Premiere Elements 11 are standalone programs. Each comes with the same (but its own) Elements Organizer 11 and each with its own Editor section. When a given version (Photoshop Elements 12 and Premiere Elements 12 for example) is on the same computer, that version shares the same Elements Organizer catalog. All that being said....
    All you are saying is that you can import a .flv file into the Elements Organizer 11 that came with Photoshop Elements 11.
    a. Photoshop Elements 11 is a photo editor and will not support video (flv or otherwise). We agree on that.
    b. Elements Organizer 11 that comes with Photoshop Elements 11 does support the import of .flv files there for organizational purposes. And, you should be able to playback the .flv file in the Elements Organizer 11 (you may need VLC player, not sure on that requirement...but it is possible). You can do the same for Elements Organizer 12.
    All we are saying is the you cannot import a .flv file into the Premiere Elements Editor, be it for Premiere Elements Editor 11 or 12. And, you have not said that you have. All you are talking about is your experiences in the Elements Organizer 11 which should be the same for the Elements Organizer 12.
    So, we are in agreement on everything.
    Summary:
    You cannot import a .flv file into the Photoshop Elements Editor (any version) because it is a photo editor. You never claimed you did.
    You cannot import a .flv file into the Premiere Elements Editor (any version) even though it is a video editor. This particular video editor (11 or 12) does not support .flv.
    The Elements Organizer of these programs is another story where it is possible to import the .flv for organizational purposes and even playback.
    Does that make it all come together for you?
    Please review the above and then let me know if I am out of sync on what you wrote and how I have interpreted it.
    Thanks.
    ATR

  • How to protect your .flv files on a server?

    So I have a .swf which references playback of some .flv files on my server....Is there a way to protect these .flv files from access through any means other than with the .swf controls I have created?  Currently I can simply type in the url location of the .flv files and download them completely circumventing the .swf if I so choose, which is not really how I would like them to exist...
    I would far prefer that they are only accesible through the .swf.
    Is there any way to do this....I know it's not a Dreamweaver specific question, or at least I don't think it is...but I would be interested in any thoughts.
    Thanks,
    James Hooey

    Lynda.com uses either Quicktime or Flash...they added Flash playback of movies within a new Flash Player around a year ago. I'm a member of Lynda and use their services all the time.
    When I was trying a flash grabber it was on these Flash based tutorial videos.
    Just thought you would like to know that Lynda does have a Flash option and the grabber does not work with it.
    My initial question is not in any way about me grabbing or copying Flash movies anyway, but rather that I want to protect my own Flash based movies on my own website.
    Thanks,
    All the best,
    James Hooey

  • Display FLV file on web page - what code is needed

    In Premiere Elements 7 I used the share option to make a .FLV file to place on a web page. What code is needed to display this file? What other steps are needed to have the file play on a web page? I get the ides that I need to embed a played on my web page, how do I do that? I find no help in the premiere elements help file.
    thanks
    Al

    Maybe you should ask in the Premiere Elements forum http://forums.adobe.com/community/premiere/premiere_elements ?

  • Cue points in dynamically loaded flv file through netstream

    How can i add cue points to a playlist of flv files which are
    loaded dynamically through an xml files. All the sources i have
    found over the internet are using flvplayback control :(

    Lestyn, thanks for the verification.  Took me a frantic 4 hours to arrive at the same conclusion.  Do these people test their software???
    Maddening.

  • How do i get flv files in premiere elements

    how can i get the premiere elements to use flv. files?

    verdanexi
    What version of Premiere Elements are you using and on what computer operating system it is running?
    In the absence of that information, the following is a generalized no can do answer.
    Although files with flv file extensions can be exported from Premiere Elements, you cannot import flv files into Premiere Elements.
    There used to be a time when earlier versions could use a Moyea plug-in to force Premiere Elements to accept flv files.
    how to edit .flv files
    Your flv are going to have to be converted into another format before import into Premiere Elements if you want to use Premiere Elements as your video editor.
    http://www.pazera-software.com/products/flv-to-avi-converter/
    The link is provided for informational rather than promotional reason. I have not used it, but I have seen reports that it is free and works well for flv to avi.
    ATR

  • HT3775 how I get an .flv file to play on my Mac?

    How can I get an .flv file to play on my Mac?

    If all you wan't to do is view the .flv video file and do nothing else to it, video players like VLC and Niceplayer will do the trick. Installing the PERIAN extension to Quicktime will also do the trick.
    http://perian.org/
    http://www.videolan.org/vlc/
    http://code.google.com/p/niceplayer/

  • How do I convert .flv files to an audio (.mp3) file and how do I rip my CDs

    I'm a recent convert from Windows. I doubt if this is the right place to post this question but I have no idea which discussion group is correct.
    I did a search and found nothing on this topic.
    I don't even know if Macs use .mp3 files or some other format.
    I'm not even sure how to play my old .mp3 files or if I have to convert them to something else.
    I'll got hundreds of old CD's that I ripped on my previous computer so I guess I need to that again. Where do I start to do that.

    What happens if you insert one of your disk, right click on it's desktop image and then select "Open With" iTunes or QuickTime?
    I did a Google Search: [.flv file converter for mac|http://www.google.com/custom?hl=en&client=pub-6263300333013957&cof=FORID%3A 1%3BGL%3A1%3BLBGC%3A336699%3BLC%3A%230000ff%3BVLC%3A%23663399%3BGFNT%3A%230000ff %3BGIMP%3A%230000ff%3BDIV%3A%23336699%3B&ie=ISO-8859-1&oe=ISO-8859-1&q=convert.flv+files+formac&btnG=Search] and found tons of cheap and free apps.

Maybe you are looking for