embedding video for a portfolio

Discussion in 'HTML & Website Design' started by FunkyFresh, Mar 19, 2008.

  1. #1
    what is the best way to embed video in website, and how as well?
     
    FunkyFresh, Mar 19, 2008 IP
  2. Marc Fraser

    Marc Fraser Peon

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The easiest way to do this is to create your video in Flash. You can embed this on your page like so:

    <object width="550" height="400">
    <param name="movie" value="someflashfile.swf">
    <embed src="someflashfile.swf" width="550" height="400">
    </embed>
    </object> 
    
    HTML:
     
    Marc Fraser, Mar 19, 2008 IP
  3. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    does it have to be in .swf or can it be in .flv?
     
    FunkyFresh, Mar 20, 2008 IP
  4. Marc Fraser

    Marc Fraser Peon

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I am sure both will do the same job.
     
    Marc Fraser, Mar 20, 2008 IP
  5. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I tried it but that code doesnt seem to work :(
     
    FunkyFresh, Mar 20, 2008 IP
  6. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #6
    <object width="550" height="400">
    <param name="movie" value="someflashfile.swf">
    <embed src="someflashfile.swf" width="550" height="400">
    </embed>
    </object>
    Code (markup):
    Change "someflashfile.swf" to your flash name.

    100% work.

    Or use export as html+flash and copy the code from html.


    For .flv use a player.


    PS:Sorry for my bed english
     
    ExtremeData, Mar 20, 2008 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Bear in mind though that the EMBED element is not "real" HTML - it's just a proprietary tag.
     
    Dan Schulz, Mar 20, 2008 IP
  8. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    so I would need a special tag to make it work?
     
    FunkyFresh, Mar 20, 2008 IP
  9. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #9
    I use this and work for me.

    <body>
    ....................
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="450" width="450"><param name="width" value="450"><param name="height" value="450"><param name="src" value="http://site.com/flash.swf"><embed type="application/x-shockwave-flash" src="http://site.com/flash.swf" height="450" width="450"></object>
    Code (markup):
    ...................
    </body>
     
    ExtremeData, Mar 20, 2008 IP
  10. developr

    developr Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You cannot embed a FLV file in the Active X object code. You must use a SWF file that can play the FLV files. There is a really cool open source player you can use that is fully skinnable called Flow Player (http://www.flowplayer.org). Check it out and let me know what you think.

    If you just embed any Active X into your pages using HTML only, IE users will have to "click to activate the control". The proper way is to call it using JavaScript in a external JS file. For embedding SWF files, your best bet is to use SWFObject which can detect the Flash player and properly embed your file.

    http://blog.deconcept.com/swfobject/
     
    developr, Mar 21, 2008 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I personally use the Flash Satay, even though it's incapable of detecting the Flash player version (though that can theoretically be done by embedding some ActionScript into the container SWF file - I know it was possible in Flash 4) and the JAWS screen reader was unable to "read" it, but that was back in 2005. I haven't heard anything to the contrary within the past year or two so I'd say it's safe to bet that the issue remains. :(

    http://www.alistapart.com/articles/flashsatay (note that the final example has a syntax error - it can be fixed if you copy/paste the example code snippets from the article rather than the final example)
     
    Dan Schulz, Mar 21, 2008 IP
  12. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I tried but that only works with SWF files not flv, I tried replacing with .flv files but it didnt work.
    one downside is the fact that it automatically plays so I will have problems if there are more than one video

    I tried a couple of the codes as I didnt know whcih one would work, and found out that it automatically plays so I will also have problems if there are more than one video


    I just downloaded this, will give it a try and let you know if it works
     
    FunkyFresh, Mar 21, 2008 IP