Code example for MediaMetadataRetriever

Methods: setDataSource

0
	/** 
	 * Create an MediaMetadataRetriever attached to the file at the given path. 
	 */ 
	public CompatMetadata(String path)
	{ 
		MediaMetadataRetriever data = new MediaMetadataRetriever();
		data.setDataSource(path);
		mData = data;
	} 
 
	/** 
	 * Call {@link MediaMetadataRetriever#extractMetadata(int)}. 
	 */ 
	public String extractMetadata(int keyCode)
	{ 
		return mData.extractMetadata(keyCode);
	} 
 
	/** 
	 * Call {@link MediaMetadataRetriever#release()}.