Embedding a video into a frame.

Hello,

Anyone know how to just embed a video onto a frame.

I have found some examples and demos of how to do this, but it’s nothing I can work with.

For example, most examples have a dialog that comes up so you can choose the video.

I don’t want this, I just need to embed a video onto the frame. So when a user opens up the application and their introduced to the Main menu

the video will be displayed. 2 Buttons will be needed as a play and stop. But I’m fairly sure how to bind these and the control.

It’s just actually getting my head around to actually fetch the file and embed it, is my problem!

Anyway, if anyone knows how to, it’ll be greatly appreciated!

Cheers

Sion

Sion Jones wrote:

I have found some examples and demos of how to do this, but it's
nothing I can work with.
For example, most examples have a dialog that comes up so you can
choose the video.

If you have code that does that, surely you know how to delete the "open
file" dialog and extract just the part that plays the video, and then
supply your own file name.

I don't want this, I just need to embed a video onto the frame. So
when a user opens up the application and their introduced to the Main
menu the video will be displayed. 2 Buttons will be needed as a play
and stop. But I'm fairly sure how to bind these and the control.
It's just actually getting my head around to actually fetch the file
and embed it, is my problem!

Fetch the file from where? Are you going to ship the video with your
application? If so, then you just pass the file name.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Sion Jones wrote:

Hello,

Anyone know how to just embed a video onto a frame.

I have found some examples and demos of how to do this, but it's nothing
I can work with.
For example, most examples have a dialog that comes up so you can choose
the video.

I don't want this, I just need to embed a video onto the frame. So when
a user opens up the application and their introduced to the Main menu
the video will be displayed. 2 Buttons will be needed as a play and
stop. But I'm fairly sure how to bind these and the control.
It's just actually getting my head around to actually fetch the file and
embed it, is my problem!

Have you looked at the MediaCtrl sample in the demo?

···

--
Robin Dunn
Software Craftsman

Yes I’ve tried that, and it just has the “open dialog” function that I dont need.

I’m new to Wxpython so can’t really figure out how to just embed the one video.

···

On Thursday, March 14, 2013 4:57:33 PM UTC, Robin Dunn wrote:

Sion Jones wrote:

Hello,

Anyone know how to just embed a video onto a frame.

I have found some examples and demos of how to do this, but it’s nothing

I can work with.

For example, most examples have a dialog that comes up so you can choose

the video.

I don’t want this, I just need to embed a video onto the frame. So when

a user opens up the application and their introduced to the Main menu

the video will be displayed. 2 Buttons will be needed as a play and

stop. But I’m fairly sure how to bind these and the control.

It’s just actually getting my head around to actually fetch the file and

embed it, is my problem!

Have you looked at the MediaCtrl sample in the demo?


Robin Dunn

Software Craftsman

http://wxPython.org

In the demo code look for the file open dialogue and replace the
call to it with a return of the file name of the video you would
like to play.
N.B. The call may be of the form:
Create Dialogue, Show Dialogue, Check the user clicked OK, if so get
the file name from the dialogue, delete the dialogue - you need to
replace the entire sequence with your fixed file name and possibly
the user clicked ok flag.

···

On 14/03/13 16:59, Sion Jones wrote:

  Yes I've tried that, and it just has the "open dialog"

function that I dont need.
I’m new to Wxpython so can’t really figure out how to just
embed the one video.


Steve Gadget Barnes

I’ve conjured something like this

def OnLoadFile(self, evt):

self.DoLoadFile(os.path.abspath(‘Metalocalypse.avi’))

I did this in the demo file. Now it seems like it loads, but doesn’t play or display anything. Is this because of the extension ‘.avi’?

···

On Thursday, March 14, 2013 5:47:58 PM UTC, Gadget Steve wrote:

On 14/03/13 16:59, Sion Jones wrote:

  Yes I've tried that, and it just has the "open dialog"

function that I dont need.
I’m new to Wxpython so can’t really figure out how to just
embed the one video.

In the demo code look for the file open dialogue and replace the

call to it with a return of the file name of the video you would
like to play.

N.B. The call may be of the form:

Create Dialogue, Show Dialogue, Check the user clicked OK, if so get

the file name from the dialogue, delete the dialogue - you need to
replace the entire sequence with your fixed file name and possibly
the user clicked ok flag.

  Steve *Gadget* Barnes

Sion Jones wrote:

I've conjured something like this

def OnLoadFile(self, evt):
self.DoLoadFile(os.path.abspath('Metalocalypse.avi'))

I did this in the demo file. Now it seems like it loads, but doesn't
play or display anything. Is this because of the extension '.avi'?

Of course not. Did you click the "Play" button?

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

For some reason it’s not clickable!

···

On Thursday, March 14, 2013 6:11:24 PM UTC, Tim Roberts wrote:

Sion Jones wrote:

I’ve conjured something like this

def OnLoadFile(self, evt):

self.DoLoadFile(os.path.abspath(‘Metalocalypse.avi’))

I did this in the demo file. Now it seems like it loads, but doesn’t

play or display anything. Is this because of the extension ‘.avi’?

Of course not. Did you click the “Play” button?


Tim Roberts, ti...@probo.com

Providenza & Boekelheide, Inc.

Wooo, it works. The play button was disabled and I only saw it now.

···

On 14 March 2013 18:11, Tim Roberts timr@probo.com wrote:

Sion Jones wrote:

I’ve conjured something like this

def OnLoadFile(self, evt):

self.DoLoadFile(os.path.abspath(‘Metalocalypse.avi’))

I did this in the demo file. Now it seems like it loads, but doesn’t

play or display anything. Is this because of the extension ‘.avi’?

Of course not. Did you click the “Play” button?

Tim Roberts, timr@probo.com

Providenza & Boekelheide, Inc.

You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/Ps95U55EAVY/unsubscribe?hl=en-US.

To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.