Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Changes To XDND types

Changes to "XDND types" between 2015-04-27 22:55:41 and 2015-04-27 22:57:55

1

2
3

4
5
6
7
8
9
10

1
2

3
4
5
6
7
8
9
10
-
+

-
+







There's drag and drop support in streamtuner2 since 2.1.7, primarily meant for exporting individual stations into .XSPF or .PLS files, or dragging into audio players.
There's drag and drop support in streamtuner2 [since 2.1.7](technote/e469da47ac9778f590c46d52feb17e11787848e0), primarily meant for exporting individual stations into .XSPF or .PLS files, or dragging them into audio players.

There is also support for exact XDND payloads. Most BSD/Linux desktop applications support little more than `STRING` or `text/uri-list` file dragging.  There's no standardization beyond that. Which is because nobody bothers to document anything. As exception to the rule:
There is also support for proper XDND payloads. However most BSD/Linux desktop applications support little more than `STRING` or `text/uri-list` file dragging.  There's no standardization in or beyond that. Which is because nobody bothers to document anything. So as exception to the rule:


| drag target MIME type | info id | content / payload | actions |
---------------------------------------------------------
| <kbd>audio/x-mpegurl</kbd> | 20 | `#EXTM3U`<br>`#EXTINF;-1,Title`<br>`http://example.org/stream.mp3`<br>… | DEFAULT+COPY |
| <kbd>application/x-scpls</kbd> | 21 | `[Playlist]`<br>`File1=http://example.org/stream.mp3`<br>`Title1=Radio`<br>… | DEFAULT+COPY |
| <kbd>application/xspf+xml</kbd> | 22 | `<playlist xmlns=…>`<br>`<track><title>Radio</title>`<br>`<location>http://example.org/stream.mp3</location>`<br>… | DEFAULT+COPY |
18
19
20
21
22
23
24

25


26



27
28
29
30
31
18
19
20
21
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







+

+
+
-
+
+
+





| <kbd>TEXT</kbd><br> <kbd>STRING</kbd><br> <kbd>UTF8_STRING</kbd><br> <kbd>text/plain</kbd> | 5 | `http://example.org:8309/listen.pls`<br>`# Title: Radio`<br>`# Description: Current song etc..` | DEFAULT+COPY |
| <kbd>json/vnd.streamtuner2.station</kbd> <br>*(internal JSON format)* | 51 | `[`<br>&nbsp;`{`<br>&nbsp;&nbsp;`"url": "http://example.org:8429/.ogg",`<br>&nbsp;&nbsp;`"title": "Radio station name"`<br>&nbsp;`},`<br>… | SAMEAPP+ACTIONMOVE |

<style>
 .content table td { border-bottom: 3px dashed #ddd; }
 .content table td { font-size: 80%; }
</style>
<small>

 - The example payloads are abstracted here.
 - The info ids are just Gtk-internal.
The example payloads are abstracted here. The info ids are just Gtk-internal. Ordering doesn't reflect priority handling.
 - Ordering doesn't reflect priority handling.

</small>

As said, only <kbd>text/uri-list</kbd> is used in practice.  It doesn't allow actual streaming URLs being transferred. Instead streamtuner2 has to create temporary export files. And since this dumb approach doesn't allow any content-negotation, a preconfigured default playlist format will be used for temp files. (Defaults to XSPF for crashing Rhythmbox.)

Alternatively there's <kbd>text/iri-list</kbd> now (yes, why not go with the century?) and <kbd>url/direct</kbd> to get a direct streaming URL/IRL.