home *** CD-ROM | disk | FTP | other *** search
- package WMPNS;
-
- public class IWMPPlayer {
- int m_pIWMPPlayer = -1;
- int m_hWnd = 0;
-
- private native int newMediaNative(String var1, int var2, int var3);
-
- private native boolean getEnableContextMenuNative(int var1, int var2);
-
- private native void setEnableContextMenuNative(boolean var1, int var2, int var3);
-
- private native boolean getIsRemoteNative(int var1, int var2);
-
- public IWMPPlaylist newPlaylist(String var1, String var2) {
- int var3 = this.newPlaylistNative(var1, var2, this.m_pIWMPPlayer, this.m_hWnd);
- if (var3 >= 0) {
- IWMPPlaylist var4 = new IWMPPlaylist();
- if (var4 != null) {
- var4.m_pIWMPPlaylist = var3;
- var4.m_hWnd = this.m_hWnd;
- }
-
- return var4;
- } else {
- return null;
- }
- }
-
- private native boolean equalsNative(int var1, int var2, int var3);
-
- public int getOpenState() {
- return this.getOpenStateNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public int getPlayState() {
- return this.getPlayStateNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public IWMPPlaylistCollection getPlaylistCollection() {
- int var1 = this.getPlaylistCollectionNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPPlaylistCollection var2 = new IWMPPlaylistCollection();
- if (var2 != null) {
- var2.m_pIWMPPlaylistCollection = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public IWMPPlaylist getCurrentPlaylist() {
- int var1 = this.getCurrentPlaylistNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPPlaylist var2 = new IWMPPlaylist();
- if (var2 != null) {
- var2.m_pIWMPPlaylist = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public void setCurrentPlaylist(IWMPPlaylist var1) {
- this.setCurrentPlaylistNative(var1.m_pIWMPPlaylist, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public IWMPPlayerApplication getPlayerApplication() {
- int var1 = this.getPlayerApplicationNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPPlayerApplication var2 = new IWMPPlayerApplication();
- if (var2 != null) {
- var2.m_pIWMPPlayerApplication = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public boolean getFullScreen() {
- return this.getFullScreenNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public void setFullScreen(boolean var1) {
- this.setFullScreenNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public boolean equals(IWMPPlayer var1) {
- return this.equalsNative(this.m_pIWMPPlayer, var1.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public String getStatus() {
- return this.getStatusNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public void setEnableContextMenu(boolean var1) {
- this.setEnableContextMenuNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public boolean getEnableContextMenu() {
- return this.getEnableContextMenuNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public IWMPControls getControls() {
- int var1 = this.getControlsNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPControls var2 = new IWMPControls();
- if (var2 != null) {
- var2.m_pIWMPControls = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- private native int getCurrentMediaNative(int var1, int var2);
-
- private native void setCurrentMediaNative(int var1, int var2, int var3);
-
- private native int getMediaCollectionNative(int var1, int var2);
-
- private native String getVersionInfoNative(int var1, int var2);
-
- private native void launchURLNative(String var1, int var2, int var3);
-
- private native int getClosedCaptionNative(int var1, int var2);
-
- private native boolean getIsOnlineNative(int var1, int var2);
-
- private native int getErrorNative(int var1, int var2);
-
- private native boolean getFullScreenNative(int var1, int var2);
-
- private native void setFullScreenNative(boolean var1, int var2, int var3);
-
- public IWMPMedia newMedia(String var1) {
- int var2 = this.newMediaNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- if (var2 >= 0) {
- IWMPMedia var3 = new IWMPMedia();
- if (var3 != null) {
- var3.m_pIWMPMedia = var2;
- var3.m_hWnd = this.m_hWnd;
- }
-
- return var3;
- } else {
- return null;
- }
- }
-
- public IWMPError getError() {
- int var1 = this.getErrorNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPError var2 = new IWMPError();
- if (var2 != null) {
- var2.m_pIWMPError = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public IWMPMediaCollection getMediaCollection() {
- int var1 = this.getMediaCollectionNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPMediaCollection var2 = new IWMPMediaCollection();
- if (var2 != null) {
- var2.m_pIWMPMediaCollection = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public IWMPClosedCaption getClosedCaption() {
- int var1 = this.getClosedCaptionNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPClosedCaption var2 = new IWMPClosedCaption();
- if (var2 != null) {
- var2.m_pIWMPClosedCaption = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public void launchURL(String var1) {
- this.launchURLNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public boolean getStretchToFit() {
- return this.getStretchToFitNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public void setStretchToFit(boolean var1) {
- this.setStretchToFitNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public boolean getWindowlessVideo() {
- return this.getWindowlessVideoNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public void setWindowlessVideo(boolean var1) {
- this.setWindowlessVideoNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public boolean getIsOnline() {
- return this.getIsOnlineNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- private native void closeNative(int var1, int var2);
-
- private native int getCdromCollectionNative(int var1, int var2);
-
- private native int newPlaylistNative(String var1, String var2, int var3, int var4);
-
- private native void setUiModeNative(String var1, int var2, int var3);
-
- public IWMPNetwork getNetwork() {
- int var1 = this.getNetworkNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPNetwork var2 = new IWMPNetwork();
- if (var2 != null) {
- var2.m_pIWMPNetwork = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- private native String getUiModeNative(int var1, int var2);
-
- public IWMPMedia getCurrentMedia() {
- int var1 = this.getCurrentMediaNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPMedia var2 = new IWMPMedia();
- if (var2 != null) {
- var2.m_pIWMPMedia = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public void setCurrentMedia(IWMPMedia var1) {
- this.setCurrentMediaNative(var1.m_pIWMPMedia, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- private native boolean getWindowlessVideoNative(int var1, int var2);
-
- private native void setWindowlessVideoNative(boolean var1, int var2, int var3);
-
- private native String getURLNative(int var1, int var2);
-
- private native void setURLNative(String var1, int var2, int var3);
-
- private native int getOpenStateNative(int var1, int var2);
-
- public void openPlayer(String var1) {
- this.openPlayerNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public IWMPSettings getSettings() {
- int var1 = this.getSettingsNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPSettings var2 = new IWMPSettings();
- if (var2 != null) {
- var2.m_pIWMPSettings = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- private native int getPlayStateNative(int var1, int var2);
-
- public void close() {
- this.closeNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public IWMPCdromCollection getCdromCollection() {
- int var1 = this.getCdromCollectionNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPCdromCollection var2 = new IWMPCdromCollection();
- if (var2 != null) {
- var2.m_pIWMPCdromCollection = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- private native int getControlsNative(int var1, int var2);
-
- private native int getPlaylistCollectionNative(int var1, int var2);
-
- private native int getNetworkNative(int var1, int var2);
-
- private native int getCurrentPlaylistNative(int var1, int var2);
-
- private native void setCurrentPlaylistNative(int var1, int var2, int var3);
-
- private native String getStatusNative(int var1, int var2);
-
- private native int getDvdNative(int var1, int var2);
-
- private native boolean getEnabledNative(int var1, int var2);
-
- IWMPPlayer() {
- }
-
- public boolean getIsRemote() {
- return this.getIsRemoteNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- private native void setEnabledNative(boolean var1, int var2, int var3);
-
- private native boolean getStretchToFitNative(int var1, int var2);
-
- private native void setStretchToFitNative(boolean var1, int var2, int var3);
-
- private native int getPlayerApplicationNative(int var1, int var2);
-
- private native void openPlayerNative(String var1, int var2, int var3);
-
- public IWMPDVD getDvd() {
- int var1 = this.getDvdNative(this.m_pIWMPPlayer, this.m_hWnd);
- if (var1 >= 0) {
- IWMPDVD var2 = new IWMPDVD();
- if (var2 != null) {
- var2.m_pIWMPDVD = var1;
- var2.m_hWnd = this.m_hWnd;
- }
-
- return var2;
- } else {
- return null;
- }
- }
-
- public void setUiMode(String var1) {
- this.setUiModeNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public String getUiMode() {
- return this.getUiModeNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public String getVersionInfo() {
- return this.getVersionInfoNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public String getURL() {
- return this.getURLNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public void setURL(String var1) {
- this.setURLNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public boolean getEnabled() {
- return this.getEnabledNative(this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- public void setEnabled(boolean var1) {
- this.setEnabledNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
- }
-
- private native int getSettingsNative(int var1, int var2);
- }
-