YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.ContentDuration Class Reference

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...

Collaboration diagram for de.yaacc.share.ContentDuration:
Collaboration graph

Static Public Member Functions

static long read (Context context, String uriText, String mimeType)
 

Detailed Description

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.

Member Function Documentation

◆ read()

static long de.yaacc.share.ContentDuration.read ( Context context,
String uriText,
String mimeType )
static
Parameters
mimeTypethe 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
Here is the call graph for this function:

The documentation for this class was generated from the following file: