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