| Pacchetto | org.osmf.media |
| Classe | public class URLResource |
| Ereditarietà | URLResource MediaResourceBase Object |
| Sottoclassi | StreamingURLResource |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | OSMF 1.0 |
| Versioni runtime: | Flash Player 10, AIR 1.5 |
Proprietà pubbliche
| Proprietà | Definito da | ||
|---|---|---|---|
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
![]() | mediaType : String
The MediaType, if any, of this resource. | MediaResourceBase | |
![]() | metadataNamespaceURLs : Vector.<String> [sola lettura]
A Vector containing the namespace URLs for all Metadata
objects within this resource. | MediaResourceBase | |
![]() | mimeType : String
The MIME type, if any, of this resource. | MediaResourceBase | |
| url : String [sola lettura]
The URL of the resource. | URLResource | ||
Metodi pubblici
| Metodo | Definito da | ||
|---|---|---|---|
URLResource(url:String)
Constructor. | URLResource | ||
![]() |
Adds a metadata value to this resource. | MediaResourceBase | |
![]() |
Retrieves a metadata value from this resource. | MediaResourceBase | |
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Removes a metadata value from this resource. | MediaResourceBase | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
Descrizione delle proprietà
url | proprietà |
Descrizione della funzione di costruzione
URLResource | () | Funzione di costruzione |
URLResourceExample.as
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import org.osmf.elements.VideoElement;
import org.osmf.media.MediaPlayerSprite;
import org.osmf.media.URLResource;
public class URLResourceExample extends Sprite
{
public function URLResourceExample()
{
super();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite();
var videoElement:VideoElement = new VideoElement();
videoElement.resource = new URLResource("rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD_sounas_640_500_short");
addChild(mediaPlayerSprite);
mediaPlayerSprite.media = videoElement;
}
}
}
Tue Jun 12 2018, 02:44 PM Z
Nascondi proprietà pubbliche ereditate
Mostra proprietà pubbliche ereditate