예제 #1
0
     edit_plugins($sid);
     break;
 case "editprefs":
     edit_serverprefs($sid);
     break;
     //case "editusers":
     //   manage_profile_users($sid);
     //   break;
 //case "editusers":
 //   manage_profile_users($sid);
 //   break;
 case "linkplugins":
     import_plugins($sid, $importplugins, $preenable, $bEnable);
     break;
 case "new":
     new_profile();
     break;
 case "create":
     $stype = "";
     if (intval($user) != -1) {
         $stype = $user;
     } elseif (intval($entity) != -1) {
         $stype = $entity;
     }
     if ($stype == "") {
         $stype = Session::get_session_user();
     }
     create_new_profile($sname, $sdescription, $sautoenable, $stype, $cloneid, $auto_cat_status, $auto_fam_status, $tracker);
     break;
 case "saveplugins":
     saveplugins($sid, $fam, $cve, $saveplugins, $AllPlugins, $NonDOS, $DisableAll);
예제 #2
0
파일: play.php 프로젝트: erdincay/mlt
<?php

$filename = $argv[1];
dl("mlt.so");
mlt_factory_init(NULL);
$profile = new_profile("dv_ntsc");
$p = new_producer($profile, $filename);
if ($p) {
    $c = new_consumer($profile, "sdl");
    consumer_connect($c, $p);
    $e = properties_setup_wait_for($c, "consumer-stopped");
    consumer_start($c);
    properties_wait_for($c, $e);
    consumer_stop($c);
    $e = NULL;
    $c = NULL;
}
$p = NULL;
$profile = NULL;
mlt_factory_close();
?>