How to get width & height of flash file & video

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ameen
    Member
    • Aug 2004
    • 34
    • 3.0.3

    How to get width & height of flash file & video

    I have a flash & video upload system & it is working fine .. but added two fields for the user to write the width & height of the file uploaded .. i would like to remove these two fields & use a some sort o function to detect the width & height of flash file & video automatically.

    Is there a function to detect the width & height of:
    1- flash file (swf)
    2- video (wmv .. etc)

    ?
  • Reeve of Shinra
    Senior Member
    • Sep 2001
    • 4325
    • 4.0.0

    #2
    I believe if you leave it blank, the users browser will automatically size it.
    Plan, Do, Check, Act!

    Comment

    • ameen
      Member
      • Aug 2004
      • 34
      • 3.0.3

      #3
      I think it will work only with images .. but with flash & video it will create problem in the view

      Note: I found a function can be used with the flash,but for the video not yet.
      -----
      list($width, $height, $type, $attr) = getimagesize("image_name.jpg");
      echo
      "Image width " .$width;
      echo
      "<BR>";
      echo
      "Image height " .$height;
      echo
      "<BR>";
      echo
      "Image type " .$type;
      echo
      "<BR>";
      echo
      "Attribute " .$attr;
      TYPES:
      1 = GIF
      5 = PSD
      9 = JPC
      13 = SWC
      2 = JPG
      6 = BMP
      10 = JP2
      14 = IFF
      3 = PNG
      7 = TIFF(intel byte order)
      11 = JPX
      15 = WBMP
      4 = SWF
      8 = TIFF(motorola byte order)
      12 = JB2
      16 = XBM

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...