Advanced Search

View RSS Feed

molendijk

HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's

Rating: 9 votes, 2.33 average.
Perhaps many of you already knew this. I didn't.
HTML 4.01 Strict Video Include:
Code:
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="position:absolute;left:20%; top:20%; height:80%;width:80%">
<![endif]-->
<!--[if !IE]><!-->
<object type="application/x-shockwave-flash" style="position:absolute;left:20%; top:20%; height:80%;width:80%" data="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051" >
<!--<![endif]-->
<param name="movie" value="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051" >
<param name="allowFullScreen" value="true" >
<param name="wmode" value="transparent" >
</object>
Chopping parts from YouTube video's. Including:
Code:
http://swf.tubechop.com/tubechop.swf?vurl=YouTube_ID&amp;start=some_value&amp;end=some_value
Chopping parts from YouTube video's. Direct URL:
Code:
http://swf.tubechop.com/tubechop.swf?vurl=YouTube_ID&start=some_value&end=some_value
Demo and explanations HERE.
===
Arie Molendijk

Submit "HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's" to del.icio.us Submit "HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's" to StumbleUpon Submit "HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's" to Google Submit "HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's" to Digg

Updated 10-02-2009 at 01:29 PM by molendijk (Observation made by jscheuer about title)

Tags: add, michal Add / Edit Tags
Categories
Post a JavaScript , Flash related

Comments

  1. jscheuer1's Avatar
    Poor choice of title. Although I know you probably didn't mean it like that, the embed tag is not valid in HTML 4.01 Strict.
  2. molendijk's Avatar
    John, you're right about the title. I should have chosen something like HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's.
    Anyhow, the point of my code is precisely that we don't need the embed tag for including video's. That's why I put the WC3HTML4.01-icon in the demo.
    ===
    Arie.
  3. molendijk's Avatar
    I found out how we can force chopped video's to start playing automatically. Just add:
    Code:
    <param name="flashvars" value="autoplay=true" >
    (It's not in the demo).
    ===
    Arie.
    Updated 10-02-2009 at 12:05 PM by molendijk (Added a feature to chopped video's)
  4. smansakra's Avatar
    i like what you write here
  5. molendijk's Avatar
    I put the <param name="flashvars" value="autoplay=true" > in the demo.
    ===
    Arie.
  6. jscheuer1's Avatar
    I was just using this code in an actual job. Not the chopped stuff, but the valid cross browser tag. I discovered that these highlighted parts don't really seem to be required:

    Code:
    <!--[if IE]>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="position:absolute;left:20%; top:20%; height:80%;width:80%">
    <![endif]-->
    <!--[if !IE]><!-->
    <object type="application/x-shockwave-flash" style="position:absolute;left:20%; top:20%; height:80%;width:80%" data="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051" >
    <!--<![endif]-->
    <param name="movie" value="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051" >
    <param name="allowFullScreen" value="true" >
    <param name="wmode" value="transparent" >
    </object>
    They're for getting it to work in IE while at the same time not making others barf, right? Well without them it worked fine in IE (5.5 thru 8), Opera (10), Firefox (3), Chrome (4), and Safari (4 Win).

    Additionally, if Flash wasn't installed in IE, and you use those highlighted parts, you end up with a stray fragment of a comment, something like:

    <!--<![endif]
    showing up on the page.
  7. jscheuer1's Avatar
    Oh, and another thing, I think this is a TOS violation. From the YouTube TOS:

    You agree not to access User Submissions (defined below) or YouTube Content through any technology or means other than the video playback pages of the Website itself, the YouTube Embeddable Player, or other explicitly authorized means YouTube may designate.

    If you use the YouTube Embeddable Player on your website, you must include a prominent link back to the YouTube website on the pages containing the Embeddable Player and you may not modify, build upon, or block any portion of the Embeddable Player in any way.
  8. molendijk's Avatar
    I'll react to the last two comments (by jscheuer) as soon as I can. At this moment, I'm an indirect victim of the ash cloud.
    ===
    Arie.
  9. molendijk's Avatar
    Quote Originally Posted by jscheuer1
    I was just using this code in an actual job. Not the chopped stuff, but the valid cross browser tag. I discovered that these highlighted parts don't really seem to be required:
    Code:
    <!--[if IE]>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="position:absolute;left:20%; top:20%; height:80%;width:80%">
    <![endif]-->
    <!--[if !IE]><!-->
    <object type="application/x-shockwave-flash" style="position:absolute;left:20%; top:20%; height:80%;width:80%" data="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051" >
    <!--<![endif]-->
    <param name="movie" value="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051" >
    <param name="allowFullScreen" value="true" >
    <param name="wmode" value="transparent" >
    </object>
    Thanks! You seem to be right there!
    Quote Originally Posted by jscheuer1
    Oh, and another thing, I think this is a TOS violation.
    But then the whole service provided by http://tubechop.com is a violation of the TouTube TOS!(?).
    ===
    Arie.