Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorMichael
    • CommentTimeJan 21st 2008
     
    Hey all,

    I have been working on this for several days reading and asking questions on other forums to try to get help on passing variables into the page where my swf is embedded to get the video player to play a certain video that's in the playlist beside the video player. I have read several different tutorials, but I am still not understanding how it is I get the variables to tell the video player to play a specific video on the playlist. Furthermore, I don't understand what I am suppose to put in the so.addVariable("what do I put here?", "and here?") code. After that I don't understand what I am suppose to put at the end of the link that opens the page where my swf is embedded, you know, www.myurl.com/blah/blahblah.html?what do i put here=what do i put here

    I hope that is clear enough for someone to help me out, because I really need the help.

    Thanks,
    Michael
    • CommentAuthorphilip
    • CommentTimeJan 22nd 2008
     
    hi michael

    if your SWF has been configured to handle variables, you can load them into SWFObject when it is embedded to the page.

    for instance, if your swf has been set up to display the variable "myName", when you embed the SWF, you can use addVariable("myName", "michael"); to make the name 'michael' show up.

    flash-based video players use this method to get the location of the videos they should be playing.
    addVariable("video1", "myfiles/video1.flv");

    or maybe a playlist location:
    addVariable("playlist", "myvideos/playlist.xml");

    but, alas, this is a SWFObject forum, not a video player forum (SWFobject is only used to add the SWF to your webpage, it isn't part of the video player). i suggest you check out the documentation/forums for whichever video player you're using. this one is probably the most popular: http://www.jeroenwijering.com/?item=JW_FLV_Media_Player

    advice: the location of the file being passed via addVariable is usually relative to the location of the player SWF file, NOT the location of the html page the player is embedded in. this is a problem lots of people run into. the easiest way to deal with sorting out the paths is to use absolute paths (http://www.domain.com/myfile.flv).

    - philip