Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (60)

  • 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 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5751)

  • music bot stops after playing music for 30-50 secs

    19 mars 2023, par ra1nb0w
    const { QueryType } = require("discord-player")&#xA;const player = require("../../client/player")&#xA;const Discord = require(&#x27;discord.js&#x27;)&#xA;&#xA;module.exports = {&#xA;    name: &#x27;play&#x27;,&#xA;    cooldown: 5,&#xA;    aliases: [&#x27;p&#x27;],&#xA;    description: "Plays a song",&#xA;    usage: "?p <song></song>vid-URL>",&#xA;    category: "Music",&#xA;&#xA;    async execute(client, message, args) {&#xA;        const songTitle = args.join(" ")&#xA;        const queue = await player.createQueue(message.guild);&#xA;        const nosongEmbed = new Discord.MessageEmbed()&#xA;            .setColor(&#x27;#3d35cc&#x27;)&#xA;            .setDescription(`‼️ - Please provide a song URL or song name!`)&#xA;&#xA;        if (!songTitle) return message.reply({ embeds: [nosongEmbed] })&#xA;        &#xA;&#xA;        const novcEmbed = new Discord.MessageEmbed()&#xA;            .setColor(&#x27;#3d35cc&#x27;)&#xA;            .setDescription(`‼️ - You have to be in a Voice Channel to use this command!`)&#xA;&#xA;        if (!message.member.voice.channel) return message.reply({ embeds: [novcEmbed] })&#xA;        if (!queue.connection) await queue.connect(message.member.voice.channel)&#xA;&#xA;        let url = songTitle&#xA;            &#xA;            // Search for the song using the discord-player&#xA;            const result = await player.search(url, {&#xA;                requestedBy: message.author,&#xA;                searchEngine: QueryType.AUTO&#xA;            })&#xA;&#xA;            // finish if no tracks were found&#xA;            if (result.tracks.length === 0)&#xA;                return message.reply("No results")&#xA;&#xA;            // Add the track to the queue&#xA;            const song = result.tracks[0]&#xA;            await queue.addTrack(song)&#xA;            const embed = new Discord.MessageEmbed()&#xA;                .setColor("AQUA")&#xA;                .setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)&#xA;                .setThumbnail(song.thumbnail)&#xA;                .setFooter({ text: `Duration: ${song.duration}`})&#xA;            message.reply({ embeds: [embed] })&#xA;            if (!queue.playing) await queue.play()&#xA;            &#xA;&#xA;            &#xA;&#xA;        }&#xA;        &#xA;    }&#xA;&#xA;

    &#xA;

    i used the command then the song just stops playing after 30-50 seconds, it is supposed to play till the music finishes and then keep staying in the voice channel until a few mins of no music

    &#xA;

    i have reinstalled ffmpeg

    &#xA;

    using :&#xA;discord.js : 13.14.0&#xA;discord-player : 5.2.2

    &#xA;

  • 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

    &#xA;

    bot.player = new Player(bot, {&#xA;    ytdlOptions: {&#xA;        quality: &#x27;lowestaudio&#x27;,&#xA;        highWaterMark: 1 >> 25&#xA;    },&#xA;})&#xA;&#xA;const player = bot.player;&#xA;&#xA;//play command &#xA;&#xA;&#xA;bot.on(&#x27;interactionCreate&#x27;, async interaction =>{&#xA;    if(interaction.commandName === &#x27;play&#x27;) {&#xA;&#xA;        const song = interaction.options.get(&#x27;song&#x27;).value;&#xA;        const res = await player.search(song, {&#xA;            searchEngine: QueryType.SPOTIFY_SONG&#xA;        });&#xA;&#xA;&#xA;        if (!res || !res.tracks.length) return interaction.reply({ content: `No results found ${interaction.member}... try again ? ❌`, ephemeral: true });&#xA;&#xA;        const queue = await player.createQueue(interaction.guild)&#xA;&#xA;        if (!queue.connection) await queue.connect(interaction.member.voice.channel);&#xA;&#xA;&#xA;        await interaction.channel.send({ content:`Loading your ${res.playlist ? &#x27;playlist&#x27; : &#x27;track&#x27;}... &#127911;`});&#xA;&#xA;        const track = await res.tracks[0]&#xA;&#xA;        console.log(track)&#xA;        if(!track)  return interaction.channel.send({content: &#x27;No song found&#x27;});&#xA;&#xA;        queue.addTrack(track)&#xA;&#xA;        queue.play();&#xA;&#xA;    }&#xA;})&#xA;

    &#xA;

    After leaving the channel, other commands and bot work fine

    &#xA;

  • Simple discord.py mp3 bot not playing music

    18 avril 2023, par Lukas Nesvarbu

    Discord bot dosent play anykind of music, neither mine nor other bots codes work he just dosent play music. idk maybe i am just stupid BUT IT DOSENT WORK WHY

    &#xA;

    import discord&#xA;import time&#xA;import os&#xA;from discord.ext import commands&#xA;&#xA;BOT_TOKEN = "" # put token here&#xA;&#xA;intentss = discord.Intents.default()&#xA;intentss.message_content = True&#xA;intentss.voice_states = True&#xA;&#xA;bot = commands.Bot(command_prefix=";;", intents = intentss)&#xA;&#xA;OPUS_LIBS = [&#x27;libopus-0.x86.dll&#x27;, &#x27;libopus-0.x64.dll&#x27;, &#x27;libopus-0.dll&#x27;, &#x27;libopus.so.0&#x27;, &#x27;libopus.0.dylib&#x27;]&#xA;&#xA;@bot.command()&#xA;async def join(ctx):&#xA;    channelVC = ctx.author.voice.channel&#xA;    await channelVC.connect()&#xA;&#xA;@bot.command()&#xA;async def leave(ctx):&#xA;    await ctx.voice_client.disconnect()&#xA;&#xA;@bot.command()&#xA;async def play(ctx):&#xA;    voice = ctx.guild.voice_client&#xA;    mloc = &#x27;C:/Users/Lukas/Desktop/Bot Bethoven/Youtube/test.mp3&#x27;&#xA;    voice.play(discord.FFmpegPCMAudio(executable = "C:/ffmpeg/bin/ffmpeg.exe", source = mloc))&#xA;&#xA;&#xA;bot.run(BOT_TOKEN)&#xA;

    &#xA;

    it just give error codes :

    &#xA;

    discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: Not connected to voice.&#xA;INFO     discord.player ffmpeg process 22896 has not terminated. Waiting to terminate...&#xA;INFO     discord.player ffmpeg process 22896 should have terminated with a return code of 1.&#xA;

    &#xA;

    intresting thing when i put join and play in the same command it dosent show not connected to voice error, actually it dosent show anything and neither plays mp3 file

    &#xA;

    i tryed reinstalling : PyNaCl, FFmpeg, Visual Code, updating python.&#xA;nothing helps. this problem started after i did 1 month break from coding bot, before that it worked fine.

    &#xA;

    i'm thinking problem is something with my pc, maybe path or something dosent work(because it worked month ago and i didnt do anything to code), i tryed checking but everything seems normal,

    &#xA;