Advanced search

Medias (1)

Tag: - Tags -/iphone

Other articles (63)

  • HTML5 audio and video support

    13 April 2011, by

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

  • Support audio et vidéo HTML5

    10 April 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 (...)

  • De l’upload à la vidéo finale [version standalone]

    31 January 2010, by

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier; La génération d’une vignette : extraction d’une (...)

On other websites (8370)

  • Simple discord.py mp3 bot not playing music

    18 April 2023, by 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

    


    import discord
import time
import os
from discord.ext import commands

BOT_TOKEN = "" # put token here

intentss = discord.Intents.default()
intentss.message_content = True
intentss.voice_states = True

bot = commands.Bot(command_prefix=";;", intents = intentss)

OPUS_LIBS = ['libopus-0.x86.dll', 'libopus-0.x64.dll', 'libopus-0.dll', 'libopus.so.0', 'libopus.0.dylib']

@bot.command()
async def join(ctx):
    channelVC = ctx.author.voice.channel
    await channelVC.connect()

@bot.command()
async def leave(ctx):
    await ctx.voice_client.disconnect()

@bot.command()
async def play(ctx):
    voice = ctx.guild.voice_client
    mloc = 'C:/Users/Lukas/Desktop/Bot Bethoven/Youtube/test.mp3'
    voice.play(discord.FFmpegPCMAudio(executable = "C:/ffmpeg/bin/ffmpeg.exe", source = mloc))


bot.run(BOT_TOKEN)


    


    it just give error codes:

    


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


    


    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

    


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

    


    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,

    


  • Discord js music player bot suddenly leaves

    29 January 2024, by 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

    


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

    19 March 2023, by 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;