jw-player的应用 在IE中的应用

2011-07-07 12:18:43 by 【6yang】, 416 visits, 收藏 | 返回

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v4/12203/supported-player-embed-methods

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v4/19/javascript-example-guide

 

Embed Tag

In cases where a javascript embed method is not possible (e.g. if your CMS does not allow javascript inclusion), the player can be embedded using plain HTML.

There are various combinations of tags for embedding a SWF player:

  • A single <embed> tag (for IE + other browsers).
  • An <object> tag with nested <embed> tag (the first one for IE, the second for other browsers).
  • An <object> tag with nested <object> tag (the first one for IE, the second for other browsers).

We recommend using the single <embed> tag. This works in all current-day browsers (including IE6) and provides the shortest codes.

Here is an example embed code that does exactly the same as the SWFObject example above:

<embed   flashvars="file=/data/bbb.mp4&autostart=true"    allowfullscreen="true"
allowscripaccess="always"   id="player1"   name="player1"   src="player.swf"    width="480"   height="270" />

As you can see, most of the data of the SWFObject embed is also in here:

分享到:
share

    图片原图

    loading

    loading