SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    Denmark
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Remove controls from swfobject

    I am using the following code to write a flash player which can play a .flv file, and it works fine. However, I want to remove the controls, so there will only be a play button on the middle of the film. I successfully removed the controls when showing the player initially by setting the display height to the same as the height. However, when I hover over the player, it will show up inline. How can I avoid that?

    Code:
    function showVideo(url, image)
    {
        var s1 = new SWFObject("flvplayer.swf", "single", "320", "499", "7");
        s1.addParam("allowfullscreen", "false");
        s1.addParam("wmode", "transparent");
        s1.addVariable("file", url);
        s1.addVariable("image", image);
        s1.addVariable("displayheight","499");
        s1.addVariable("width", "320");
        s1.addVariable("height", "499");
        s1.addVariable("showdigits","false");
        s1.addVariable("largecontrols","false");
        s1.addVariable("showcontrols","false");
        s1.addVariable("showvolume","false");
        s1.addVariable("autostart","true");
        s1.addVariable("overstretch","fit");
        s1.write("video-placeholder");
    }

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,156
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    I couldn't find an example in my files, but AFAIK there is a "controls" parameter (default true), that you could set to false.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •