Results 1 to 8 of 8

Thread: Markup Validation problem with embedded flash video

  1. #1
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Markup Validation problem with embedded flash video

    I'm having problems validating the code for a page to which I've just embedded a flash video.

    The page is http://www.stairliftstoday.co.uk and the code embedded code is:

    <object id="flashObj" width="486" height="412" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" bgcolor="#FFFFFF" flashVars="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" base="http://admin.brightcove.com" name="flashObj" width="486" height="412" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>

    Would appreciate some advice about how resolve this problem. Unfortunately I know virtually nothing about flash, so please keep it as simple as poss.

    Thanks.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    it is the <embed> tags that do not validate. It should be possible to "embed" the flash without this tag.
    Take a look at this post as inspiration
    http://www.dynamicdrive.com/forums/blog.php?b=36

  3. #3
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply. Took a look at the post but can't work out how rewrite my code without the embed tags and still make it work. Any ideas?

  4. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I am trying something like this
    Code:
    <object type="application/x-shockwave-flash" data="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" width="486" height="412">
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" />
    <param name="flashVars" value="playerMode=embedded" />
    <param name="wmode" value="transparent" />
    </object>
    but I must admit it's not really working for me. Seems like I can't access the video from another domain. You could try it though, but make a backup of your page first. Anybody with another suggestion ?

  5. #5
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Hmm. The following works but it's still not valid HTML 4.01:

    <object
    type="application/x-shockwave-flash"
    data="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1"
    width="486"
    height="412"
    >
    <param name="allowFullScreen" value="true" >
    <param name="allowScriptAccess" value="always" >
    <param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" >
    <param name="flashVars" value="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" >
    <param name="wmode" value="transparent" >
    <param name="classid" value="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    </object>


    Now it's just this line that's not valid:
    <param name="flashVars" value="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" >

    (http://validator.w3.org/check?uri=ht...alidator%2F1.1)

    Anyone got any more ideas?

  6. #6
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    try this
    Code:
    <object type="application/x-shockwave-flash" data="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" width="486" height="412">
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" />
    <param name="flashVars" value="videoId=96477301001&amp;playerID=25435957001&amp;domain=embed&amp;dynamicStreaming=true" />
    <param name="wmode" value="transparent" />
    </object>
    changing ( encoding ) the ampersands
    It seems to work ( i hope)

  7. The Following User Says Thank You to azoomer For This Useful Post:

    robertsaunders (08-04-2010)

  8. #7
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Yes, thanks. Had just tried that when your message came through.
    Got there in the end.

    Thanks.

  9. #8
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Great

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
  •