dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Embed video(is my code correct)

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    8

    Embed video(is my code correct)

    How can i ebmbed a video streaming in my site? I use this code but some users complain that they cant see the videos playing. What should I do?
    This is the code i use:
    <embed width="400" height="350" type="application/x-mplayer2" name="MediaPlayer" pluginspage="http://www.microsoft.com/wi… src="My Media src here" autostart="true" autosize="true" showcontrols="1" showdisplay="0" volume="100" enablecontextmenu="0" stretchtofit="false" showstatusbar="1">

    Could it be something to do with IE and Firefox? Or maybe some codec thing that some people have them and others not? Is my code not correct or compatible with all browsers?

    Thank you for your help.

  2. #2
    Senior Member
    Join Date
    Sep 2010
    Posts
    324
    Forget using anything that has the <embed>....One option is this:
    Code:
    <object id="myflash"type="application/x-shockwave-flash" data="flash.swf">
    <param name="movie" value="flash.swf">
    <param name="SomeOtherParam" value="ItsValue">
    </object>
    An better even bet is to use swfobject:
    http://code.google.com/p/swfobject/
    Best wishes,
    Video Man

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center