public class

ProbeMediaInfoTools

extends Object
java.lang.Object
   ↳ com.ksyun.media.shortvideo.utils.ProbeMediaInfoTools

Class Overview

get MediaInfo

Summary

Nested Classes
class ProbeMediaInfoTools.MediaInfo  
interface ProbeMediaInfoTools.ProbeMediaInfoListener return MediaInfo for probeMediaInfo  
Public Constructors
ProbeMediaInfoTools()
Public Methods
Bitmap getVideoThumbnailAtTime(String url, long seekTime, int width, int height, boolean accurate)
get thumbnail
void probeMediaInfo(String url, ProbeMediaInfoTools.ProbeMediaInfoListener listener)
get media info
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProbeMediaInfoTools ()

Public Methods

public Bitmap getVideoThumbnailAtTime (String url, long seekTime, int width, int height, boolean accurate)

get thumbnail

Parameters
url the path for file
seekTime the time for thumbnail ms
width the width of thumbnail
height the height of thumbnail
accurate 是否精准截图, TRUE为精准截图,反之则否

public void probeMediaInfo (String url, ProbeMediaInfoTools.ProbeMediaInfoListener listener)

get media info

Parameters
url the path for file
listener return