[svn r534] Added GObject inheritance to the GMythFile* modules.
2 #include "gmyth-stream-client.h"
4 int main (int argc, char** argv)
6 GMainLoop *mainloop = NULL;
7 GMythStreamClient *cli = NULL;
12 mainloop = g_main_loop_new (NULL, FALSE);
14 cli = gmyth_stream_client_new ();
15 if (!gmyth_stream_client_connect (cli, "localhost", 12345)) {
16 g_warning ("Fail to connect");
20 id = gmyth_stream_client_open_stream (cli, "/home/rfilho/Media/The.Pursuit.Of.Happyness[2006]DvDrip[Eng]-aXXo/The.Pursuit.Of.Happyness[2006]DvDrip[Eng]-aXXo.avi",
21 "X", "X", 0, 0, "X", 0, 800, 600, 5000, "X");
23 g_printerr ("Fail to open stream");
27 g_debug ("Strem created [%d]", id);
29 if (!gmyth_stream_client_play_stream (cli, id)) {
30 g_printerr ("Fail to play stream");
35 g_main_loop_run (mainloop);