Ignore:
Timestamp:
04/29/11 03:19:02 (2 years ago)
Author:
jeroen
Message:

updated sharing docs with section that talks iframe embeds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/sharing/v5/doc/embedcodes.html

    r1749 r1773  
    8282  allowfullscreen="true" 
    8383  height="270" 
    84   src="http://server.com/players/12345.swf" 
     84  src="http://example.com/videos/12345.swf" 
    8585  width="480" 
    8686/> 
     
    133133</ul> 
    134134 
     135<h2>Iframes</h2> 
     136 
     137<p>Since HTML5 video is used more and more, the &lt;embed&gt; tag is not the ideal way to share content. An emerging alternative is the &lt;iframe&gt; tag. With an iframe, it is possible to offer device-specific embed codes, while still keeping the code short. Example:</p> 
     138 
     139<pre> 
     140&lt;iframe  
     141  src="http://example.com/videos/12345/"  
     142  width="480"  
     143  height="300"  
     144  frameborder="0"  
     145  scrolling="auto" 
     146&gt;&lt;/iframe&gt; 
     147</pre> 
     148 
     149<p>This example embeds an HTML file (<em>http://example.com/videos/12345/</em>) in a 480x300 pixels frame without borders or scrollbars. The HTML file itself can contain a full <a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/15995/jw-embedder-reference-guide">JW Embedder setup</a>, including fallbacks to various devices. If the player inside the HTML file is also 480x300 pixels,  
     150users will not see the player is actually loaded into an iframe.</p> 
     151 
     152<p>In terms of redirecting the <em>12345</em> and doing the database lookup, this example can work exactly like the redirected &lt;embed&gt; example from the previous section.</p> 
Note: See TracChangeset for help on using the changeset viewer.