Summary of Contents for Adobe 65024872 - InDesign CS4 - Mac
Page 1
ADOBE FLASH MEDIA ® ® INTERACTIVE SERVER PLUG-IN DEVELOPER GUIDE...
Page 2
The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorpo- rated.
Developing Plug-ins Adobe® Flash® Media Interactive Server 3 and Adobe® Flash® Media Development Server 3 provide a plug-in archi- tecture written in C++ that lets you extend the functionality of the server. Use the Access, Authorization, and File plug-ins to build unique Flash Media Interactive Server and Flash Media Development Server deployments with expanded access, authorization, and file management solutions.
Page 5
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide Filename Description adaptor.cpp Sample Access plug-in C++ files and header file. sample.cpp adaptor.h AccessModuleSample.sln Work files used with Microsoft Visual C++ for building an Access plug-in in a Windows environ- ment. You can modify the files’ values to reflect the practices in your environment.
(FMS) from the Services list and click Stop. • In Linux, open a shell window and go to the directory where the server is installed: cd /opt/adobe/fms. Enter the following: ./server stop. Copy the compiled plug-in DLL or SO files to one of the following folders: •...
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide The Authorization plug-in can retrieve data stored in the XML element; the File plug-in can retrieve data stored Auth in the XML element. You must store data in one element; multiple elements and nested elements are not ASyncIo supported.
Page 8
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide Access plug-in overview An Access plug-in adds another layer of security to the server; it intercepts connection requests and lets you examine the client and the server to determine whether requests should be accepted, rejected, or redirected before the requests reach the server’s script layer.
Plug-In Developer Guide Writing the code in an Access plug-in You can either modify the code in the sample Access plug-in file provided by Adobe, or you can write your own plug- A client connection request triggers the callback method in the Access plug-in. Write the code that...
Page 10
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide • Map logical URLs to physical locations For example, if the video player plays a stream “foo”— —when the request is ns.play( "myvideos/foo") processed by the server, this virtual name could map to c:\apps\vidapp\myvideos\. The Authorization plug-in lets you remap this to a different physical location;...
Page 11
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide To assign an action to an event, call from an addDisconnectAction() addNotifyAction() IFmsAuthEvent instance. The following code adds the instance to the instance IFmsNotifyAction pAction IFmsAuthEvent . The action calls in a server-side script and passes it the parameter...
Page 12
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide When an Authorization plug-in is installed on an origin server, the (for a live stream) or Origin E_PLAY (for recorded stream) event is called to play the clip. To block play for a recorded stream, process...
Page 15
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide E_DISCONNECT E_FILENAME_TRANSFORM E_PLAY Notify Notify and Authorize Notify and Authorize None None None F_STREAM_PUBLISH_TYPE* None None None F_STREAM_PUBLISH_BROADCAST* None None None F_SEGMENT_START* None None None F_SEGMENT_END* Not supported in versions earlier than Flash Media Server 3 The following table contains additional events.
ADOBE FLASH MEDIA INTERACTIVE SERVER Plug-In Developer Guide Not supported before Flash Media Server 3 Developing a File plug-in File plug-in overview The File plug-in gives you complete control over where and how the server reads content from the file system. The plug-in provides an interface between the operating system’s file I/O mechanism and the server.