Class PlayUtils

java.lang.Object
com.biglybt.util.PlayUtils

public class PlayUtils extends Object
  • Field Details

    • COMPLETE_PLAY_ONLY

      public static final boolean COMPLETE_PLAY_ONLY
      See Also:
    • playableFileExtensions

      public static final String playableFileExtensions
      Access to this static is deprecated - use get/setPlayableFileExtensions. For legacy EMP we need to keep it public for the moment...
      See Also:
    • actualPlayableFileExtensions

      private static volatile String actualPlayableFileExtensions
    • hasQuickTime

      private static Boolean hasQuickTime
    • tls_non_block_indicator

      private static ThreadLocal<int[]> tls_non_block_indicator
    • dm_uid

      private static AtomicInteger dm_uid
    • ext_play_cache

      private static final Map<String,Object[]> ext_play_cache
  • Constructor Details

    • PlayUtils

      public PlayUtils()
  • Method Details

    • prepareForPlay

      public static boolean prepareForPlay(DownloadManager dm)
    • canUseEMP

      public static boolean canUseEMP(DiskManagerFileInfo file)
    • canUseEMP

      public static boolean canUseEMP(TOTorrent torrent, int file_index)
    • canUseEMP

      public static boolean canUseEMP(TOTorrent torrent, int file_index, boolean complete_only)
    • canPlay

      private static boolean canPlay(DownloadManager dm, int file_index)
    • canPlay

      private static boolean canPlay(TOTorrent torrent, int file_index)
    • canPlayDS

      public static boolean canPlayDS(Object ds, int file_index, boolean block_for_accuracy)
    • isStreamPermitted

      public static boolean isStreamPermitted()
    • canStream

      private static boolean canStream(DownloadManager dm, int file_index)
    • canStreamDS

      public static boolean canStreamDS(Object ds, int file_index, boolean block_for_accuracy)
    • getMediaServerContentURL

      public static URL getMediaServerContentURL(DiskManagerFileInfo file)
    • isExternallyPlayable

      public static boolean isExternallyPlayable(Download d, int file_index, boolean complete_only)
    • isExternallyPlayableSupport

      private static boolean isExternallyPlayableSupport(Download d, int file_index, boolean complete_only)
    • getExternallyPlayableFileIndexes

      public static int[] getExternallyPlayableFileIndexes(Download d, boolean complete_only)
    • getBestPlayableFile

      public static DiskManagerFileInfo getBestPlayableFile(DownloadManager download)
    • isExternallyPlayable

      private static boolean isExternallyPlayable(DiskManagerFileInfo file)
    • isExternallyPlayable

      public static boolean isExternallyPlayable(TOTorrent torrent, int file_index, boolean complete_only)
    • canPlayViaExternalEMP

      private static boolean canPlayViaExternalEMP(TOTorrent torrent, int file_index, boolean complete_only)
    • getPlayableFileExtensions

      public static String getPlayableFileExtensions()
    • setPlayableFileExtensions

      public static void setPlayableFileExtensions(String str)
      This method available for player plugins to extend playable set if needed
      Parameters:
      str -
    • isEMPAvailable

      public static boolean isEMPAvailable()
    • playURL

      public static boolean playURL(URL url, String name)