]> git.sesse.net Git - mlt/blob - mlt++/swig/php/play.php
Merge ../mlt++
[mlt] / mlt++ / swig / php / play.php
1 <?php
2 $filename = $argv[1];
3 dl("mltpp.so");
4 mlt_factory_init(NULL);
5 $profile = new_profile("dv_ntsc");
6 $p = new_producer( $profile, $filename );
7 if ( $p ) {
8         $c = new_consumer( $profile, "sdl" );
9         consumer_connect( $c, $p );
10         $e = properties_setup_wait_for( $c, "consumer-stopped" );
11         consumer_start( $c );
12         properties_wait_for( $c, $e );
13         consumer_stop( $c );
14         $e = NULL;
15         $c = NULL;
16 }
17 $p = NULL;
18 $profile = NULL;
19 mlt_factory_close();
20 ?>
21