MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Instrukcja Użytkownika Strona 166

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 165
163
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
The following example plays F4V files:
application.myStream = Stream.get("foo");
if(application.myStream) {
application.myStream.play("mp4:beethoven", 0);
application.myStream.play("mp4:mozart", 0, false);
}
In the following example, data messages in the recorded stream file log.flv are returned at the intervals at which they
were originally recorded:
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1);
}
In the following example, data messages in the recorded stream file log.flv are returned all at once, rather than at the
intervals at which they were originally recorded:
application.myStream = Stream.get("data");
if (application.myStream) {
application.myStream.play("log", 0, -1, 2);
}
A server-side stream cannot subscribe to itself. For example, the following code is invalid:
// Client-side code
var ns = new NetStream
ns.publish("TestStream");
// Server-side code
st = Stream.get("TestStream");
st.play("TestStream");
Stream.playFromGroup()
myStream.playFromGroup(ingest)
Plays an multicast stream that was ingested into a NetGroup.
For information about ingesting a multicast stream, see NetGroup.getMulticastStreamIngest().
To get information about the Stream.playFromGroup() method, define a Stream.onStatus() handler.
If the server fails to find the stream, or if an error occurs, the Stream.playFromGroup() method can fail.
Availability
Flash Media Server 4.5
Parameters
ingest A MulticastStreamIngest object that is ingesting a multicast stream from a source Flash group, or a boolean
value of
false to stop playback from a group.
Returns
A boolean value: true if the call is accepted by the server; otherwise, false.
If the ingest parameter is false, the stream stops playing. A boolean value of true is returned if the stop succeeds;
otherwise,
false.
Przeglądanie stron 165

Komentarze do niniejszej Instrukcji

Brak uwag