Packageorg.openvideoplayer.rss
Classpublic class Media
InheritanceMedia Inheritance flash.events.EventDispatcher

The Media class holds the data referenced by the media namespace in a RSS file. This class is used by the XxxMediaRSS class and is not invoked directly by end users.

The properties in this class (with the exception of ContentArray) are defined by the Media RSS specification which can be viewed at http://search.yahoo.com/mrss.



Public Properties
 PropertyDefined By
  contentArray : Array
An array of ContentTO objects.
Media
  copyright : String
Media
  description : String
Media
  keywords : String
Media
  thumbnail : ThumbnailTO
The first item in the thumbnailArray.
Media
  thumbnailArray : Array
An array of ThumnbnailTO objects, since it is permissable for RSS feeds to reference multiple thumbnails for each content item.
Media
  title : String
Media
Public Methods
 MethodDefined By
  
Constructor
Media
  
Returns the ContentTO object at the requested index.
Media
Property Detail
contentArrayproperty
public var contentArray:Array

An array of ContentTO objects. If the parent item contains a group tag, then each content source within that group tag is added to this array. For items without a group tag, the array length will be 1 and it will a hold a single entry which is the content tag contained within that item. Use the utility function getContentAt(index:uint) to retrieve a specific ContentTO object with the correct type.

copyrightproperty 
public var copyright:String

descriptionproperty 
public var description:String

keywordsproperty 
public var keywords:String

thumbnailproperty 
public var thumbnail:ThumbnailTO

The first item in the thumbnailArray. Provided for backwards compatibility.

thumbnailArrayproperty 
public var thumbnailArray:Array

An array of ThumnbnailTO objects, since it is permissable for RSS feeds to reference multiple thumbnails for each content item.

titleproperty 
public var title:String

Constructor Detail
Media()Constructor
public function Media()

Constructor

Method Detail
getContentAt()method
public function getContentAt(index:uint):ContentTO

Returns the ContentTO object at the requested index.

Parameters

index:uint

Returns
ContentTO

See also