Difference between revisions of "M3U/PLS Files"
(44 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
It is possible to convert M3U/PLS files to JSON files (i.e. Media Station X content pages) with following URLs. | It is possible to convert M3U/PLS files to JSON files (i.e. Media Station X content pages) with following URLs. | ||
− | * M3U: <code>http://msx.benzac.de/services/m3u.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&url={URL}</code> | + | * M3U: <code>http://msx.benzac.de/services/m3u.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&mode={MODE}&url={URL}</code> |
− | * PLS: <code>http://msx.benzac.de/services/pls.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&url={URL}</code> | + | * PLS: <code>http://msx.benzac.de/services/pls.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&mode={MODE}&url={URL}</code> |
− | + | There is also a launcher service that allows you to launch the Media Station X application directly with an M3U playlist: https://msx.benzac.de/info/m3u.html. | |
− | == | + | '''Note: For HTTP Live Streaming (HLS) files (i.e. M3U8 files), please use the video/audio action (e.g. <code>video:http://link.to.hls.m3u8</code>), 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. Please also note that no URLs or playlist files are stored persistently on MSX servers. There is only a session-based storage for performance reasons. Please also note that for performance and storage reasons, only files up to 25 MB are permitted (larger files will be truncated). For the favorites function, a cookie-based storage is used. The cookie (and the associated favorites) will be deleted after one year of non-usage.''' |
+ | |||
+ | == Syntax == | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|+ Parameter syntax of playlist converter | |+ Parameter syntax of playlist converter | ||
Line 12: | Line 14: | ||
! Parameter !! Type !! Default Value !! Mandatory !! Since Version !! class="unsortable" | Description | ! Parameter !! Type !! Default Value !! Mandatory !! Since Version !! class="unsortable" | Description | ||
|- | |- | ||
− | | <code>headline</code> || <code>string</code> || <code>"Playlist"</code> || | + | | <code>headline</code> || <code>string</code> || <code>"Playlist"</code> || No || data-sort-value=30|'''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. <code>"My Playlist"</code> → <code>"My%20Playlist"</code>). | The headline of the content page. It is recommended to encode the value to ensure that it is evaluated correctly (e.g. <code>"My Playlist"</code> → <code>"My%20Playlist"</code>). | ||
|- | |- | ||
− | | <code>background</code> || <code>string</code> || <code>null</code> || | + | | <code>background</code> || <code>string</code> || <code>null</code> || No || data-sort-value=30|'''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. <code>"http://msx.benzac.de/img/bg1.jpg"</code> → <code>"http%3A%2F%2Fmsx.benzac.de%2Fimg%2Fbg1.jpg"</code>). | The background image of the content page. It is recommended to encode the value to ensure that it is evaluated correctly (e.g. <code>"http://msx.benzac.de/img/bg1.jpg"</code> → <code>"http%3A%2F%2Fmsx.benzac.de%2Fimg%2Fbg1.jpg"</code>). | ||
|- | |- | ||
− | | <code>type</code> || <code>string</code> || <code>"audio"</code> || | + | | <code>type</code> || <code>string</code> || <code>"audio"</code> || No || data-sort-value=30|'''0.1.30''' || |
The type of the content page items. | The type of the content page items. | ||
Line 24: | Line 26: | ||
* <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>mode</code> || <code>string</code> || <code>"default"</code> || No || data-sort-value=30|'''0.1.30''' || | ||
+ | The mode of the content page. | ||
+ | |||
+ | * <code>"default"</code>: Default mode. | ||
+ | * <code>"extended"</code>: Extended mode. This mode adds features like view selection, order selection, category selection, playlist options, resume functions, and more. It uses HTTP sessions and cookies and therefore needs the <code>user:</code> prefix for loading. For this mode, version '''0.1.145''' or higher is needed. | ||
+ | * <code>"extended-header"</code>: Extended header mode. This mode is exactly like the <code>"extended"</code> mode, except that the header integrates the playlist options. For this mode, version '''0.1.145''' or higher is needed. | ||
+ | |- | ||
+ | | <code>context</code> || <code>string</code> || <code>"default"</code> || No || data-sort-value=30|'''0.1.30''' || | ||
+ | The context of the content page. This parameter is used internally, but can also be used to load a specific context. | ||
+ | |||
+ | * <code>"default"</code>: Default context. | ||
+ | * <code>"favorites"</code>: Favorites context. If this context is set, the favorites are loaded. The <code>mode</code> parameter will be automatically set to <code>"extended"</code>, because it is required for this context. Therefore, it also needs the <code>user:</code> prefix for loading and can only be used with version '''0.1.145''' or higher. | ||
+ | |||
+ | '''Note: Currently, this parameter is only valid for M3U files.''' | ||
|- | |- | ||
− | | <code>url</code> || <code>string</code> || <code>null</code> || | + | | <code>url</code> || <code>string</code> || <code>null</code> || '''Yes''' || data-sort-value=30|'''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. <code>"http://msx.benzac.de/info/data/m3u/audios.m3u"</code> → <code>"http%3A%2F%2Fmsx.benzac.de%2Finfo%2Fdata%2Fm3u%2Faudios.m3u"</code>). | The URL of the M3U/PLS file. It is recommended to encode the value to ensure that it is evaluated correctly (e.g. <code>"http://msx.benzac.de/info/data/m3u/audios.m3u"</code> → <code>"http%3A%2F%2Fmsx.benzac.de%2Finfo%2Fdata%2Fm3u%2Faudios.m3u"</code>). | ||
|} | |} | ||
Line 32: | Line 49: | ||
== Example == | == Example == | ||
=== Screenshot === | === Screenshot === | ||
− | [[File:playlist.png|thumb|640px|none]] | + | [[File:playlist.png|thumb|640px|none|Example Screenshot (Playlist Examples)]] |
=== Code === | === Code === | ||
Line 39: | Line 56: | ||
"headline": "Playlist Examples", | "headline": "Playlist Examples", | ||
"menu": [{ | "menu": [{ | ||
− | "label": "Playlist Data", | + | "type": "separator", |
− | "data": "http://msx.benzac.de/services/m3u.php?url=http://msx.benzac.de/info/data/m3u/audios.m3u" | + | "label": "Playlist Data" |
+ | }, { | ||
+ | "icon": "movie", | ||
+ | "label": "Videos", | ||
+ | "extensionLabel": "Default", | ||
+ | "data": "http://msx.benzac.de/services/m3u.php?type=video&url=http://msx.benzac.de/info/data/m3u/videos.m3u" | ||
+ | }, { | ||
+ | "icon": "movie", | ||
+ | "label": "Videos", | ||
+ | "extensionLabel": "Extended", | ||
+ | "data": "user:http://msx.benzac.de/services/m3u.php?type=video&mode=extended&url=http://msx.benzac.de/info/data/m3u/videos.m3u" | ||
+ | }, { | ||
+ | "icon": "music-note", | ||
+ | "label": "Audios", | ||
+ | "extensionLabel": "Default", | ||
+ | "data": "http://msx.benzac.de/services/m3u.php?type=audio&url=http://msx.benzac.de/info/data/m3u/audios.m3u" | ||
+ | }, { | ||
+ | "icon": "music-note", | ||
+ | "label": "Audios", | ||
+ | "extensionLabel": "Extended", | ||
+ | "data": "user:http://msx.benzac.de/services/m3u.php?type=audio&mode=extended&url=http://msx.benzac.de/info/data/m3u/audios.m3u" | ||
+ | }, { | ||
+ | "type": "separator" | ||
}, { | }, { | ||
"label": "Playlist Actions", | "label": "Playlist Actions", |
Latest revision as of 11:04, 29 April 2024
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}&mode={MODE}&url={URL}
- PLS:
http://msx.benzac.de/services/pls.php?headline={HEADLINE}&background={BACKGROUND}&type={TYPE}&mode={MODE}&url={URL}
There is also a launcher service that allows you to launch the Media Station X application directly with an M3U playlist: https://msx.benzac.de/info/m3u.html.
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. Please also note that no URLs or playlist files are stored persistently on MSX servers. There is only a session-based storage for performance reasons. Please also note that for performance and storage reasons, only files up to 25 MB are permitted (larger files will be truncated). For the favorites function, a cookie-based storage is used. The cookie (and the associated favorites) will be deleted after one year of non-usage.
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.
|
mode |
string |
"default" |
No | 0.1.30 |
The mode of the content page.
|
context |
string |
"default" |
No | 0.1.30 |
The context of the content page. This parameter is used internally, but can also be used to load a specific context.
Note: Currently, this parameter is only valid for M3U files. |
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": [{
"type": "separator",
"label": "Playlist Data"
}, {
"icon": "movie",
"label": "Videos",
"extensionLabel": "Default",
"data": "http://msx.benzac.de/services/m3u.php?type=video&url=http://msx.benzac.de/info/data/m3u/videos.m3u"
}, {
"icon": "movie",
"label": "Videos",
"extensionLabel": "Extended",
"data": "user:http://msx.benzac.de/services/m3u.php?type=video&mode=extended&url=http://msx.benzac.de/info/data/m3u/videos.m3u"
}, {
"icon": "music-note",
"label": "Audios",
"extensionLabel": "Default",
"data": "http://msx.benzac.de/services/m3u.php?type=audio&url=http://msx.benzac.de/info/data/m3u/audios.m3u"
}, {
"icon": "music-note",
"label": "Audios",
"extensionLabel": "Extended",
"data": "user:http://msx.benzac.de/services/m3u.php?type=audio&mode=extended&url=http://msx.benzac.de/info/data/m3u/audios.m3u"
}, {
"type": "separator"
}, {
"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"
}]
}
}]
}