MediaNode

Stores properties describing an element found within a media source.

Synopsis:

#include <qplayer/types.h>

class MediaNode {

public:
    enum Type {
        UNKNOWN = 0,
        FOLDER,
        AUDIO,
        VIDEO,
        RESERVED1,
        PHOTO,
        NUMBER
    };

    QString id;
    int mediaSourceId;
    QString name;
    QUrl url;
    Type type;
    int count;
};

Data:

QString id
Unique ID of the media node.
int mediaSourceId
ID of the media source on which the media node is located.
QString name
Name of the media node.
QUrl url
Media node URL.
Type type
Media node type. Can be one of:
UNKNOWN
Unknown file category.
FOLDER
Folder.
AUDIO
Audio file.
VIDEO
Video file.
RESERVED1
Reserved for future use.
PHOTO
Photo file.
NUMBER
End-of-list identifier.
int count
Number of children contained in this node (for folders, -1 means unknown).

Library:

libqplayer

Description:

Stores properties describing an element found within a media source. A media node can be a folder, audio track, video item, or photo. Folders can contain other media nodes (i.e., children). All types of media nodes are found by browsing or searching a media source.