Fb:flv
From Facebook Developer Wiki
Contents |
Description
Renders a Flash-based FLV player that can stream arbitrary FLV (video/audio) files on the page.
Attributes
| Required | Name | Type | Description | |
| required | src | string | The URL of the FLV file. The URL must be absolute. | |
|---|---|---|---|---|
| optional | height | int | The height of the video container in pixels or percentage. | |
| width | int | The width of the video container in pixels or percentage. | ||
| title | string | The name of the video. The title appears on the movie's control bar. | ||
| scale | string | A Flash attribute. How to scale the movie within the container. Specify one of showall (displays the whole movie, overriding container dimensions while maintaining the original aspect ratio of the container), noborder (movie fills the container, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the container), or exactfit (movie dimensions match container dimensions, which may result in distortion). (Default value is showall.) | ||
| img | string | The URL of the image displayed behind the play button before the movie starts playing. The URL must be absolute. | ||
| align | string | A Flash attribute. Determines where the FLV file is aligned within the container. Specify l (left), r (right), t (top), b (bottom). | ||
| salign | string | A Flash attribute. Specifies where the scaled FLV file appears within the container based on its width and height settings. Specify l (left), r (right), t (top), b (bottom). | ||
| color | string | The hex value for background color while the movie plays. (Default value is #000000.) |
Examples
<fb:flv src='http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv' width='400' height='300' title='my movie' color='#FFBB00' salign='r' img='http://www.example.com/test.jpg' scale='showall'/>
Notes
- Currently, Facebook requires a minimum Flash Player version of either 9.0.159.0 or 10.0.22.87 for all <fb:flv> tags. When Adobe discontinues security updates for Flash 9 (Flash 10 is unsupported on Windows 98 and ME), it will no longer be supported anywhere on Facebook.
- If you want to call the Facebook Platform API from a Flash application (using the ActionScript 3.0 Library for Facebook Platform), you need to render your Flash object with fb:swf or fb:fbjs-bridge.
- The file supplied must already be encoded as FLV – you cannot pass an .avi file into the player, for example.
- When using fb:flv and Internet Explorer, width and height may need to be specified. Otherwise the Flash object renders as a single grey pixel.
- This tag currently best supports 4:3 videos. The static img behind the play button is distorted, as is the player, when 16:9 video is used.
- png images do not seem to work in the img attribute but jpgs do.
