Clip

Kind of class:public class
Package:com.smartfoxserver.v2.redbox.data
Inherits from:none
Author:The gotoAndPlay() Team
http://www.smartfoxserver.com
Classpath:com.smartfoxserver.v2.redbox.data.Clip
File last modified:Thursday, 05 May 2011, 09:51:56
The Clip class is a container for a/v clip data.

Summary


Instance properties
  • id : String
    • The clip id.
  • username : String
    • The clip owner.
  • properties : Object
    • The properties associated with the clip.
  • rtmpURL : String
    • The full RMTP url of the clip.
  • size : int
    • The size in bytes of the clip.
  • lastModified : String
    • The date in which the clip was last modified.
Instance methods
  • toString : String
    • Trace clip attributes (for debug purposes).

Instance properties

id

public id:String
(read)

The clip id.
It corresponds to the .flv and .data files names, without the extension.

lastModified

public lastModified:String
(read)

The date in which the clip was last modified.
The default date format is "dd/MM/yyyy hh:mm:ss"; it can be modified in the server-side redbox.properties file.

properties

public properties:Object
(read)

The properties associated with the clip.
This object contains all the properties retrieved from the .prop file which accompanies the .flv file; only the "username" property is excluded, as it is explicitly declared.
NOTE: the RedBox server-side extension considers valid .flv files only those which are accompanied by a .prop file, even if it's empty.

rtmpURL

public rtmpURL:String
(read)

The full RMTP url of the clip.
The RMTP url can be used with specific client-side video components like the Flex VideoDisplay control.

size

public size:int
(read)

The size in bytes of the clip.

username

public username:String
(read)

The clip owner.
This property contains the name of the user who submitted the clip.
NOTE: only the clip owner can delete or update a clip.

Instance methods

toString

public function toString (
) : String

Trace clip attributes (for debug purposes).
Returns:
  • A string containing the clip's attributes.