The duration of a picked audio or video file, read when its share is created so the receiver and the player know how long the item is (a receiver shows 0:00:00 without it, and the next item is started by it).
More...
|
| static long | read (Context context, String uriText, String mimeType) |
| |
The duration of a picked audio or video file, read when its share is created so the receiver and the player know how long the item is (a receiver shows 0:00:00 without it, and the next item is started by it).
One bounded call per provider; an unknown duration is -1. Never logs a uri or a name.
◆ read()
| static long de.yaacc.share.ContentDuration.read |
( |
Context | context, |
|
|
String | uriText, |
|
|
String | mimeType ) |
|
static |
- Parameters
-
| mimeType | the accepted type of the file; only audio and video have a duration |
- Returns
- the duration in milliseconds, or -1 when unknown, not audio or video, or the provider did not answer in time
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/share/ContentDuration.java