public class PolyvVideoVO
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
PolyvVideoVO.Videokeyframe |
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
MODE_AUDIO |
static java.lang.String |
MODE_VIDEO |
构造器和说明 |
---|
PolyvVideoVO() |
PolyvVideoVO(int fullmp4,
java.lang.String vid,
int outBr,
java.lang.String teaserUrl,
java.lang.String swfLink,
java.lang.String hlsLevel,
int myBr,
int status,
int seed,
java.lang.String videoLink,
java.util.Map<java.lang.String,java.lang.String> videoSRT,
java.util.List<java.lang.String> mp4,
java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> resolution,
int teaserShow,
java.lang.String hlsIndex,
java.util.List<java.lang.String> hls,
int dfNum,
int seedConst,
boolean interactiveVideo,
java.util.List<java.lang.Long> fileSize,
java.lang.String duration,
java.lang.String title,
java.lang.String firstImage,
double ratio,
java.lang.String disableHost,
com.easefun.polyvsdk.vo.PolyvPlayerVO player,
int openDanmu,
boolean outflow,
java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> adMatterMap,
java.lang.String validUrl,
int settingType,
int teaserTime,
java.lang.String enableHost,
boolean timeoutFlow,
boolean isFromDownload,
java.util.List<java.lang.Long> tsFileSize,
java.util.List<java.lang.Long> cataTree,
long cataId,
java.lang.String hls15XIndex,
java.util.List<java.lang.String> hls15X,
java.lang.String hlsIndex2,
java.util.List<java.lang.String> hls2,
java.util.List<java.lang.String> packageUrl,
java.lang.String keepsource,
java.lang.String playSourceUrl,
long sourceFileSize,
long timestamp,
java.lang.String aac_link,
java.util.List<java.lang.String> cdnTypes) |
PolyvVideoVO(int outBr,
java.lang.String teaserUrl,
java.lang.String swfLink,
java.lang.String hlsLevel,
int myBr,
int status,
int seed,
java.lang.String videoLink,
java.util.Map<java.lang.String,java.lang.String> videoSRT,
java.util.List<java.lang.String> mp4,
java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> resolution,
int teaserShow,
java.lang.String hlsIndex,
java.util.List<java.lang.String> hls,
int dfNum,
boolean interactiveVideo,
java.util.List<java.lang.Long> fileSize,
java.lang.String duration,
java.lang.String title,
java.lang.String firstImage,
double ratio,
java.lang.String disableHost,
com.easefun.polyvsdk.vo.PolyvPlayerVO player,
int openDanmu,
boolean outflow,
java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> adMatterMap,
java.lang.String validUrl,
int settingType,
int teaserTime,
java.lang.String enableHost,
boolean timeoutFlow,
boolean isFromDownload,
int fullmp4,
java.util.List<java.lang.Long> tsFileSize,
java.lang.String cataTree,
long cataId,
java.lang.String hls15XIndex,
java.util.List<java.lang.String> hls15X,
int seedConst,
java.lang.String hlsIndex2,
java.util.List<java.lang.String> hls2,
java.util.List<java.lang.String> packageUrl,
java.lang.String keepsource,
java.lang.String playSourceUrl,
long sourceFileSize) |
PolyvVideoVO(int outBr,
java.lang.String teaserUrl,
java.lang.String swfLink,
java.lang.String hlsLevel,
int myBr,
int status,
int seed,
java.lang.String videoLink,
java.util.Map<java.lang.String,java.lang.String> videoSRT,
java.util.List<java.lang.String> mp4,
java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> resolution,
int teaserShow,
java.lang.String hlsIndex,
java.util.List<java.lang.String> hls,
int dfNum,
boolean interactiveVideo,
java.util.List<java.lang.Long> fileSize,
java.lang.String duration,
java.lang.String title,
java.lang.String firstImage,
double ratio,
java.lang.String disableHost,
com.easefun.polyvsdk.vo.PolyvPlayerVO player,
int openDanmu,
boolean outflow,
java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> adMatterMap,
java.lang.String validUrl,
int settingType,
int teaserTime,
java.lang.String enableHost,
boolean timeoutFlow,
boolean isFromDownload,
int fullmp4,
java.util.List<java.lang.Long> tsFileSize,
java.lang.String cataTree,
long cataId,
java.lang.String hls15XIndex,
java.util.List<java.lang.String> hls15X,
int seedConst,
java.lang.String hlsIndex2,
java.util.List<java.lang.String> hls2,
java.util.List<java.lang.String> packageUrl,
java.lang.String keepsource,
java.lang.String playSourceUrl,
long sourceFileSize,
long timestamp,
java.lang.String aac_link) |
限定符和类型 | 方法和说明 |
---|---|
static Video |
copyToVideo(PolyvVideoVO polyvVideoVO) |
static PolyvVideoVO |
fromJSONObject(java.lang.String vid,
org.json.JSONObject jsonObject)
格式化JSONObject to video
|
static PolyvVideoVO |
fromJSONObject(java.lang.String vid,
org.json.JSONObject jsonObject,
boolean isFromDownload)
格式化JSONObject to video
|
long |
getAac_filesize() |
java.lang.String |
getAacLink() |
java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> |
getAdMatterMap() |
long |
getCataId() |
java.lang.String |
getCataTree() |
java.util.List<java.lang.Long> |
getCataTreeList() |
java.util.List<java.lang.String> |
getCdnTypes()
cnd类型
|
int |
getDfNum() |
java.lang.String |
getDisableHost() |
java.lang.String |
getDuration() |
long |
getDuration2Millisecond()
获取总时长
|
java.lang.String |
getEnableHost() |
java.util.List<java.lang.Long> |
getFileSize() |
long |
getFileSize(int bitRate)
已过时。
|
java.util.List<java.lang.Long> |
getFileSizeList()
返回文件大小列表,按照码率从小到大的顺序保存。
|
long |
getFileSizeMatchFileType(int bitrate,
int fileType) |
long |
getFileSizeMatchVideoType(int bitrate)
自动匹配视频类型返回对应码率(清晰度)的文件大小。
|
long |
getFileSizeMatchVideoType(int bitrate,
int fileType) |
java.lang.String |
getFirstImage() |
int |
getFullmp4() |
java.util.List<java.lang.String> |
getHls_backup() |
java.util.List<java.lang.String> |
getHls() |
java.util.List<java.lang.String> |
getHls15X() |
java.lang.String |
getHls15XIndex() |
java.util.List<java.lang.String> |
getHls2() |
java.lang.String |
getHlsIndex() |
java.lang.String |
getHlsIndex2() |
java.lang.String |
getHlsLevel() |
long |
getHttpTTL() |
java.lang.String |
getKeepsource() |
java.util.List<java.lang.String> |
getMp4() |
int |
getMyBr() |
int |
getOpenDanmu() |
int |
getOutBr() |
java.util.List<java.lang.String> |
getPackageUrl() |
com.easefun.polyvsdk.vo.PolyvPlayerVO |
getPlayer() |
java.lang.String |
getPlaySourceUrl() |
java.lang.String |
getPpt() |
double |
getRatio() |
java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> |
getResolution() |
long |
getSaveTimeMillis() |
int |
getSeed() |
int |
getSeedConst() |
int |
getSettingType() |
long |
getSourceFileSize()
已过时。
|
int |
getStatus() |
java.lang.String |
getSwfLink() |
int |
getTeaserShow() |
int |
getTeaserTime() |
java.lang.String |
getTeaserUrl() |
long |
getTimestamp() |
java.lang.String |
getTitle() |
java.util.List<java.lang.String> |
getTsCdns()
cdn域名列表
|
java.util.List<java.lang.Long> |
getTsFileSize() |
long |
getTsFileSize(int bitRate)
已过时。
|
java.lang.String |
getValidUrl() |
java.lang.String |
getVid() |
java.util.List<PolyvVideoVO.Videokeyframe> |
getVideokeyframes()
打点列表
|
java.lang.String |
getVideoLink() |
java.util.Map<java.lang.String,java.lang.String> |
getVideoSRT() |
int |
getVideoType()
取得视频类型
|
boolean |
hasAudioPath()
是否有音频播放地址
|
boolean |
hasPPT() |
boolean |
isFromDownload() |
boolean |
isHaveAdvertFirst()
是否有片头广告
|
boolean |
isHaveAdvertLast()
是否有片尾广告
|
boolean |
isHaveTeaser()
是否有片头
|
boolean |
isInteractiveVideo() |
boolean |
isMp3Source() |
boolean |
isOutflow() |
boolean |
isPpt() |
boolean |
isSecure() |
boolean |
isTimeoutFlow() |
static void |
loadVideo(java.lang.String vid,
PolyvVideoVOLoadedListener listener)
已过时。
|
void |
setAac_filesize(long aac_filesize) |
void |
setAacLink(java.lang.String aac_link) |
void |
setCdnTypes(java.util.List<java.lang.String> cdnTypes) |
void |
setFromDownload(boolean isFromDownload) |
void |
setFullmp4(int fullmp4) |
void |
setHls_backup(java.util.List<java.lang.String> hls_backup) |
void |
setHttpTTL(long httpTTL) |
void |
setPpt(java.lang.String ppt) |
void |
setSaveTimeMillis(long saveTimeMillis) |
void |
setSecure(boolean secure) |
void |
setTsCdns(java.util.List<java.lang.String> tsCdns) |
void |
setVid(java.lang.String vid) |
void |
setVideokeyframes(java.util.List<PolyvVideoVO.Videokeyframe> videokeyframes) |
public static final java.lang.String MODE_VIDEO
public static final java.lang.String MODE_AUDIO
public PolyvVideoVO(int fullmp4, java.lang.String vid, int outBr, java.lang.String teaserUrl, java.lang.String swfLink, java.lang.String hlsLevel, int myBr, int status, int seed, java.lang.String videoLink, java.util.Map<java.lang.String,java.lang.String> videoSRT, java.util.List<java.lang.String> mp4, java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> resolution, int teaserShow, java.lang.String hlsIndex, java.util.List<java.lang.String> hls, int dfNum, int seedConst, boolean interactiveVideo, java.util.List<java.lang.Long> fileSize, java.lang.String duration, java.lang.String title, java.lang.String firstImage, double ratio, java.lang.String disableHost, com.easefun.polyvsdk.vo.PolyvPlayerVO player, int openDanmu, boolean outflow, java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> adMatterMap, java.lang.String validUrl, int settingType, int teaserTime, java.lang.String enableHost, boolean timeoutFlow, boolean isFromDownload, java.util.List<java.lang.Long> tsFileSize, java.util.List<java.lang.Long> cataTree, long cataId, java.lang.String hls15XIndex, java.util.List<java.lang.String> hls15X, java.lang.String hlsIndex2, java.util.List<java.lang.String> hls2, java.util.List<java.lang.String> packageUrl, java.lang.String keepsource, java.lang.String playSourceUrl, long sourceFileSize, long timestamp, java.lang.String aac_link, java.util.List<java.lang.String> cdnTypes)
public PolyvVideoVO()
public PolyvVideoVO(int outBr, java.lang.String teaserUrl, java.lang.String swfLink, java.lang.String hlsLevel, int myBr, int status, int seed, java.lang.String videoLink, java.util.Map<java.lang.String,java.lang.String> videoSRT, java.util.List<java.lang.String> mp4, java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> resolution, int teaserShow, java.lang.String hlsIndex, java.util.List<java.lang.String> hls, int dfNum, boolean interactiveVideo, java.util.List<java.lang.Long> fileSize, java.lang.String duration, java.lang.String title, java.lang.String firstImage, double ratio, java.lang.String disableHost, com.easefun.polyvsdk.vo.PolyvPlayerVO player, int openDanmu, boolean outflow, java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> adMatterMap, java.lang.String validUrl, int settingType, int teaserTime, java.lang.String enableHost, boolean timeoutFlow, boolean isFromDownload, int fullmp4, java.util.List<java.lang.Long> tsFileSize, java.lang.String cataTree, long cataId, java.lang.String hls15XIndex, java.util.List<java.lang.String> hls15X, int seedConst, java.lang.String hlsIndex2, java.util.List<java.lang.String> hls2, java.util.List<java.lang.String> packageUrl, java.lang.String keepsource, java.lang.String playSourceUrl, long sourceFileSize)
public PolyvVideoVO(int outBr, java.lang.String teaserUrl, java.lang.String swfLink, java.lang.String hlsLevel, int myBr, int status, int seed, java.lang.String videoLink, java.util.Map<java.lang.String,java.lang.String> videoSRT, java.util.List<java.lang.String> mp4, java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> resolution, int teaserShow, java.lang.String hlsIndex, java.util.List<java.lang.String> hls, int dfNum, boolean interactiveVideo, java.util.List<java.lang.Long> fileSize, java.lang.String duration, java.lang.String title, java.lang.String firstImage, double ratio, java.lang.String disableHost, com.easefun.polyvsdk.vo.PolyvPlayerVO player, int openDanmu, boolean outflow, java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> adMatterMap, java.lang.String validUrl, int settingType, int teaserTime, java.lang.String enableHost, boolean timeoutFlow, boolean isFromDownload, int fullmp4, java.util.List<java.lang.Long> tsFileSize, java.lang.String cataTree, long cataId, java.lang.String hls15XIndex, java.util.List<java.lang.String> hls15X, int seedConst, java.lang.String hlsIndex2, java.util.List<java.lang.String> hls2, java.util.List<java.lang.String> packageUrl, java.lang.String keepsource, java.lang.String playSourceUrl, long sourceFileSize, long timestamp, java.lang.String aac_link)
public java.util.List<java.lang.String> getHls_backup()
public void setHls_backup(java.util.List<java.lang.String> hls_backup)
public long getHttpTTL()
public void setHttpTTL(long httpTTL)
@Deprecated public static void loadVideo(java.lang.String vid, PolyvVideoVOLoadedListener listener)
PolyvSDKUtil.loadVideoJSON2Video(java.lang.String)
,此方法中也是直接调用PolyvSDKUtil.loadVideoJSON2Video(java.lang.String)
。vid
- 视频idlistener
- 监听回调@Deprecated public long getFileSize(int bitRate)
getFileSizeMatchVideoType(int)
bitRate
- 码率(清晰度)getFileSizeMatchVideoType(int)
public static PolyvVideoVO fromJSONObject(java.lang.String vid, org.json.JSONObject jsonObject)
vid
- 视频idjsonObject
- public static PolyvVideoVO fromJSONObject(java.lang.String vid, org.json.JSONObject jsonObject, boolean isFromDownload)
vid
- 视频idjsonObject
- isFromDownload
- 是否从下载,默认false
public static Video copyToVideo(PolyvVideoVO polyvVideoVO)
public java.lang.String getAacLink()
public void setAacLink(java.lang.String aac_link)
public int getFullmp4()
public void setFullmp4(int fullmp4)
public java.lang.String getVid()
public void setVid(java.lang.String vid)
public int getOutBr()
public java.lang.String getTeaserUrl()
public java.lang.String getSwfLink()
public java.lang.String getHlsLevel()
public int getMyBr()
public int getStatus()
public int getSeed()
public java.lang.String getVideoLink()
public java.util.Map<java.lang.String,java.lang.String> getVideoSRT()
public java.util.List<java.lang.String> getMp4()
public java.util.List<com.easefun.polyvsdk.vo.PolyvResolutionVO> getResolution()
public int getTeaserShow()
public java.lang.String getHlsIndex()
public java.util.List<java.lang.String> getHls()
public int getDfNum()
public int getSeedConst()
public boolean isInteractiveVideo()
public java.util.List<java.lang.Long> getFileSize()
public java.lang.String getDuration()
public long getDuration2Millisecond()
public void setAac_filesize(long aac_filesize)
public long getAac_filesize()
public java.lang.String getTitle()
public java.lang.String getFirstImage()
public double getRatio()
public java.lang.String getDisableHost()
public com.easefun.polyvsdk.vo.PolyvPlayerVO getPlayer()
public int getOpenDanmu()
public boolean isOutflow()
public java.util.Map<java.lang.String,java.util.List<PolyvADMatterVO>> getAdMatterMap()
public java.lang.String getValidUrl()
public int getSettingType()
public int getTeaserTime()
public java.lang.String getEnableHost()
public boolean isTimeoutFlow()
public boolean isFromDownload()
public void setFromDownload(boolean isFromDownload)
public java.util.List<java.lang.Long> getTsFileSize()
@Deprecated public long getTsFileSize(int bitRate)
getFileSizeMatchVideoType(int)
。bitRate
- 码率(清晰度)getFileSizeMatchVideoType(int)
public java.lang.String getCataTree()
public java.util.List<java.lang.Long> getCataTreeList()
public long getCataId()
public java.lang.String getHls15XIndex()
public java.util.List<java.lang.String> getHls15X()
public java.lang.String getHlsIndex2()
public java.util.List<java.lang.String> getHls2()
public java.util.List<java.lang.String> getPackageUrl()
public java.lang.String getKeepsource()
public java.lang.String getPlaySourceUrl()
@Deprecated public long getSourceFileSize()
getFileSizeMatchVideoType(int)
public long getTimestamp()
public boolean isMp3Source()
public long getFileSizeMatchFileType(int bitrate, int fileType)
public long getFileSizeMatchVideoType(int bitrate, int fileType)
public long getFileSizeMatchVideoType(int bitrate)
bitrate
- 码率(清晰度)public java.util.List<java.lang.Long> getFileSizeList()
public int getVideoType()
public boolean isHaveAdvertFirst()
true
:有片头广告false
:没有片头广告public boolean isHaveAdvertLast()
true
:有片尾广告false
:没有片尾广告public boolean isHaveTeaser()
true
:有片头false
:没有片头public boolean hasAudioPath()
public java.util.List<java.lang.String> getCdnTypes()
public void setCdnTypes(java.util.List<java.lang.String> cdnTypes)
public java.util.List<java.lang.String> getTsCdns()
public void setTsCdns(java.util.List<java.lang.String> tsCdns)
public java.util.List<PolyvVideoVO.Videokeyframe> getVideokeyframes()
public void setVideokeyframes(java.util.List<PolyvVideoVO.Videokeyframe> videokeyframes)
public boolean isSecure()
public void setSecure(boolean secure)
public long getSaveTimeMillis()
public void setSaveTimeMillis(long saveTimeMillis)
public java.lang.String getPpt()
public void setPpt(java.lang.String ppt)
public boolean hasPPT()
public boolean isPpt()