Class TorrentListViewsUtils

java.lang.Object
com.biglybt.ui.swt.views.skin.TorrentListViewsUtils

public class TorrentListViewsUtils extends Object
  • Field Details

    • current_stream

      private static StreamManagerDownload current_stream
    • stream_viewer

      private static TextViewerWindow stream_viewer
    • emp_installing

      private static boolean emp_installing
  • Constructor Details

    • TorrentListViewsUtils

      public TorrentListViewsUtils()
  • Method Details

    • playOrStreamDataSource

      public static void playOrStreamDataSource(Object ds, boolean launch_already_checked)
    • playOrStreamDataSource

      public static void playOrStreamDataSource(Object ds, String referal, boolean launch_already_checked, boolean complete_only)
    • downloadDataSource

      public static void downloadDataSource(Object ds, boolean playNow, String referal)
    • playOrStream

      public static void playOrStream(DownloadManager dm, int file_index, boolean complete_only, boolean launch_already_checked)
    • playOrStream

      private static void playOrStream(DownloadManager dm, int file_index, boolean complete_only, boolean launch_already_checked, String referal)
    • _playOrStream

      private static void _playOrStream(DownloadManager dm, int file_index, boolean complete_only, String referal)
    • debug

      private static void debug(String string)
      Parameters:
      string -
      Since:
      3.0.3.3
    • installEMP

      private static int installEMP(String name, Runnable target)
      Returns:
      0=good, 1 = fail, 2 = abandon
    • openInEMP

      private static int openInEMP(DownloadManager dm, int _file_index, boolean complete_only, String referal)
      New version accepts map with ASX parameters. If the params are null then is uses the old version to start the player. If the
      Parameters:
      dm - - DownloadManager
      Returns:
      - int: 0 = ok, 1 = fail, 2 = abandon, installation in progress
      Since:
      3.0.4.4 -
    • openInEMP

      public static int openInEMP(String name, URL url)
    • playOrStream

      public static void playOrStream(DownloadManager dm, int file_index)
      Plays or Streams a Download
      Parameters:
      dm -
      file_index - Index of file in torrent to play. -1 to auto-pick "best" play file.