Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Class: Video

Source Location: /lib/class/video.class.php

Class Overview

database_object
   |
   --Video

database_object


Implements interfaces:

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 22]
database_object

This is a general object that is extended by all of the basic database based objects in ampache. It attempts to do some standard caching for all of the objects to cut down on the database calls




[ Top ]


Class Variables

$file =

[line 26]



Tags:

access:  public

Type:   mixed


[ Top ]

$id =

[line 24]



Tags:

access:  public

Type:   mixed


[ Top ]

$title =

[line 25]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method play_url [line 74]

static void play_url( $oid, [ $sid = ''], [ $force_http = ''])

play_url

This returns a "PLAY" url for the video in question here, this currently feels a little like a hack, might need to adjust it in the future




Tags:

access:  public



Implementation of:
media::play_url()

Parameters:

   $oid  
   $sid  
   $force_http  

[ Top ]

constructor __construct [line 33]

Video __construct( $id)

Constructor

This pulls the shoutbox information from the database and returns a constructed object, uses user_shout table




Tags:

access:  public


Parameters:

   $id  

[ Top ]

method format [line 49]

void format( )

format

This formats a video object so that it is human readable




Tags:

access:  public



Implementation of:
media::format()
[ Top ]

method native_stream [line 63]

void native_stream( )

native_stream

This returns true or false on the downsampling mojo




Tags:

access:  public



Implementation of:
media::native_stream()
[ Top ]

method stream_cmd [line 95]

void stream_cmd( )

stream_cmd

test and see if the video needs to be natively streamed if not it returns the transocding command from the config file we can't use this->type because its been formated for the downsampling




Tags:

access:  public



Implementation of:
media::stream_cmd()
[ Top ]


Documentation generated on Thu, 12 Feb 2009 08:00:12 +0900 by phpDocumentor 1.4.2