mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Navigate to and from fullscreen with DBus #665

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello
I wrote a plugin for Coversal (a remote control for Android)
see https://developers.coversal.com/boards/4/topics/134

However; I have a problem with fullscreen. With the DBus API, I can't read the 
fullscreen state, so the best I could implement was to always force to 
fullscreen.

API documentation is here: 
http://code.google.com/p/gnome-mplayer/source/browse/trunk/DOCS/tech/dbus.txt
I'd like to have an action like GetFullscreen; or even simpler an action 
Fullscreen with no parameter that will put the screen in fullscreen if it's in 
window mode, and put the screen in window mode if it's in fullscreen (basically 
like what the 'f' button does!)

Thanks,
Julien

Original issue reported on code.google.com by fauch...@gmail.com on 6 Jan 2013 at 5:27

GoogleCodeExporter commented 8 years ago
There is a GetFullscreen as part of the API

 xml = g_string_append(xml,
                                          "<interface name=\"com.gnome.mplayer\">\n"
                                          "    <method name=\"Test\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetVolume\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetFullScreen\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetShowControls\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetTime\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetDuration\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetPercent\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetCacheSize\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetPlayState\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetBitrate\">\n"
                                          "        <arg name=\"url\" type=\"s\" />\n"
                                          "    </method>\n"
                                          "    <method name=\"GetURI\">\n"
                                          "    </method>\n"
                                          "    <method name=\"GetTitle\">\n"
                                          "    </method>\n"
                                          "    <signal name=\"Open\">\n"
                                          "        <arg name=\"url\" type=\"s\" />\n"
                                          "    </signal>\n"
                                          "    <signal name=\"OpenPlaylist\">\n"
                                          "        <arg name=\"url\" type=\"s\" />\n"
                                          "    </signal>\n"
                                          "    <signal name=\"OpenButton\">\n"
                                          "        <arg name=\"url\" type=\"s\" />\n"
                                          "        <arg name=\"hrefid\" type=\"s\" />\n"
                                          "    </signal>\n"
                                          "    <signal name=\"Close\">\n"
                                          "    </signal>\n"
                                          "    <signal name=\"Quit\">\n"
                                          "    </signal>\n"
                                          "    <signal name=\"ResizeWindow\">\n"
                                          "        <arg name=\"width\" type=\"i\" />\n"
                                          "        <arg name=\"height\" type=\"i\" />\n"
                                          "    </signal>\n" "  </interface>\n");
                    xml = g_string_append(xml, "</node>\n");

Original comment by kdeko...@gmail.com on 6 Jan 2013 at 7:21

GoogleCodeExporter commented 8 years ago
Updated the dbus.txt documentation to include more information

Original comment by kdeko...@gmail.com on 6 Jan 2013 at 7:48