dragonIcyMetadata QML Value Type

ICY metadata from a radio stream. More...

Import Statement: import org.kde.dragonmediabackend
In C++: DragonIcyMetadata

Properties

Detailed Description

dragonIcyMetadata carries the ICY metadata of the track currently playing on a radio stream. It is delivered by DragonPlayer::currentPlayingForRadiosChanged:

 DragonPlayer {
     onCurrentPlayingForRadiosChanged: (metadata) => {
         nowPlaying.text = metadata.streamTitle
     }
 }

The well-known fields streamTitle and streamUrl are exposed as properties; any other fields the stream provided are available in C++ through customFields(). An empty value type is null, which is reported by isNull.

Property Documentation

isNull : bool [read-only]

Whether the value type is empty and no metadata was set.

streamTitle : string

The ICY stream title, typically the artist and track name of the song currently playing. Empty when the stream did not provide one; use hasStreamTitle() to distinguish that case.

streamUrl : string

The ICY stream URL, usually the stream's home page. Empty when the stream did not provide one; use hasStreamUrl() to distinguish that case.