same mediactrl instance on multiple frame?

Hi,

I have a mediactrl instance that has a video file playing. I want to be able to show the same video on another frame simutaneously, is it possible?

Statement Of Confidentiality:

This electronic message transmission, and all attachments, contains information from Extron Electronics which is confidential and privileged. The information is for the exclusive viewing or use of the intended recipient. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by a “reply to sender only” message and destroy all electronic and hard copies of the communication, including attachments.

Qui Le wrote:

Hi,
I have a mediactrl instance that has a video file playing. I want to be able to show the same video on another frame simutaneously, is it possible?

That depends. Can you open the file multiple times in something else, like Windows Media Player or VLC or does the file become locked? If it becomes locked, then you'll probably hit the same issue when trying to do it in wxPython. There's probably some tricky way to copy the contents of the video into memory so you can do this, but I don't have the slightest idea how to do that.

If you can open it in multiple VLC players or whatever, then wxPython should behave the same as long as you have separate MediaCtrl instances. You cannot put one instance of a widget on two frames.

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4101 (20090525) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Yea, it's possible to open the same file multiple times on WMP or VLC. I
just don't want two separate instances because that means I'd have to
send controls to two instances and it may cause out-of-sync problems.
For instance, if I seek the playback through WMP controls, I'd have to
do the same for the other instance. It's not a big deal. I'm happy with
one instance. I was just wondering if I can actually do this in wxpython
in a simple way. Thanks.

···

-----Original Message-----
From: wxpython-users-bounces@lists.wxwidgets.org
[mailto:wxpython-users-bounces@lists.wxwidgets.org] On Behalf Of Mike
Driscoll
Sent: Monday, May 25, 2009 10:59 AM
To: wxpython-users@lists.wxwidgets.org
Subject: Re: [wxpython-users] same mediactrl instance on multiple frame?

Qui Le wrote:

Hi,

I have a mediactrl instance that has a video file playing. I want to
be able to show the same video on another frame simutaneously, is it
possible?

That depends. Can you open the file multiple times in something else,
like Windows Media Player or VLC or does the file become locked? If it
becomes locked, then you'll probably hit the same issue when trying to
do it in wxPython. There's probably some tricky way to copy the contents
of the video into memory so you can do this, but I don't have the
slightest idea how to do that.

If you can open it in multiple VLC players or whatever, then wxPython
should behave the same as long as you have separate MediaCtrl instances.

You cannot put one instance of a widget on two frames.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4101 (20090525) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

                                                                         Statement Of Confidentiality:

This electronic message transmission, and all attachments, contains information from Extron Electronics which is confidential and privileged. The information is for the exclusive viewing or use of the intended recipient. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.