1 #include <glib-object.h>
2 #include <gmyth/gmyth.h>
8 main (int args, const char **argv)
10 GMythBackendInfo *backend_info;
14 backend_info = gmyth_backend_info_new ();
20 gmyth_backend_info_set_hostname (backend_info, "192.168.3.137");
21 gmyth_backend_info_set_port (backend_info, 6543);
23 int res = gmyth_vlc_connect(&vlc, backend_info, "admin", 4212);
27 gmyth_vlc_create_channel(&vlc, "broadcast", 8080, THEORA);
28 gmyth_vlc_create_input(&vlc, 0, "/tmp/mpg/bad_day.mpg");
29 gmyth_vlc_control_input(&vlc, 0, "play");
30 gmyth_vlc_disconnect(&vlc);
33 //gchar* teste = gmyth_http_retrieve_setting(backend_info, "RecordFilePrefix", "hmelo-desktop");
35 fprintf(stdout, SYNC_STRING);
39 if ( backend_info != NULL )
40 g_object_unref( backend_info );