Difference between revisions of "M3U/PLS Files"
(→Syntax) |
|||
Line 24: | Line 24: | ||
* <code>"audio"</code>: Audio items. | * <code>"audio"</code>: Audio items. | ||
* <code>"image"</code>: Image items. | * <code>"image"</code>: Image items. | ||
− | * <code>"plugin"</code>: Plugin items. This is a special type that allows you to create playlists with plugin items. For this type, version '''0.1.40''' or higher is needed. The playlist items must be indicated in the syntax <code>{PLATFORM}:{ID}</code>. The <code>{PLATFORM}</code> part must be replaced with the video/audio hosting platform name (i.e. <code>youtube</code>, <code>vimeo</code>, <code>dailymotion</code>, <code>twitch</code>, <code>facebook</code>, <code>wistia</code>, or <code>soundcloud</code>). The <code>{ID}</code> part must be replaced with the corresponding platform content ID (e.g. the YouTube video ID). Please see | + | * <code>"plugin"</code>: Plugin items. This is a special type that allows you to create playlists with plugin items. For this type, version '''0.1.40''' or higher is needed. The playlist items must be indicated in the syntax <code>{PLATFORM}:{ID}</code>. The <code>{PLATFORM}</code> part must be replaced with the video/audio hosting platform name (i.e. <code>youtube</code>, <code>vimeo</code>, <code>dailymotion</code>, <code>twitch</code>, <code>facebook</code>, <code>wistia</code>, or <code>soundcloud</code>). The <code>{ID}</code> part must be replaced with the corresponding platform content ID (e.g. the YouTube video ID). Please see [[YouTube, Vimeo & Co.]] for more information about the plugin feature. |
|- | |- | ||
| <code>url</code> || <code>string</code> || <code>null</code> || '''Yes''' || data-sort-value=30|'''0.1.30''' || | | <code>url</code> || <code>string</code> || <code>null</code> || '''Yes''' || data-sort-value=30|'''0.1.30''' || |
Revision as of 12:59, 14 January 2021
It is possible to convert M3U/PLS files to JSON files (i.e. Media Station X content pages) with following URLs.
- M3U:
http://msx.benzac.de/services/m3u.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&url={URL}
- PLS:
http://msx.benzac.de/services/pls.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&url={URL}
Note: For HTTP Live Streaming (HLS) files (i.e. M3U8 files), please use the video/audio action (e.g. video:http://link.to.hls.m3u8
), because these URLs are only suitable for converting simple playlist files. Please note that this is an online service. Therefore, only publicly available playlist files can be converted. Generally, it is more recommended to host JSON files instead of converting playlist files as they provide much more functionality.
Syntax[edit]
Parameter | Type | Default Value | Mandatory | Since Version | Description |
---|---|---|---|---|---|
headline |
string |
"Playlist" |
No | 0.1.30 |
The headline of the content page. It is recommended to encode the value to ensure that it is evaluated correctly (e.g. |
background |
string |
null |
No | 0.1.30 |
The background image of the content page. It is recommended to encode the value to ensure that it is evaluated correctly (e.g. |
type |
string |
"audio" |
No | 0.1.30 |
The type of the content page items.
|
url |
string |
null |
Yes | 0.1.30 |
The URL of the M3U/PLS file. It is recommended to encode the value to ensure that it is evaluated correctly (e.g. |
Example[edit]
Screenshot[edit]
Code[edit]
{
"headline": "Playlist Examples",
"menu": [{
"label": "Playlist Data",
"data": "http://msx.benzac.de/services/m3u.php?url=http://msx.benzac.de/info/data/m3u/audios.m3u"
}, {
"label": "Playlist Actions",
"data": {
"template": {
"type": "control",
"layout": "0,0,12,1",
"color": "msx-glass"
},
"items": [{
"icon": "msx-white-soft:movie",
"label": "Show video playlist",
"action": "content:http://msx.benzac.de/services/m3u.php?type=video&url=http://msx.benzac.de/info/data/m3u/videos.m3u"
}, {
"icon": "msx-white-soft:movie",
"label": "Start video playlist",
"action": "playlist:http://msx.benzac.de/services/m3u.php?type=video&url=http://msx.benzac.de/info/data/m3u/videos.m3u"
}, {
"icon": "msx-white-soft:music-note",
"label": "Show audio playlist",
"action": "content:http://msx.benzac.de/services/m3u.php?type=audio&url=http://msx.benzac.de/info/data/m3u/audios.m3u"
}, {
"icon": "msx-white-soft:music-note",
"label": "Start audio playlist",
"action": "playlist:http://msx.benzac.de/services/m3u.php?type=audio&url=http://msx.benzac.de/info/data/m3u/audios.m3u"
}, {
"icon": "msx-white-soft:image",
"label": "Show slideshow",
"action": "content:http://msx.benzac.de/services/m3u.php?type=image&url=http://msx.benzac.de/info/data/m3u/images.m3u"
}, {
"icon": "msx-white-soft:image",
"label": "Start slideshow",
"action": "slideshow:http://msx.benzac.de/services/m3u.php?type=image&url=http://msx.benzac.de/info/data/m3u/images.m3u"
}]
}
}]
}
Demo[edit]
- Launch via App: https://msx.benzac.de/?start=menu:https://msx.benzac.de/info/data/playlist.json
- Launch via Demo Page: https://msx.benzac.de/info/?start=menu:https://msx.benzac.de/info/data/playlist.json