jbaiter / pyomxplayer

Python wrapper around OMXPlayer for the Raspberry Pi
MIT License
103 stars 61 forks source link

Odd behavior with version fix #5

Open trythesalmon opened 10 years ago

trythesalmon commented 10 years ago

Can anyone give me any tips on how to fix this please? I'm replacing some existing code that used gtkmozembed with pyomxplayer as it now needs to play videos instead of show webpages. The screen is divided up using gtk. I'm a little new to python still so bear with me :)

The code originally initialised gtkmozembed with:

 self.moz=gtkmozembed()

Then loaded the URL further down the code. However if I try this with pyomxplayer, e.g.:

self.omx=OMXPlayer()

I get the .groups() error that I fixed by following the suggestion here: https://github.com/jbaiter/pyomxplayer/issues/3

I can get it to work by shoving all the arguments and file name into the initialization string, but I can't figure out how to then refresh it with a new file when playback has finished, if that makes sense?

Just looking for any guidance on usage etc - if anyone's got an example script which plays multiple videos in succession by passing filenames to it, that would be amazing :)

trythesalmon commented 10 years ago

Meant to say if I leave the initialize out, it complains that it is not a gtk widget when it tries to draw the tables... I guess I need to wrap this in GTK somehow?