MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manuel d'utilisateur Page 158

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 157
155
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Stream.getOnMetaData()
Stream.getOnMetaData(name)
Static; returns an object containing the metadata for the named stream or video file. The object contains one property
for each metadata item. The Flash Video Exporter utility (version 1.1 or later) embeds video duration, creation date,
data rates, and other information into the video file.
Availability
Flash Media Server 2
Parameter
name A string indicating the name of a recorded stream, such as "myVideo". For FLV files, pass the name without a
file extension or prefix:
"myVideo". For F4V files, pass the name with the prefix mp4: "mp4:myVideo". Append a file
extension if the F4V file has a file extension.
Returns
An Object containing the metadata as properties.
Example
The following example lists the properties and values for the metadata for the recorded stream myVideo.flv:
var infoObject = Stream.getOnMetaData("myVideo");
trace("Metadata for myVideo.flv:");
for(i in infoObject){
trace(i + " = " + infoObject[i]);
}
Stream.length()
Stream.length(name[, virtualKey])
Static; returns the length of a recorded file in seconds. If the requested file is not found, the return value is 0.
Availability
Flash Communication Server 1
Parameters
name A string indicating the name of a recorded stream. To get the length of an MP3 file, precede the name of the file
with
mp3: (for example, "mp3:beethoven").
virtualKey A string indicating a key value. Starting with Adobe Media Server 2, stream names are not always unique.
You can create multiple streams with the same name and place them in different physical directories. Then, use the
VirtualDirectory section and VirtualKeys section of the Vhost.xml file to direct clients to the appropriate stream.
The
Stream.length() method is not associated with a client, but connects to a stream on the server. As a result, you
may need to specify a virtual key to identify the correct stream. For more information about keys, see
Client.virtualKey. This parameter is optional.
Returns
A number.
Vue de la page 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 171 172

Commentaires sur ces manuels

Pas de commentaire