Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ActiveX media player no video display problem
ActiveX media player no video display problem [message #454932] Tue, 03 May 2005 01:38 Go to next message
Eclipse UserFriend
Originally posted by: aaa.domain.invalid

Hello

Here is a snippet


frame = new OleFrame(composite,SWT.NONE);
frame.setBounds(0,0,100,100);
// OleControlSite controlSite;


controlSite = new
OleControlSite(frame,SWT.NONE,"MediaPlayer.MediaPlayer.1");
controlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE|OLE.OLEIVERB _HIDE);
String url = "C:/temp/stuff/1.mpg";
oleAutomation = new OleAutomation(controlSite);
int rgdispid[] = oleAutomation.getIDsOfNames(new String[]{"Open"});
int dispIdMember = rgdispid[0];
Variant rgvarg[] = new Variant[1];
rgvarg[0] = new Variant(url);
oleAutomation.setProperty(23, new Variant((short)0));
oleAutomation.setProperty(-500, new Variant((short)1));
oleAutomation.setProperty(1112, new Variant((short)1));
oleAutomation.invoke(dispIdMember,rgvarg);


I can hear the audio but I cannot see the video. I do see a grayed out
area on my composite where the media player would have got placed.

If I change
frame = new OleFrame(composite,SWT.NONE); TO
frame = new OleFrame(getParent(),SWT.NONE); I get to see the video.

Can someone point out why the mpeg video does not get displayed?

-chhil
Re: ActiveX media player no video display problem [message #454985 is a reply to message #454932] Wed, 04 May 2005 03:25 Go to previous message
Eclipse UserFriend
Originally posted by: aaa.domain.invalid

Hello,
Just some more details...
I have a plugin that is a ScreenEditor that extends EditorPart.
The createpartcontrol creates a composites c1 that has a composite c2
inside it and I am trying to place the media player on c2.

Hopefully someone can help me figure out why the video does not show up.

I have tried a simple swt app that plays the audio and video in the
media player. The only difference in the simple app teh OleFrame uses
the shell as its parent.

-chhil



Chhil wrote:
> Hello
>
> Here is a snippet
>
>
> frame = new OleFrame(composite,SWT.NONE);
> frame.setBounds(0,0,100,100);
> // OleControlSite controlSite;
>
>
> controlSite = new
> OleControlSite(frame,SWT.NONE,"MediaPlayer.MediaPlayer.1");
> controlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE|OLE.OLEIVERB _HIDE);
> String url = "C:/temp/stuff/1.mpg";
> oleAutomation = new OleAutomation(controlSite);
> int rgdispid[] = oleAutomation.getIDsOfNames(new String[]{"Open"});
> int dispIdMember = rgdispid[0];
> Variant rgvarg[] = new Variant[1];
> rgvarg[0] = new Variant(url);
> oleAutomation.setProperty(23, new Variant((short)0));
> oleAutomation.setProperty(-500, new Variant((short)1));
> oleAutomation.setProperty(1112, new Variant((short)1));
> oleAutomation.invoke(dispIdMember,rgvarg);
>
>
> I can hear the audio but I cannot see the video. I do see a grayed out
> area on my composite where the media player would have got placed.
>
> If I change
> frame = new OleFrame(composite,SWT.NONE); TO
> frame = new OleFrame(getParent(),SWT.NONE); I get to see the video.
>
> Can someone point out why the mpeg video does not get displayed?
>
> -chhil
>
Previous Topic:HELP: java.lang.IllegalStateException: Workspace is closed.
Next Topic:Graph component
Goto Forum:
  


Current Time: Thu Apr 25 10:28:13 GMT 2024

Powered by FUDForum. Page generated in 0.03627 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top