com.aelitis.azureus.util
Class PlayUtils
java.lang.Object
com.aelitis.azureus.util.PlayUtils
public class PlayUtils
- extends Object
- Author:
- TuxPaper
Method Summary |
static boolean |
canPlayDS(Object ds,
int file_index,
boolean block_for_accuracy)
|
static boolean |
canProgressiveOrIsComplete(TOTorrent torrent)
|
static boolean |
canStreamDS(Object ds,
int file_index,
boolean block_for_accuracy)
|
static boolean |
canUseEMP(DiskManagerFileInfo file)
|
static boolean |
canUseEMP(TOTorrent torrent,
int file_index)
|
static boolean |
canUseEMP(TOTorrent torrent,
int file_index,
boolean complete_only)
|
static int[] |
getExternallyPlayableFileIndexes(Download d,
boolean complete_only)
|
static URL |
getMediaServerContentURL(DiskManagerFileInfo file)
|
static String |
getPlayableFileExtensions()
|
static int |
getPrimaryFileIndex(Download dl)
Deprecated. but still used by EMP |
static boolean |
isEMPAvailable()
|
static boolean |
isExternallyPlayable(Download d,
int file_index,
boolean complete_only)
|
static boolean |
isExternallyPlayable(TOTorrent torrent,
int file_index,
boolean complete_only)
|
static boolean |
isStreamPermitted()
|
static boolean |
playURL(URL url,
String name)
|
static boolean |
prepareForPlay(DownloadManager dm)
|
static void |
setPlayableFileExtensions(String str)
This method available for player plugins to extend playable set if needed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPLETE_PLAY_ONLY
public static final boolean COMPLETE_PLAY_ONLY
- See Also:
- Constant Field Values
fileSizeThreshold
public static final int fileSizeThreshold
- See Also:
- Constant Field Values
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:
- Constant Field Values
PlayUtils
public PlayUtils()
prepareForPlay
public static boolean prepareForPlay(DownloadManager dm)
canProgressiveOrIsComplete
public static boolean canProgressiveOrIsComplete(TOTorrent torrent)
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)
canPlayDS
public static boolean canPlayDS(Object ds,
int file_index,
boolean block_for_accuracy)
isStreamPermitted
public static boolean isStreamPermitted()
canStreamDS
public static boolean canStreamDS(Object ds,
int file_index,
boolean block_for_accuracy)
getMediaServerContentURL
public static URL getMediaServerContentURL(DiskManagerFileInfo file)
- Parameters:
dl
- - Since:
- 3.0.2.3
isExternallyPlayable
public static boolean isExternallyPlayable(Download d,
int file_index,
boolean complete_only)
getExternallyPlayableFileIndexes
public static int[] getExternallyPlayableFileIndexes(Download d,
boolean complete_only)
isExternallyPlayable
public static boolean isExternallyPlayable(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
-
getPrimaryFileIndex
public static int getPrimaryFileIndex(Download dl)
- Deprecated. but still used by EMP
isEMPAvailable
public static boolean isEMPAvailable()
playURL
public static boolean playURL(URL url,
String name)