PiP-gui support really displays a small video now (still buggy)
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 8 Apr 2006 12:07:15 +0000 (12:07 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 8 Apr 2006 12:07:15 +0000 (12:07 +0000)
lib/python/Screens/InfoBarGenerics.py

index 31dd303..0ae0dc4 100644 (file)
@@ -977,12 +977,16 @@ class InfoBarExtensions:
 
        def extensionCallback(self, answer):
                if answer[1] == "pipon":
 
        def extensionCallback(self, answer):
                if answer[1] == "pipon":
+                       self.session.nav.stopService()
                        self.pip = self.session.instantiateDialog(PictureInPicture)
                        self.pip = self.session.instantiateDialog(PictureInPicture)
-                       self.pip.show()
+                       #self.pip.show()
+                       
+                       newservice = str(ServiceReference(self.session.nav.getCurrentlyPlayingServiceReference())) + "s"
+                       self.pipservice = eServiceCenter.getInstance().play(eServiceReference(newservice))
+                       self.pipservice.start()
                        self.pipshown = True
                        self.pipshown = True
-                       print "would show PiP now"
                elif answer[1] == "pipoff":
                elif answer[1] == "pipoff":
-                       self.pip.hide()
+                       #self.pip.hide()
                        del self.pip
                        self.pipshown = False
 
                        del self.pip
                        self.pipshown = False