[Pkg-sugar-commit] [sugar-jukebox-activity] 02/10: Fix testing functionality
Jonas Smedegaard
dr at jones.dk
Sat Jun 27 01:57:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v26.1
in repository sugar-jukebox-activity.
commit 7a954aea816e9b994ddd3d9dcac9897bc47b5aec
Author: Manuel Kaufmann <humitos at gmail.com>
Date: Mon Aug 27 10:23:35 2012 -0300
Fix testing functionality
Can be used from the commandline like in:
python jukeboxactivity.py file:///tmp/video_file.mp4
Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
---
jukeboxactivity.py | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/jukeboxactivity.py b/jukeboxactivity.py
index e900263..5555ed1 100644
--- a/jukeboxactivity.py
+++ b/jukeboxactivity.py
@@ -21,7 +21,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-
+import sys
import logging
import tempfile
from gettext import gettext as _
@@ -885,9 +885,6 @@ if __name__ == '__main__':
view = VideoWidget()
- #view.set_file_location(sys.argv[1])
-
- player = GstPlayer(view)
#player.connect("eos", self._player_eos_cb)
#player.connect("error", self._player_error_cb)
#player.connect("tag", self._player_new_tag_cb)
@@ -895,7 +892,14 @@ if __name__ == '__main__':
window.add(view)
- player.set_uri('http://78.46.73.237:8000/prog')
- player.play()
+ view.show()
+ def map_cb(widget):
+ player = GstPlayer(view)
+ player.set_uri(sys.argv[1])
+ player.play()
+
+ window.connect('map', map_cb)
+ window.maximize()
window.show_all()
+ window.connect("destroy", gtk.main_quit)
gtk.main()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-jukebox-activity.git
More information about the pkg-sugar-commit
mailing list