1 Servers and Westley Docs
2 ------------------------
4 One of the key features of MLT is its server capabilities. This feature
5 allows you to pass westley documents seamlessly from one process to
6 another and even to different computers on your network.
8 The miracle playout server is one such example of an application which
9 uses this functionality - you can build your own servers into your own
12 A server process would be running as follows:
14 #include <mlt++/Miracle>
19 Miracle miracle( "miracle", 5250 );
21 miracle.execute( "uadd sdl" );
22 miracle.execute( "play u0" );
23 miracle.wait_for_shutdown( );
27 Typically, when you have an MLT object such as a producer or a playlist,
28 you can send a westley representation of this to a running server with:
30 Conumser valerie( "valerie", "localhost:5250" );
31 valerie.connect( producer );
34 The effect of the push will be to append the producer on to the first
37 You can completely customise the miracle server - an example of this