Difference between revisions of "YouTube, Vimeo & Co."

From MSX - Wiki
Jump to navigation Jump to search
(Created page with "It is possible to play YouTube, Vimeo, and similar content with the video/audio plugin actions. Currently, a plugin for '''YouTube''', '''Vimeo''', '''Dailymotion''', '''Twitc...")
 
Line 12: Line 12:
  
 
Please see following code examples.
 
Please see following code examples.
 +
 +
<syntaxhighlight lang="json">
 +
{
 +
    "type": "list",
 +
    "headline": "Plugin Examples",
 +
    "template": {
 +
        "type": "separate",
 +
        "layout": "0,0,2,4",
 +
        "icon": "msx-white-soft:extension",
 +
        "color": "msx-glass"
 +
    },
 +
    "items": [{
 +
            "badge": "{txt:msx-white:YouTube}",
 +
            "badgeColor": "#ff0000",
 +
            "title": "Example Video",
 +
            "playerLabel": "YouTube - Example Video",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/youtube.html?id=DQuhA5ZCV9M"
 +
        }, {
 +
            "badge": "{txt:msx-white:Vimeo}",
 +
            "badgeColor": "#1ab7ea",
 +
            "title": "Example Video",
 +
            "playerLabel": "Vimeo - Example Video",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/vimeo.html?id=54802209"
 +
        }, {
 +
            "badge": "{txt:msx-white:Dailymotion}",
 +
            "badgeColor": "#00aaff",
 +
            "title": "Example Video",
 +
            "playerLabel": "Dailymotion - Example Video",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/dailymotion.html?id=xz14c1"
 +
        }, {
 +
            "badge": "{txt:msx-white:Twitch}",
 +
            "badgeColor": "#643fa6",
 +
            "title": "Example Video",
 +
            "playerLabel": "Twitch - Example Video",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/twitch.html?id=344341752"
 +
        }, {
 +
            "badge": "{txt:msx-white:Facebook}",
 +
            "badgeColor": "#4767aa",
 +
            "title": "Example Video",
 +
            "playerLabel": "Facebook - Example Video",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/facebook.html?id=10152454700553553"
 +
        }, {
 +
            "badge": "{txt:msx-white:Wistia}",
 +
            "badgeColor": "#5aaff2",
 +
            "title": "Example Video",
 +
            "playerLabel": "Wistia - Example Video",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/wistia.html?id=ve7pzy0d3y"
 +
        }, {
 +
            "badge": "{txt:msx-white:SoundCloud}",
 +
            "badgeColor": "#ff5500",
 +
            "title": "Example Track",
 +
            "playerLabel": "SoundCloud - Example Track",
 +
            "action": "video:plugin:http://msx.benzac.de/plugins/soundcloud.html?id=143041228"
 +
        }]
 +
}
 +
</syntaxhighlight>

Revision as of 12:29, 13 January 2021

It is possible to play YouTube, Vimeo, and similar content with the video/audio plugin actions. Currently, a plugin for YouTube, Vimeo, Dailymotion, Twitch, Facebook, Wistia, and SoundCloud is available. In the future, more video/audio hosting platforms could be added. There is also a JavaScript plugin API that lets you create your own video/audio plugin. If you are a developer and you would like to create your own plugin, please see Video/Audio Plugin.

Note: There is no guarantee that all content can be played on each platform.

Please see following code examples.

{
    "type": "list",
    "headline": "Plugin Examples",
    "template": {
        "type": "separate",
        "layout": "0,0,2,4",
        "icon": "msx-white-soft:extension",
        "color": "msx-glass"
    },
    "items": [{
            "badge": "{txt:msx-white:YouTube}",
            "badgeColor": "#ff0000",
            "title": "Example Video",
            "playerLabel": "YouTube - Example Video",
            "action": "video:plugin:http://msx.benzac.de/plugins/youtube.html?id=DQuhA5ZCV9M"
        }, {
            "badge": "{txt:msx-white:Vimeo}",
            "badgeColor": "#1ab7ea",
            "title": "Example Video",
            "playerLabel": "Vimeo - Example Video",
            "action": "video:plugin:http://msx.benzac.de/plugins/vimeo.html?id=54802209"
        }, {
            "badge": "{txt:msx-white:Dailymotion}",
            "badgeColor": "#00aaff",
            "title": "Example Video",
            "playerLabel": "Dailymotion - Example Video",
            "action": "video:plugin:http://msx.benzac.de/plugins/dailymotion.html?id=xz14c1"
        }, {
            "badge": "{txt:msx-white:Twitch}",
            "badgeColor": "#643fa6",
            "title": "Example Video",
            "playerLabel": "Twitch - Example Video",
            "action": "video:plugin:http://msx.benzac.de/plugins/twitch.html?id=344341752"
        }, {
            "badge": "{txt:msx-white:Facebook}",
            "badgeColor": "#4767aa",
            "title": "Example Video",
            "playerLabel": "Facebook - Example Video",
            "action": "video:plugin:http://msx.benzac.de/plugins/facebook.html?id=10152454700553553"
        }, {
            "badge": "{txt:msx-white:Wistia}",
            "badgeColor": "#5aaff2",
            "title": "Example Video",
            "playerLabel": "Wistia - Example Video",
            "action": "video:plugin:http://msx.benzac.de/plugins/wistia.html?id=ve7pzy0d3y"
        }, {
            "badge": "{txt:msx-white:SoundCloud}",
            "badgeColor": "#ff5500",
            "title": "Example Track",
            "playerLabel": "SoundCloud - Example Track",
            "action": "video:plugin:http://msx.benzac.de/plugins/soundcloud.html?id=143041228"
        }]
}