Package com.biglybt.util
Class PlayUtils
java.lang.Object
com.biglybt.util.PlayUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
static final boolean
private static AtomicInteger
private static Boolean
static final String
Access to this static is deprecated - use get/setPlayableFileExtensions.private static ThreadLocal
<int[]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
canPlay
(DownloadManager dm, int file_index) private static boolean
static boolean
private static boolean
canPlayViaExternalEMP
(TOTorrent torrent, int file_index, boolean complete_only) private static boolean
canStream
(DownloadManager dm, int file_index) static boolean
canStreamDS
(Object ds, int file_index, boolean block_for_accuracy) static boolean
static boolean
static boolean
canUseEMP
(DiskManagerFileInfo file) static DiskManagerFileInfo
getBestPlayableFile
(DownloadManager download) static int[]
getExternallyPlayableFileIndexes
(Download d, boolean complete_only) static URL
static String
static boolean
static boolean
isExternallyPlayable
(TOTorrent torrent, int file_index, boolean complete_only) private static boolean
static boolean
isExternallyPlayable
(Download d, int file_index, boolean complete_only) private static boolean
isExternallyPlayableSupport
(Download d, int file_index, boolean complete_only) static boolean
static boolean
static boolean
static void
This method available for player plugins to extend playable set if needed
-
Field Details
-
COMPLETE_PLAY_ONLY
public static final boolean COMPLETE_PLAY_ONLY- See Also:
-
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
-
hasQuickTime
-
tls_non_block_indicator
-
dm_uid
-
ext_play_cache
-
-
Constructor Details
-
PlayUtils
public PlayUtils()
-
-
Method Details
-
prepareForPlay
-
canUseEMP
-
canUseEMP
-
canUseEMP
-
canPlay
-
canPlay
-
canPlayDS
-
isStreamPermitted
public static boolean isStreamPermitted() -
canStream
-
canStreamDS
-
getMediaServerContentURL
-
isExternallyPlayable
-
isExternallyPlayableSupport
private static boolean isExternallyPlayableSupport(Download d, int file_index, boolean complete_only) -
getExternallyPlayableFileIndexes
-
getBestPlayableFile
-
isExternallyPlayable
-
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
-
setPlayableFileExtensions
This method available for player plugins to extend playable set if needed- Parameters:
str
-
-
isEMPAvailable
public static boolean isEMPAvailable() -
playURL
-