hallo zusammen!
I want to make use of the video window for a plugin, so I made the following code:
Python
skin = """
<screen position="10,10" size="650,500" title="videos!">
<widget name="Video" position="10,10" size="450,400" zPosition="0"/>
<widget name="Video2" position="260,210" size="250,200" zPosition="0"/>
</screen>"""
def __init__(self, session):
self.skin = pantallaVerde.skin
Screen.__init__(self,session)
self["Video"] = VideoWindow(decoder = 0)
self["Video2"] = VideoWindow(decoder = 1)
Alles anzeigen
This just makes two video windows and I give them as parameter the decoder (0 or 1). Decoder=0 is what I'm currently watching on the TV, and decoder=1 is nothing unless I have previously activated the Picture in Picture, in which case it shows up the "secondary" channel of the PIP.
I'd like to know if there's a way to choose exactly what it's shown on those video windows, I mean choose by PID or maybe take the video stream from my computer via ethernet.
Could anyone help me about it? Is there any plugin code where I can take some information?
Best regards!