Adobe 65029121 Developer's Guide - Page 51
Publish from server to server - illustrator
UPC - 883919169231
View all Adobe 65029121 manuals
Add to My Manuals
Save this manual to your list of manuals |
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).