home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2003 November / PCNET_2003_11_1.iso / toolkit / MPsetupXP.exe / wmpns.jar / WMPNS / IWMPPlayer.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-10-15  |  5.9 KB  |  404 lines

  1. package WMPNS;
  2.  
  3. public class IWMPPlayer {
  4.    int m_pIWMPPlayer = -1;
  5.    int m_hWnd = 0;
  6.  
  7.    private native int newMediaNative(String var1, int var2, int var3);
  8.  
  9.    private native boolean getEnableContextMenuNative(int var1, int var2);
  10.  
  11.    private native void setEnableContextMenuNative(boolean var1, int var2, int var3);
  12.  
  13.    private native boolean getIsRemoteNative(int var1, int var2);
  14.  
  15.    public IWMPPlaylist newPlaylist(String var1, String var2) {
  16.       int var3 = this.newPlaylistNative(var1, var2, this.m_pIWMPPlayer, this.m_hWnd);
  17.       if (var3 >= 0) {
  18.          IWMPPlaylist var4 = new IWMPPlaylist();
  19.          if (var4 != null) {
  20.             var4.m_pIWMPPlaylist = var3;
  21.             var4.m_hWnd = this.m_hWnd;
  22.          }
  23.  
  24.          return var4;
  25.       } else {
  26.          return null;
  27.       }
  28.    }
  29.  
  30.    private native boolean equalsNative(int var1, int var2, int var3);
  31.  
  32.    public int getOpenState() {
  33.       return this.getOpenStateNative(this.m_pIWMPPlayer, this.m_hWnd);
  34.    }
  35.  
  36.    public int getPlayState() {
  37.       return this.getPlayStateNative(this.m_pIWMPPlayer, this.m_hWnd);
  38.    }
  39.  
  40.    public IWMPPlaylistCollection getPlaylistCollection() {
  41.       int var1 = this.getPlaylistCollectionNative(this.m_pIWMPPlayer, this.m_hWnd);
  42.       if (var1 >= 0) {
  43.          IWMPPlaylistCollection var2 = new IWMPPlaylistCollection();
  44.          if (var2 != null) {
  45.             var2.m_pIWMPPlaylistCollection = var1;
  46.             var2.m_hWnd = this.m_hWnd;
  47.          }
  48.  
  49.          return var2;
  50.       } else {
  51.          return null;
  52.       }
  53.    }
  54.  
  55.    public IWMPPlaylist getCurrentPlaylist() {
  56.       int var1 = this.getCurrentPlaylistNative(this.m_pIWMPPlayer, this.m_hWnd);
  57.       if (var1 >= 0) {
  58.          IWMPPlaylist var2 = new IWMPPlaylist();
  59.          if (var2 != null) {
  60.             var2.m_pIWMPPlaylist = var1;
  61.             var2.m_hWnd = this.m_hWnd;
  62.          }
  63.  
  64.          return var2;
  65.       } else {
  66.          return null;
  67.       }
  68.    }
  69.  
  70.    public void setCurrentPlaylist(IWMPPlaylist var1) {
  71.       this.setCurrentPlaylistNative(var1.m_pIWMPPlaylist, this.m_pIWMPPlayer, this.m_hWnd);
  72.    }
  73.  
  74.    public IWMPPlayerApplication getPlayerApplication() {
  75.       int var1 = this.getPlayerApplicationNative(this.m_pIWMPPlayer, this.m_hWnd);
  76.       if (var1 >= 0) {
  77.          IWMPPlayerApplication var2 = new IWMPPlayerApplication();
  78.          if (var2 != null) {
  79.             var2.m_pIWMPPlayerApplication = var1;
  80.             var2.m_hWnd = this.m_hWnd;
  81.          }
  82.  
  83.          return var2;
  84.       } else {
  85.          return null;
  86.       }
  87.    }
  88.  
  89.    public boolean getFullScreen() {
  90.       return this.getFullScreenNative(this.m_pIWMPPlayer, this.m_hWnd);
  91.    }
  92.  
  93.    public void setFullScreen(boolean var1) {
  94.       this.setFullScreenNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  95.    }
  96.  
  97.    public boolean equals(IWMPPlayer var1) {
  98.       return this.equalsNative(this.m_pIWMPPlayer, var1.m_pIWMPPlayer, this.m_hWnd);
  99.    }
  100.  
  101.    public String getStatus() {
  102.       return this.getStatusNative(this.m_pIWMPPlayer, this.m_hWnd);
  103.    }
  104.  
  105.    public void setEnableContextMenu(boolean var1) {
  106.       this.setEnableContextMenuNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  107.    }
  108.  
  109.    public boolean getEnableContextMenu() {
  110.       return this.getEnableContextMenuNative(this.m_pIWMPPlayer, this.m_hWnd);
  111.    }
  112.  
  113.    public IWMPControls getControls() {
  114.       int var1 = this.getControlsNative(this.m_pIWMPPlayer, this.m_hWnd);
  115.       if (var1 >= 0) {
  116.          IWMPControls var2 = new IWMPControls();
  117.          if (var2 != null) {
  118.             var2.m_pIWMPControls = var1;
  119.             var2.m_hWnd = this.m_hWnd;
  120.          }
  121.  
  122.          return var2;
  123.       } else {
  124.          return null;
  125.       }
  126.    }
  127.  
  128.    private native int getCurrentMediaNative(int var1, int var2);
  129.  
  130.    private native void setCurrentMediaNative(int var1, int var2, int var3);
  131.  
  132.    private native int getMediaCollectionNative(int var1, int var2);
  133.  
  134.    private native String getVersionInfoNative(int var1, int var2);
  135.  
  136.    private native void launchURLNative(String var1, int var2, int var3);
  137.  
  138.    private native int getClosedCaptionNative(int var1, int var2);
  139.  
  140.    private native boolean getIsOnlineNative(int var1, int var2);
  141.  
  142.    private native int getErrorNative(int var1, int var2);
  143.  
  144.    private native boolean getFullScreenNative(int var1, int var2);
  145.  
  146.    private native void setFullScreenNative(boolean var1, int var2, int var3);
  147.  
  148.    public IWMPMedia newMedia(String var1) {
  149.       int var2 = this.newMediaNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  150.       if (var2 >= 0) {
  151.          IWMPMedia var3 = new IWMPMedia();
  152.          if (var3 != null) {
  153.             var3.m_pIWMPMedia = var2;
  154.             var3.m_hWnd = this.m_hWnd;
  155.          }
  156.  
  157.          return var3;
  158.       } else {
  159.          return null;
  160.       }
  161.    }
  162.  
  163.    public IWMPError getError() {
  164.       int var1 = this.getErrorNative(this.m_pIWMPPlayer, this.m_hWnd);
  165.       if (var1 >= 0) {
  166.          IWMPError var2 = new IWMPError();
  167.          if (var2 != null) {
  168.             var2.m_pIWMPError = var1;
  169.             var2.m_hWnd = this.m_hWnd;
  170.          }
  171.  
  172.          return var2;
  173.       } else {
  174.          return null;
  175.       }
  176.    }
  177.  
  178.    public IWMPMediaCollection getMediaCollection() {
  179.       int var1 = this.getMediaCollectionNative(this.m_pIWMPPlayer, this.m_hWnd);
  180.       if (var1 >= 0) {
  181.          IWMPMediaCollection var2 = new IWMPMediaCollection();
  182.          if (var2 != null) {
  183.             var2.m_pIWMPMediaCollection = var1;
  184.             var2.m_hWnd = this.m_hWnd;
  185.          }
  186.  
  187.          return var2;
  188.       } else {
  189.          return null;
  190.       }
  191.    }
  192.  
  193.    public IWMPClosedCaption getClosedCaption() {
  194.       int var1 = this.getClosedCaptionNative(this.m_pIWMPPlayer, this.m_hWnd);
  195.       if (var1 >= 0) {
  196.          IWMPClosedCaption var2 = new IWMPClosedCaption();
  197.          if (var2 != null) {
  198.             var2.m_pIWMPClosedCaption = var1;
  199.             var2.m_hWnd = this.m_hWnd;
  200.          }
  201.  
  202.          return var2;
  203.       } else {
  204.          return null;
  205.       }
  206.    }
  207.  
  208.    public void launchURL(String var1) {
  209.       this.launchURLNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  210.    }
  211.  
  212.    public boolean getStretchToFit() {
  213.       return this.getStretchToFitNative(this.m_pIWMPPlayer, this.m_hWnd);
  214.    }
  215.  
  216.    public void setStretchToFit(boolean var1) {
  217.       this.setStretchToFitNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  218.    }
  219.  
  220.    public boolean getWindowlessVideo() {
  221.       return this.getWindowlessVideoNative(this.m_pIWMPPlayer, this.m_hWnd);
  222.    }
  223.  
  224.    public void setWindowlessVideo(boolean var1) {
  225.       this.setWindowlessVideoNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  226.    }
  227.  
  228.    public boolean getIsOnline() {
  229.       return this.getIsOnlineNative(this.m_pIWMPPlayer, this.m_hWnd);
  230.    }
  231.  
  232.    private native void closeNative(int var1, int var2);
  233.  
  234.    private native int getCdromCollectionNative(int var1, int var2);
  235.  
  236.    private native int newPlaylistNative(String var1, String var2, int var3, int var4);
  237.  
  238.    private native void setUiModeNative(String var1, int var2, int var3);
  239.  
  240.    public IWMPNetwork getNetwork() {
  241.       int var1 = this.getNetworkNative(this.m_pIWMPPlayer, this.m_hWnd);
  242.       if (var1 >= 0) {
  243.          IWMPNetwork var2 = new IWMPNetwork();
  244.          if (var2 != null) {
  245.             var2.m_pIWMPNetwork = var1;
  246.             var2.m_hWnd = this.m_hWnd;
  247.          }
  248.  
  249.          return var2;
  250.       } else {
  251.          return null;
  252.       }
  253.    }
  254.  
  255.    private native String getUiModeNative(int var1, int var2);
  256.  
  257.    public IWMPMedia getCurrentMedia() {
  258.       int var1 = this.getCurrentMediaNative(this.m_pIWMPPlayer, this.m_hWnd);
  259.       if (var1 >= 0) {
  260.          IWMPMedia var2 = new IWMPMedia();
  261.          if (var2 != null) {
  262.             var2.m_pIWMPMedia = var1;
  263.             var2.m_hWnd = this.m_hWnd;
  264.          }
  265.  
  266.          return var2;
  267.       } else {
  268.          return null;
  269.       }
  270.    }
  271.  
  272.    public void setCurrentMedia(IWMPMedia var1) {
  273.       this.setCurrentMediaNative(var1.m_pIWMPMedia, this.m_pIWMPPlayer, this.m_hWnd);
  274.    }
  275.  
  276.    private native boolean getWindowlessVideoNative(int var1, int var2);
  277.  
  278.    private native void setWindowlessVideoNative(boolean var1, int var2, int var3);
  279.  
  280.    private native String getURLNative(int var1, int var2);
  281.  
  282.    private native void setURLNative(String var1, int var2, int var3);
  283.  
  284.    private native int getOpenStateNative(int var1, int var2);
  285.  
  286.    public void openPlayer(String var1) {
  287.       this.openPlayerNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  288.    }
  289.  
  290.    public IWMPSettings getSettings() {
  291.       int var1 = this.getSettingsNative(this.m_pIWMPPlayer, this.m_hWnd);
  292.       if (var1 >= 0) {
  293.          IWMPSettings var2 = new IWMPSettings();
  294.          if (var2 != null) {
  295.             var2.m_pIWMPSettings = var1;
  296.             var2.m_hWnd = this.m_hWnd;
  297.          }
  298.  
  299.          return var2;
  300.       } else {
  301.          return null;
  302.       }
  303.    }
  304.  
  305.    private native int getPlayStateNative(int var1, int var2);
  306.  
  307.    public void close() {
  308.       this.closeNative(this.m_pIWMPPlayer, this.m_hWnd);
  309.    }
  310.  
  311.    public IWMPCdromCollection getCdromCollection() {
  312.       int var1 = this.getCdromCollectionNative(this.m_pIWMPPlayer, this.m_hWnd);
  313.       if (var1 >= 0) {
  314.          IWMPCdromCollection var2 = new IWMPCdromCollection();
  315.          if (var2 != null) {
  316.             var2.m_pIWMPCdromCollection = var1;
  317.             var2.m_hWnd = this.m_hWnd;
  318.          }
  319.  
  320.          return var2;
  321.       } else {
  322.          return null;
  323.       }
  324.    }
  325.  
  326.    private native int getControlsNative(int var1, int var2);
  327.  
  328.    private native int getPlaylistCollectionNative(int var1, int var2);
  329.  
  330.    private native int getNetworkNative(int var1, int var2);
  331.  
  332.    private native int getCurrentPlaylistNative(int var1, int var2);
  333.  
  334.    private native void setCurrentPlaylistNative(int var1, int var2, int var3);
  335.  
  336.    private native String getStatusNative(int var1, int var2);
  337.  
  338.    private native int getDvdNative(int var1, int var2);
  339.  
  340.    private native boolean getEnabledNative(int var1, int var2);
  341.  
  342.    IWMPPlayer() {
  343.    }
  344.  
  345.    public boolean getIsRemote() {
  346.       return this.getIsRemoteNative(this.m_pIWMPPlayer, this.m_hWnd);
  347.    }
  348.  
  349.    private native void setEnabledNative(boolean var1, int var2, int var3);
  350.  
  351.    private native boolean getStretchToFitNative(int var1, int var2);
  352.  
  353.    private native void setStretchToFitNative(boolean var1, int var2, int var3);
  354.  
  355.    private native int getPlayerApplicationNative(int var1, int var2);
  356.  
  357.    private native void openPlayerNative(String var1, int var2, int var3);
  358.  
  359.    public IWMPDVD getDvd() {
  360.       int var1 = this.getDvdNative(this.m_pIWMPPlayer, this.m_hWnd);
  361.       if (var1 >= 0) {
  362.          IWMPDVD var2 = new IWMPDVD();
  363.          if (var2 != null) {
  364.             var2.m_pIWMPDVD = var1;
  365.             var2.m_hWnd = this.m_hWnd;
  366.          }
  367.  
  368.          return var2;
  369.       } else {
  370.          return null;
  371.       }
  372.    }
  373.  
  374.    public void setUiMode(String var1) {
  375.       this.setUiModeNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  376.    }
  377.  
  378.    public String getUiMode() {
  379.       return this.getUiModeNative(this.m_pIWMPPlayer, this.m_hWnd);
  380.    }
  381.  
  382.    public String getVersionInfo() {
  383.       return this.getVersionInfoNative(this.m_pIWMPPlayer, this.m_hWnd);
  384.    }
  385.  
  386.    public String getURL() {
  387.       return this.getURLNative(this.m_pIWMPPlayer, this.m_hWnd);
  388.    }
  389.  
  390.    public void setURL(String var1) {
  391.       this.setURLNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  392.    }
  393.  
  394.    public boolean getEnabled() {
  395.       return this.getEnabledNative(this.m_pIWMPPlayer, this.m_hWnd);
  396.    }
  397.  
  398.    public void setEnabled(boolean var1) {
  399.       this.setEnabledNative(var1, this.m_pIWMPPlayer, this.m_hWnd);
  400.    }
  401.  
  402.    private native int getSettingsNative(int var1, int var2);
  403. }
  404.