
Recherche avancée
Autres articles (57)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)
Sur d’autres sites (8384)
-
My bot doesn't play any music when hosted on Heroku
25 août 2022, par Lucas SilvaI am creating a music command, working great locally but not on Heroku. I have the following buildpacks :



This is my code :


@commands.command(name="musga", help="coloque um url da musica que deseja reproduzir!")
async def play(self, ctx, arg):
 global vc
 
 try:
 voice_channel = ctx.author.voice.channel
 vc = await voice_channel.connect()
 except:
 print('[ERROR]') #debug

 if vc.is_playing():
 await ctx.send(f'{ctx.author.mention}, Já estou cantando.')

 else:
 with YoutubeDL(self.YDL_OPTIONS) as ydl:
 info = ydl.extract_info(arg, download=False)
 
 URL = info['formats'][0]['url']

 vc.play(discord.FFmpegPCMAudio(executable="ffmpeg", source = URL, **self.FFMPEG_OPTIONS))
 
 while vc.is_playing():
 await sleep(1)



And requirements.txt :


discord.py[voice]
PyNaCL
youtube_dl
ffmpeg



When using the command, my bot joins the channel but doesn't play the music and doesn't print any traceback.


-
My bot that I uploaded to heroku doesn't work the music command
25 août 2022, par Lucas SilvaI'm creating a bot for discord it works great locally, but after I uploaded it on heroku the music command stopped working I'm using these buildpacksenter image description here


The command code is this


@commands.command(name="musga", help="coloque um url da musica que deseja reproduzir!")
async def play(self, ctx, arg):
 global vc
 
 try:
 voice_channel = ctx.author.voice.channel
 vc = await voice_channel.connect()
 except:
 print('[ERROR]') #debug

 if vc.is_playing():
 await ctx.send(f'{ctx.author.mention}, Já estou cantando.')

 else:
 with YoutubeDL(self.YDL_OPTIONS) as ydl:
 info = ydl.extract_info(arg, download=False)
 
 URL = info['formats'][0]['url']

 vc.play(discord.FFmpegPCMAudio(executable="ffmpeg", source = URL, **self.FFMPEG_OPTIONS))
 
 while vc.is_playing():
 await sleep(1)



in my requirements.txt file I have :
discord.py[voice]
PyNaCL
youtube_dl
ffmpeg


When I use the command it enters the call but it doesn't play the music and it doesn't return any error.


i hope someone can help me. Thanks in advance


-
discord.py and ffmpeg : Play a sound effect while playing music
26 juin 2022, par JPhusionI would like to play a sound effect while playing music in a vc using discord.py and ffmpeg. I know you cannot play more than one audio source at a time, so instead I am trying to pause the music, play the sound effect and continue the music.


This is what I've come up with so far, but because I am playing the sound effect, the resume() method no longer works after the pause().


@commands.command()
 async def sfx(self, ctx):
 try:
 voice = await ctx.author.voice.channel.connect()
 except:
 voice = ctx.guild.voice_client
 try:
 voice.pause()
 # voice.play(discord.FFmpegPCMAudio('./media/sfx/notification.mp3'))
 except:
 voice.pause()
 # voice.play(discord.FFmpegPCMAudio(executable=r"C:\Users\josh\Programming\Discord\ffmpeg\bin\ffmpeg.exe", source='./media/sfx/notification.mp3'))
 guild = self.client.get_guild(752756902525403156)
 member = guild.get_member(876292773639233596)
 print(member.activities[0].name)
 await asyncio.sleep(1)
 voice.resume()
 if member.activities[0].name == "Not playing music":
 await voice.disconnect()