[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: ActiveX media player no video display problem

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