Recherche avancée

Médias (91)

Autres articles (71)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (8387)

  • Do not allow writing invalid wav channel layouts by default.

    9 avril 2014, par Carl Eugen Hoyos
    Do not allow writing invalid wav channel layouts by default.
    

    Neither WMP nor QT play wav files with too large channel layouts.
    Fixes ticket #3543.

    • [DH] libavformat/riffenc.c
    • [DH] libavformat/version.h
  • DiscordJS Music Bot Connects and Then Immediately Disconnects From Voice Channel

    23 janvier 2020, par კΙбthebraɨɴs

    I see that questions similar to this one have been asked, and after following their solutions I still end up the same as I started. Below I have listed my code, a link to test it with a sample bot I created, and the modules you will need to test it using a self-hosted instance.

    My problem is that upon connecting to the specified voice channel, the bot immediately leaves afterwards without any signs of errors or exceptions. I’m not sure if it is a problem with my code, or with one of the libraries I am using. The only console output I receive is as follows :

    Bot Ready For Use
    joined channel
    left channel

    Thanks !

    My Code

    var voiceChannel = message.member.voiceChannel;

    if (!message.member.voiceChannel) return message.channel.send(`You do realize you have to be in a voice channel to do that, right ${message.author.username}?`)

    if (!message.member.voiceConnection) voiceChannel.join().then(async connection => {

       let streamURL = args.slice(1).join(" ")
       let streamTitle = "";
       let streamThumb = "";
       let streamAuth = "";
       let streamAuthThumb = "";

       if (streamURL.includes("https://www.youtube.com") || streamURL.includes("https://youtu.be/") && !streamURL.includes(' ')) {
           let results = await youtube.getVideo(streamURL)

           let {
               body
           } = await snekfetch.get(`https://www.googleapis.com/youtube/v3/channels?part=snippet&id=${results.channel.id}&fields=items%2Fsnippet%2Fthumbnails&key=${ytapikey}`).query({
               limit: 800
           })

           streamTitle = results.title
           streamThumb = results.thumbnails.medium.url
           streamAuth = results.channel.title
           streamAuthThumb = body.items[0].snippet.thumbnails.medium.url

       } else if (!streamURL.includes("https://www.youtube.com") || !streamURL.includes("https://youtu.be/")) {

           let results = await youtube.searchVideos(streamURL)

           let {
               body
           } = await snekfetch.get(`https://www.googleapis.com/youtube/v3/channels?part=snippet&id=${results[0].channel.id}&fields=items%2Fsnippet%2Fthumbnails&key=${ytapikey}`).query({
               limit: 800
           })

           streamURL = results[0].url
           streamTitle = results[0].title
           streamThumb = results[0].thumbnails.medium.url
           streamAuth = results[0].channel.title
           streamAuthThumb = body.items[0].snippet.thumbnails.medium.url

       } else {
           return message.reply("I can only play videos from YouTube (#NotSponsored).")
       }

       console.log("joined channel");
       const stream = ytdl('https://www.youtube.com/watch?v=gOMhN-hfMtY', {
           filter: 'audioonly'
       });
       const dispatcher = connection.playStream(stream, {
           seek: 0,
           volume: 1
       });
       dispatcher.on("end", end => {
           console.log("left channel");
           voiceChannel.leave();
       });

       let musicEmbed = new Discord.RichEmbed()
           .setAuthor(streamAuth, streamAuthThumb)
           .setTitle(`Now Playing:`)
           .addField(`${streamAuth}`, `${streamTitle}`)
           .setImage(streamThumb)
           .setColor(embedRed)
           .setFooter(`${streamAuth} - ${streamTitle} (${streamURL}`)

       message.channel.send(musicEmbed)

    }).catch(console.error);
    break

    List of Modules

    discord.js
    simple-youtube-api
    node-opus
    ffmpeg
    ffbinaries
    ffmpeg-binaries
    opusscript
    snekfetch
    node-fetch
    ytdl-core

    Click here to use my sample bot through repl.it.

    Thanks Again !

  • af_hdcd : add mono as a supported channel layout

    28 septembre 2016, par Burt P
    af_hdcd : add mono as a supported channel layout
    

    Signed-off-by : Burt P <pburt0@gmail.com>

    • [DH] libavfilter/af_hdcd.c