public class MediaInfo
extends java.lang.Object
构造器和说明 |
---|
MediaInfo() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getCoverUrl()
Query the album cover of the media.
|
int |
getDuration()
Query the duration of the media.
|
java.lang.String |
getMediaType()
Query the type of the media: video or audio.
|
java.lang.String |
getStatus()
Query the status of the media.
|
java.util.List<Thumbnail> |
getThumbnailList()
Query the URL of the thumbnail image.
|
java.lang.String |
getTitle()
Query the title information.
|
long |
getTotalBitrate()
Retrievable bit rate (VOD and multi-bit rate values are 0; Should use TrackInfo's videoBitrate value. )
|
java.util.List<TrackInfo> |
getTrackInfos()
Query all stream information of the media.
|
java.lang.String |
getTransCodeMode()
Query the transcoding mode.
|
java.lang.String |
getVideoId()
Query the ID of the media.
|
void |
setDuration(int duration)
Set the duration of the media.
|
void |
setTrackInfos(TrackInfo[] trackInfos) |
public void setTrackInfos(TrackInfo[] trackInfos)
public java.lang.String getTitle()
public void setDuration(int duration)
duration
- The media duration in milliseconds.public int getDuration()
public java.lang.String getStatus()
public java.lang.String getVideoId()
public java.lang.String getCoverUrl()
public java.util.List<TrackInfo> getTrackInfos()
TrackInfo
.public java.lang.String getMediaType()
public java.lang.String getTransCodeMode()
public java.util.List<Thumbnail> getThumbnailList()
public long getTotalBitrate()