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

Builds the PlayableItem of a shared file or link: the DIDL item class follows the MIME type (audio: music track, video: video item, image: image item). More...

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

Static Public Member Functions

static PlayableItem create (String mimeType, String title, Uri uri, long sizeBytes, long durationMillis, long bitrate)
 

Detailed Description

Builds the PlayableItem of a shared file or link: the DIDL item class follows the MIME type (audio: music track, video: video item, image: image item).

Plain object building, no I/O.

Member Function Documentation

◆ create()

static PlayableItem de.yaacc.share.SharedItemFactory.create ( String mimeType,
String title,
Uri uri,
long sizeBytes,
long durationMillis,
long bitrate )
static
Parameters
mimeTypethe type; only audio/..., video/... and image/... are built
titlethe (cleaned) title
urithe URI the player fetches
sizeBytesthe size if known, otherwise 0 or less (then no size is announced)
durationMillisthe duration if known, otherwise 0 or less (then none is announced)
bitratethe bitrate if known, otherwise 0 or less
Returns
the item, or null if the type is none of the three or cannot be parsed

Referenced by de.yaacc.share.QueueShareBinder.bind(), and de.yaacc.upnp.UpnpClient.createPlayableItem().

Here is the call graph for this function:
Here is the caller graph for this function:

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