Recherche avancée

Médias (91)

Autres articles (72)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7899)

  • Videos don't play in Android Webview after resizing with avconv

    23 juillet 2020, par Verode

    I upload original mp4 video file to the server and it plays in all browsers, including Android webview app.

    &#xA;

    <video class="video" controls="controls" autobuffer="autobuffer">&#xA;<source src="video.mp4" type="video/mp4">&#xA;Your browser does not support the video tag.&#xA;</source></video>&#xA;

    &#xA;

    I have read in Stackoverflow that in some cases adding "controls autobuffer" may help. But it does not help.

    &#xA;

    I tried to access video file by clicking on a link :

    &#xA;

    <a href="http://stackoverflow.com/feeds/tag/video.mp4">Video</a>&#xA;

    &#xA;

    but video does not play.

    &#xA;

    But I need to resize videos to make them smaller.

    &#xA;

    After risizing videos play in all browsers, except Android web view.&#xA;Whats wrong with this ?

    &#xA;

    $resized = exec("avconv -y -i $file -map 0 -c:v libx264 -crf 22 -filter:v scale=\"750:trunc(ow/a/2)*2\" -c:a copy $file2");&#xA;

    &#xA;

    This problem appeared after some Android or Webview update.

    &#xA;

  • TypeError : parameter 'url' is missing a type annotation in callback 'play' + ffmpeg

    10 décembre 2022, par morichh

    I can't understand why Python interpreter doesn't like the fact that I use the url in the last line

    &#xA;

    @client.tree.command()&#xA;async def play(interaction: Interaction, url = str):&#xA;    global voice&#xA;    channel = interaction.user.voice.channel&#xA;    voice = get(client.voice_clients, Guild=interaction.guild)&#xA;    if voice and voice.is_connected():&#xA;        await voice.move_to(channel)&#xA;        await interaction.response.send_message(f"*1*")&#xA;    else:&#xA;        voice = await channel.connect()&#xA;        await interaction.response.send_message(f"*2*")&#xA;    voice.play(discord.FFmpegPCMAudio(executable="C:/ffmpeg/bin/ffmpeg.exe", source = url))    &#xA;&#xA;

    &#xA;

    By the way, ffmpeg also does not work.

    &#xA;

  • Making my Discord Bot automatically play music from WAV on loop

    5 décembre 2022, par Mativ9

    So I was trying to make a Discord Bot in Python, which would atomatically join a voice channel and play my own music from a list in a loop. So far it's joining the channel, shuffling the list so the music is on random, but when I try to write a code so after one song it will play the next one it crushes and doesn't play anything (tho it's joining the channel)

    &#xA;

    import discord&#xA;import random&#xA;from discord.ext import commands&#xA;from discord import FFmpegPCMAudio&#xA;&#xA;#playlist as a list&#xA;queue = [FFmpegPCMAudio(&#x27;Iceland1.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland2.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland3.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland4.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Iceland5.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland6.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland7.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland8.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Iceland9.wav&#x27;), FFmpegPCMAudio(&#x27;Iceland10.wav&#x27;), FFmpegPCMAudio(&#x27;Norway1.wav&#x27;), FFmpegPCMAudio(&#x27;Norway2.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Norway3.wav&#x27;), FFmpegPCMAudio(&#x27;Norway4.wav&#x27;), FFmpegPCMAudio(&#x27;Norway5.wav&#x27;), FFmpegPCMAudio(&#x27;Norway6.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Norway7.wav&#x27;), FFmpegPCMAudio(&#x27;Norway8.wav&#x27;), FFmpegPCMAudio(&#x27;Norway9.wav&#x27;), FFmpegPCMAudio(&#x27;Norway10.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Norway11.wav&#x27;), FFmpegPCMAudio(&#x27;Presents1.wav&#x27;), FFmpegPCMAudio(&#x27;Presents2.wav&#x27;), FFmpegPCMAudio(&#x27;Presents3.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Presents4.wav&#x27;), FFmpegPCMAudio(&#x27;Presents5.wav&#x27;), FFmpegPCMAudio(&#x27;Presents6.wav&#x27;), FFmpegPCMAudio(&#x27;Presents7.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Presents8.wav&#x27;), FFmpegPCMAudio(&#x27;Presents9.wav&#x27;), FFmpegPCMAudio(&#x27;Presents10.wav&#x27;), FFmpegPCMAudio(&#x27;Autumn1.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Autumn2.wav&#x27;), FFmpegPCMAudio(&#x27;Autumn3.wav&#x27;), FFmpegPCMAudio(&#x27;Autumn4.wav&#x27;), FFmpegPCMAudio(&#x27;Autumn5.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Autumn6.wav&#x27;), FFmpegPCMAudio(&#x27;Autumn7.wav&#x27;), FFmpegPCMAudio(&#x27;Autumn8.wav&#x27;), FFmpegPCMAudio(&#x27;Covers1.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Covers2.wav&#x27;), FFmpegPCMAudio(&#x27;Covers3.wav&#x27;), FFmpegPCMAudio(&#x27;Covers4.wav&#x27;), FFmpegPCMAudio(&#x27;Covers5.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Covers6.wav&#x27;), FFmpegPCMAudio(&#x27;Covers7.wav&#x27;), FFmpegPCMAudio(&#x27;Covers8.wav&#x27;), FFmpegPCMAudio(&#x27;Covers9.wav&#x27;),&#xA;         FFmpegPCMAudio(&#x27;Covers10.wav&#x27;), FFmpegPCMAudio(&#x27;Covers11.wav&#x27;), FFmpegPCMAudio(&#x27;Covers12.wav&#x27;)]&#xA;&#xA;intents = discord.Intents.default()&#xA;intents.message_content = True&#xA;client = commands.Bot(command_prefix=&#x27;>&#x27;, intents=intents)&#xA;&#xA;@client.event&#xA;async def on_ready():&#xA;    global voice&#xA;    print("The Matt Bot is ready")&#xA;    print("--------------------------")&#xA;    await client.change_presence(activity=discord.Game(&#x27;Matt Krupa&#x27;)) #makes my bot play Matt Krupa&#xA;    channel = client.get_channel(thechannelid) #geting channel ID&#xA;    voice = await channel.connect() #connecting to channel&#xA;    random.shuffle(queue) #randomazing the playlist&#xA;    def after_song(): #moving the first song to the end so its on loop, and playling the next one&#xA;        queue.append(queue[0])&#xA;        del queue[0]&#xA;        player = await voice.play(queue[0], after=await after_song())&#xA;    player = await voice.play(queue[0], after=await after_song()) #plays song from the playlist, after the song doing the after_song() function&#xA;&#xA;client.run(mytokenidontwanttoshowitsry)&#xA;

    &#xA;

    I wanted it to play all the songs on the infinite loop, i can't find how to correctly detect the end of a song...

    &#xA;