Adobe 65029121 Developer's Guide - Page 51

Publish from server to server - illustrator

Page 51 highlights

ADOBE FLASH MEDIA SERVER 48 Developer Guide Retrieve metadata from live video To display the metadata set in the live stream, you need to handle the onMetaData event. Handling the metadata set in a live stream is the same as extracting the metadata set by the server or a tool in a recorded file. Note: See the updated LiveStreams sample, LiveStreams.as, at www.adobe.com/learn_fms_docs_en under the Developer Guide. Write the client event handler class ❖ Create a custom client class outside your main client class. In the custom client class, write an onMetaData function that takes an info object. Get the properties of the info object that were set as data keyframes: class CustomClient { public function onMetaData(info:Object):void { trace("width: " + info.width); trace("height: " + info.height); } } Publish from server to server About multipoint publishing Multipoint publishing allows clients to publish to servers with only one client-to-server connection. This feature enables you to build large-scale live broadcasting applications, even with servers or subscribers in different geographic locations. A B C D Using multipoint publishing to publish content from server to server, even across geographic boundaries A. Live Video B. Server 1 (New York City) C. Server 2 (Chicago) and Server 3 (Los Angeles) D. Users The application flow that corresponds to this illustration works like this: 1 A client connects to an application on Server 1 in New York City and starts publishing a live stream. 2 The application on Server 1 receives an application.onPublish event, which it handles in its main.asc file. 3 The application creates two NetStream objects in its onPublish event handler to stream to Server 2 (Chicago) and Server 3 (Los Angeles).

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66

ADOBE FLASH MEDIA SERVER
Developer Guide
48
Retrieve metadata from live video
To display the metadata set in the live stream, you need to handle the
onMetaData
event. Handling the metadata set
in a live stream is the same as extracting the metadata set by the server or a tool in a recorded file.
Note:
See the updated LiveStreams sample, LiveStreams.as, at
www.adobe.com/learn_fms_docs_en
under the
Developer Guide.
Write the client event handler class
Create a custom client class outside your main client class. In the custom client class, write an
onMetaData
function that takes an
info
object. Get the properties of the
info
object that were set as data keyframes:
class CustomClient {
public function onMetaData(info:Object):void {
trace("width: " + info.width);
trace("height: " + info.height);
}
}
Publish from server to server
About multipoint publishing
Multipoint publishing
allows clients to publish to servers with only one client-to-server connection. This feature
enables you to build large-scale live broadcasting applications, even with servers or subscribers in different
geographic locations.
Using multipoint publishing to publish content from server to server, even across geographic boundaries
A.
Live Video
B.
Server 1 (New York City)
C.
Server 2 (Chicago) and Server 3 (Los Angeles)
D.
Users
The application flow that corresponds to this illustration works like this:
1
A client connects to an application on Server 1 in New York City and starts publishing a live stream.
2
The application on Server 1 receives an
application.onPublish
event, which it handles in its main.asc file.
3
The application creates two NetStream objects in its
onPublish
event handler to stream to Server 2 (Chicago)
and Server 3 (Los Angeles).
B
C
D
A