reorganized the samples, again. Moved the programs that were more test cases to the unit test directory and repackaged the unit test directory.
This commit is contained in:
28
unittest/com/jacob/test/windowsmedia/WMPlayer.java
Normal file
28
unittest/com/jacob/test/windowsmedia/WMPlayer.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package com.jacob.test.windowsmedia;
|
||||
|
||||
/**
|
||||
* partial test program from the sourceforge bug report 1453161
|
||||
* that says you get a random "can't map name to dispid" when
|
||||
* getting the URL from the player
|
||||
*
|
||||
* I run with options
|
||||
* -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true
|
||||
*/
|
||||
import com.jacob.activeX.*;
|
||||
|
||||
public class WMPlayer {
|
||||
|
||||
public static void main(String[] args){
|
||||
ActiveXComponent wmp = null;
|
||||
wmp = new ActiveXComponent("WMPlayer.OCX");
|
||||
|
||||
// the sourceforge posting didn't post all the code so this is all we have
|
||||
// we need some other information on how to set the document
|
||||
// so that we have a url to open
|
||||
for ( int i= 0 ; i < 1000 ; i++){
|
||||
System.out.println("the wmp url is "+ wmp.getProperty("URL").toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user