Hi Steve, On 01/07/2011 22:07, Steve Cookson wrote:
1 - your application doesn't crash at end of file with the new fix. Both mine and the sample do. I guess I (and demo) need to check for these new events to avoid the crash. Amazing, but it doesn't crash under windows, why is that? What are these events?
Note that my example forces use of the mediaplayer backend rather than direct-show. Perhaps this is the issue ?.
2 - Anyhow the other thing is that on loading a video file twice, I still get a segfault after the second load.
I don't see this. I think ensuring you have issued an explicit 'Stop' may fix it.
3 - LoadURI is also amazing (but it still doesn't work, sorry). It is absolutely the closest yet. If I enter file:///dev/video0 I get EVT_MEDIA_LOADED, but *no* picture. Shame. But truly great effort.
LoadURI was always there, it just wasn't documented.
4 - I've loaded your build script onto my new K11.4 build, but still no sign of Wx::Media.pm. I'll get back to you when I know more on this.
Steve, I know next to nothing about GStreamer and media playing in general. All I have done is make sure that the wxPerl side of things at least has all the available methods / events wrapped.
What I have found is that getting the necessary development dependencies installed to build wxMediaCtrl on wxGTK is very difficult. Also segmentation faults are often caused by having missing runtime dependencies. In my rudimentary testing, I check that the Gnome Totem application can load the media file OK. If it can, then at least the necessary decoders are installed.
It would be great if, as an active user of wxMediaCtrl, you could improve the base GStreamer wrapper and therefore we get better handling in wxPerl. I won't be able to offer much if any media or GStreamer related help I'm afraid due to a total lack of experience in that area.
Regards Mark