Recherche avancée

Médias (91)

Autres articles (109)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (12345)

  • Discord js music player bot suddenly leaves

    29 janvier 2024, par ImK

    So I made a music bot for discord js that uses discord player package. The command runs perfectly but in the middle song suddenly stops I tried searching everywhere nothing works and i think its an issue for ffmpeg but im not so sure

    


    bot.player = new Player(bot, {
    ytdlOptions: {
        quality: 'lowestaudio',
        highWaterMark: 1 >> 25
    },
})

const player = bot.player;

//play command 


bot.on('interactionCreate', async interaction =>{
    if(interaction.commandName === 'play') {

        const song = interaction.options.get('song').value;
        const res = await player.search(song, {
            searchEngine: QueryType.SPOTIFY_SONG
        });


        if (!res || !res.tracks.length) return interaction.reply({ content: `No results found ${interaction.member}... try again ? ❌`, ephemeral: true });

        const queue = await player.createQueue(interaction.guild)

        if (!queue.connection) await queue.connect(interaction.member.voice.channel);


        await interaction.channel.send({ content:`Loading your ${res.playlist ? 'playlist' : 'track'}... 🎧`});

        const track = await res.tracks[0]

        console.log(track)
        if(!track)  return interaction.channel.send({content: 'No song found'});

        queue.addTrack(track)

        queue.play();

    }
})


    


    After leaving the channel, other commands and bot work fine

    


  • voiceclient.play(discord.FFmpegPCMAudio) doesn't play any audio

    23 septembre 2021, par mm3239

    I'm trying to create a private music bot. It joined voice channel, but no sound came out and queue didn't worked. My play function is like this :

    


    async def play_music(self):
    if len(self.music_queue) > 0:
        self.is_playing = True

        index = self.music_queue[0][0]['index']

        #connecting to voice channel
        if not self.vc.is_connected():
            self.vc = await self.music_queue[0][1].connect()
        else:
            await self.vc.move_to(self.music_queue[0][1])

        self.music_queue.pop(0)

        self.vc.play(discord.FFmpegPCMAudio(self.music_files[index], **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())


    


    When I execute the file, it should work like this :

    


    Me: /play abc.mp3
Bot: Song added to queue.
*abc song plays in voice channel*
Me: /play def.mp3
Bot: Song added to queue.
Me: /play ghi.mp3
Bot: Song added to queue.

Me: /queue
Bot: def.mp3
     ghi.mp3


    


    However, in reality, Discord :

    


    Me: /play abc.mp3
Bot: Song added to queue.
*silence*
Me: /play def.mp3
Bot: Song added to queue.
Me: /play ghi.mp3
Bot: Song added to queue.

Me: /queue
Bot: No music in queue.


    


    Console :

    


    music found!&#xA;[[{&#x27;index&#x27;: 2, &#x27;title&#x27;: &#x27;abc.mp3&#x27;}, <voicechannel>]]&#xA;music found!&#xA;[[{&#x27;index&#x27;: 0, &#x27;title&#x27;: &#x27;def.mp3&#x27;}, <voicechannel>]]&#xA;&#xA;music found!&#xA;[[{&#x27;index&#x27;: 1, &#x27;title&#x27;: &#x27;ghi.mp3&#x27;}, <voicechannel> position=5 bitrate=64000 user_limit=10 category_id=790202432072187909>]]&#xA;</voicechannel></voicechannel></voicechannel>

    &#xA;

    I can see something's wrong(abc and def prints shorter message in console, middle part of message is skipped), but as you can see, it doesn't raise any error or exception. Could anyone please help me correct my code ? I'm completely stuck, and it would be really appreciated if someone could tell me what the problem is.

    &#xA;

  • Anomalie #2023 : Interface privée : le lien "informations personnelles" ne fonctionne plus sous 2....

    6 avril 2011, par gvincent -

    Effectivement je ne reproduits pas le bug sur un site en [16966]. Je vais voir sans aucun plugin (j’aurais dû commencer par là)