Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (54)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5142)

  • Issues with Discord JS Music Bot

    5 décembre 2020, par Thresio

    I am in the process of creating a Discord bot with JS, giving it management, auto role, etc. I just got to the music section of it and I can't quite figure out whats wrong.

    



    I believe I have installed FFmpeg correctly, as I have access to it from within the terminal. I have also used npm to bring ytdl-core and opusscript into my program.

    



    What this should do is make the bot join the chat, then play the Youtube link. Currently, I am not error checking the second argument as I just wanted to get it working initially. I have implemented several different instances of .toString() and String() however it always gives the same error listed below.

    



    . The program still throws this error :

    



    TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object

C:\Users\Thresio's PC\Desktop\Discord Bot\node_modules\opusscript\build\opusscript_native_wasm.js:8
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var
key;for(key in Module){if(Module.hasOwnProperty(key))
{moduleOverrides[key]=Module[key]}}Module["arguments"]=
[];Module["thisProgram"]="./this.program";Module["quit"]=function(status,toThrow) {throw
toThrow};Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var 
ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_HAS_NODE=false;var 
ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof 
importScripts==="function";ENVIRONMENT_HAS_NODE=typeof process==="object"&&typeof 
process.versions==="object"&&typeof 
process.versions.node==="string";ENVIRONMENT_IS_NODE=ENVIRONMENT_HAS_NODE&&!ENVIRONMENT_IS_WEB&&!ENVIRONM
ENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var
scriptDirectory="";function locateFile(path){i
abort(TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type 
string. Received type object). Build with -s ASSERTIONS=1 for more info. 


    



    Here is my code for calling play :

    



    case 'play':

            function play(connection, message){
                var server = servers[message.guild.id];

                server.dispatcher = connection.playStream(ytdl(server.queue[0], {filter: 'audioonly'}));

                server.queue.shift();

                server.dispatcher.on('end', function(){
                    if(server.queue[0]){
                        play(connection, message);
                    }else {
                        connection.disconnect();
                    }
                })
            }

            if(!args[1]){
                message.channel.send('You need to provide a link!');
                return;
            }

            if(!message.member.voiceChannel){
                message.channel.send('You must be in a voice channel to play music!');
                return;
            }

            if(!servers[message.guild.id]) servers[message.guild.id] = {
                queue: []
            }

            var server = servers[message.guild.id];

            server.queue.push(args[1]);

            if(!message.guild.voiceConnection) message.member.voiceChannel.join().then(function(connection){
                play(connection, message);
            })
            break;


    



    If anyone could assist with this, I would be very grateful.

    



    EDIT : I unfortunately never figured out my main issue, but I have now found code that works (unlike mine :/).
For anyone else having this issue, I suggest using the code found here.
Works like a charm !

    


  • How to publish your plugin or theme on the Piwik Marketplace – Introducing the Piwik Platform

    25 septembre 2014, par Thomas Steur — Community, Development

    This is the next post of our blog series where we introduce the capabilities of the Piwik platform. Over the last weeks we have already introduced you to some of the basics on how to create plugins and themes. This time you’ll learn how to publish a plugin or theme on the Piwik Marketplace to share it with all Piwik users.

    What is the Piwik Marketplace ?

    The Marketplace is a showcase for all plugins and themes that can be used in Piwik. You can browse them either on a standalone website or in Piwik itself by going to Settings => Marketplace. There you can install and update them with just one click. Easy as that ! While some of those plugins are provided by Piwik or Piwik PRO most of them are created and maintained by our community. Everyone is very welcome to distribute plugins or themes on the Marketplace.

    Prerequisites

    To publish your plugin on the Marketplace you simply need to meet these requirements :

    • The plugin name is not already taken by another plugin
    • The code of the plugin is hosted in a public GitHub repository
    • The GitHub service “Piwik plugins” for this repository is enabled (Repository Settings => Webhooks & Services => Add Service)
    • Push permission for this repository
    • The plugin is free (as in not paid)
    • The license must be compatible with the GNU General Public License v3 or any later version

    There is also list of Rules for plugins.

    Best practices

    Before actually distributing your plugin we recommend to follow a couple of best practices to make sure your plugin looks good on the Marketplace and provides useful information for your future users. If you have used the console to generate a plugin the needed files were already created for you.

    Provide a good description

    Make sure there is a file named README.md in the root of your plugin. When preparing your plugin for the Marketplace we will search for four sections in this file : Description, FAQ, Changelog and Support. Each of those is optional but it is good practice to provide at least a section Description and Support by prefixing them with ## . Any content of your readme outside of those sections will not be displayed on the Marketplace.

    # Piwik Plugin Name

    ## Description

    Add your plugin description here.

    ## Support

    Please direct any feedback to hello@piwik.org.
    If you experience any issues feel free to file an issue at https://github.com/piwik/piwik/issues .

    A good example can be seen in the README.md of the CustomAlerts plugin and the related CustomAlerts plugin page.

    Provide screenshots

    This will improve your appearance in the Marketplace a lot and users will be more likely install your plugin. It is as easy as placing “png” or “jpg” files in a folder named screenshots. The filename of each image will be shown in the UI with underscores replaced by a whitespace. This way you can provide a nice description. Have a look at the CustomAlerts plugin to see how it works.

    Provide contact details

    Your contact details are specified in the plugin.json file of your plugin root folder. Providing at least one author and a link to your homepage is required. If you do not have a website you can use a link to your GitHub profile. This helps your users contact you in case they want to thank you for your great work or if they have any problem with it. An example plugin.json looks like this :

    {
       "name": "MyPluginName",
       "homepage": "http://piwik.org",
       "authors": [
           {
               "name": "Piwik",
               "email": "hello@piwik.org",
               "homepage": "http://piwik.org"
           }
       ],
       "support": {
         "email": "hello@piwik.org",
         "issues": "https://github.com/piwik/piwik/issues",
         "forum": "http://forum.piwik.org",
         "wiki": "https://github.com/piwik/piwik/wiki",
         "irc": "#piwik-dev"
       }
    }

    Choose a license

    Choosing the right license that works best for you and your users is important. To distribute a plugin via the Piwik Marketplace the license must be compatible with the GNU General Public License v3 or any later version. If you do not specify a license anywhere in your plugin, it is assumed your plugin uses GPLv3 or later. The license must be specified in the plugin.json file using the property license :

    {
       "name": "MyPluginName",
       "license": "GPL v3+"
    }

    Provide donation links

    You can define a donation link or email for PayPal, Flattr and Bitcoin in the plugin.json file. Users that love your work will then be able to donate you money directly from the plugin page.

    {
       "name": "MyPluginName"
       "donate": {
           "paypal": "sponsor@piwik.org",
           "flattr": "https://flattr.com/profile/piwik",
           "bitcoin": "1234567890"
       }
    }

    How to publish the first version of your plugin

    We are trying to make it as easy as possible for you to publish your plugin on the Marketplace. That’s why we don’t require any logins or packaging. To publish your plugin you only have to create a new tag of your plugin and within a minute your plugin will be ready to be installed on hundreds of thousands of Piwik installations.

    To tag your plugin you can use one of the following two suggestions :

    Using the command line

    git tag 0.1.0 && git push --tags

    Where “0.1.0” is the name of the tag. While you can use any tag name it is best practice to use the current version number as defined in the plugin.json file.

    Using GitHub UI

    To tag a new version via GitHub click on Releases => Draft a new release.

    Now you can enter a tag name (version) and press “Publish release” as shown in this screen. That’s it !

    How to provide an update for your plugin

    To provide an update you only have to increase the version number in the file plugin.json and create another tag as explained in the previous section. Your new Plugin update will be visible on the Marketplace within a minute or so. It might take a bit longer until the update appears in Piwik itself as each Piwik server only checks for updates every few hours.

    For a complete list of information go to our Distributing Your Plugin guide in the Piwik Developer Zone.

    If you have any feedback regarding our APIs or our guides in the Developer Zone feel free to let us know.

  • How to publish your plugin or theme on the Piwik Marketplace – Introducing the Piwik Platform

    25 septembre 2014, par Thomas Steur — Community, Development

    This is the next post of our blog series where we introduce the capabilities of the Piwik platform. Over the last weeks we have already introduced you to some of the basics on how to create plugins and themes. This time you’ll learn how to publish a plugin or theme on the Piwik Marketplace to share it with all Piwik users.

    What is the Piwik Marketplace ?

    The Marketplace is a showcase for all plugins and themes that can be used in Piwik. You can browse them either on a standalone website or in Piwik itself by going to Settings => Marketplace. There you can install and update them with just one click. Easy as that ! While some of those plugins are provided by Piwik or Piwik PRO most of them are created and maintained by our community. Everyone is very welcome to distribute plugins or themes on the Marketplace.

    Prerequisites

    To publish your plugin on the Marketplace you simply need to meet these requirements :

    • The plugin name is not already taken by another plugin
    • The code of the plugin is hosted in a public GitHub repository
    • The GitHub service “Piwik plugins” for this repository is enabled (Repository Settings => Webhooks & Services => Add Service)
    • Push permission for this repository
    • The plugin is free (as in not paid)
    • The license must be compatible with the GNU General Public License v3 or any later version

    There is also list of Rules for plugins.

    Best practices

    Before actually distributing your plugin we recommend to follow a couple of best practices to make sure your plugin looks good on the Marketplace and provides useful information for your future users. If you have used the console to generate a plugin the needed files were already created for you.

    Provide a good description

    Make sure there is a file named README.md in the root of your plugin. When preparing your plugin for the Marketplace we will search for four sections in this file : Description, FAQ, Changelog and Support. Each of those is optional but it is good practice to provide at least a section Description and Support by prefixing them with ## . Any content of your readme outside of those sections will not be displayed on the Marketplace.

    # Piwik Plugin Name

    ## Description

    Add your plugin description here.

    ## Support

    Please direct any feedback to hello@piwik.org.
    If you experience any issues feel free to file an issue at https://github.com/piwik/piwik/issues .

    A good example can be seen in the README.md of the CustomAlerts plugin and the related CustomAlerts plugin page.

    Provide screenshots

    This will improve your appearance in the Marketplace a lot and users will be more likely install your plugin. It is as easy as placing “png” or “jpg” files in a folder named screenshots. The filename of each image will be shown in the UI with underscores replaced by a whitespace. This way you can provide a nice description. Have a look at the CustomAlerts plugin to see how it works.

    Provide contact details

    Your contact details are specified in the plugin.json file of your plugin root folder. Providing at least one author and a link to your homepage is required. If you do not have a website you can use a link to your GitHub profile. This helps your users contact you in case they want to thank you for your great work or if they have any problem with it. An example plugin.json looks like this :

    {
       "name": "MyPluginName",
       "homepage": "http://piwik.org",
       "authors": [
           {
               "name": "Piwik",
               "email": "hello@piwik.org",
               "homepage": "http://piwik.org"
           }
       ],
       "support": {
         "email": "hello@piwik.org",
         "issues": "https://github.com/piwik/piwik/issues",
         "forum": "http://forum.piwik.org",
         "wiki": "https://github.com/piwik/piwik/wiki",
         "irc": "#piwik-dev"
       }
    }

    Choose a license

    Choosing the right license that works best for you and your users is important. To distribute a plugin via the Piwik Marketplace the license must be compatible with the GNU General Public License v3 or any later version. If you do not specify a license anywhere in your plugin, it is assumed your plugin uses GPLv3 or later. The license must be specified in the plugin.json file using the property license :

    {
       "name": "MyPluginName",
       "license": "GPL v3+"
    }

    Provide donation links

    You can define a donation link or email for PayPal, Flattr and Bitcoin in the plugin.json file. Users that love your work will then be able to donate you money directly from the plugin page.

    {
       "name": "MyPluginName"
       "donate": {
           "paypal": "sponsor@piwik.org",
           "flattr": "https://flattr.com/profile/piwik",
           "bitcoin": "1234567890"
       }
    }

    How to publish the first version of your plugin

    We are trying to make it as easy as possible for you to publish your plugin on the Marketplace. That’s why we don’t require any logins or packaging. To publish your plugin you only have to create a new tag of your plugin and within a minute your plugin will be ready to be installed on hundreds of thousands of Piwik installations.

    To tag your plugin you can use one of the following two suggestions :

    Using the command line

    git tag 0.1.0 && git push --tags

    Where “0.1.0” is the name of the tag. While you can use any tag name it is best practice to use the current version number as defined in the plugin.json file.

    Using GitHub UI

    To tag a new version via GitHub click on Releases => Draft a new release.

    Now you can enter a tag name (version) and press “Publish release” as shown in this screen. That’s it !

    How to provide an update for your plugin

    To provide an update you only have to increase the version number in the file plugin.json and create another tag as explained in the previous section. Your new Plugin update will be visible on the Marketplace within a minute or so. It might take a bit longer until the update appears in Piwik itself as each Piwik server only checks for updates every few hours.

    For a complete list of information go to our Distributing Your Plugin guide in the Piwik Developer Zone.

    If you have any feedback regarding our APIs or our guides in the Developer Zone feel free to let us know.