
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (107)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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 (12317)
-
Discord.py, ffmpeg and pytube to play audio, but it keeps stopping early. Why ? [closed]
15 septembre 2023, par LowEloTVI tried to program a discord,py bot to play audio, but the audio kept cutting out in the middle.


@bot.command()
async def play(ctx, url: str):
 global ffmpeg_executable
 if discord.utils.get(ctx.guild.roles, name='music'):
 role = discord.utils.get(ctx.guild.roles, name='music')
 if role in ctx.author.roles:
 voice_client = ctx.voice_client


 if voice_client is None:
 channel = ctx.author.voice.channel
 voice_client = await channel.connect()
 print("Bot joined voice channel successfully.")


 try:
 # Fetch the audio stream URL using pytube
 yt = YouTube(url)
 audio_stream = yt.streams.filter(only_audio=True).first()


 # Play the audio stream using the VoiceProtocol
 if voice_client.is_playing():
 voice_client.stop()
 voice_client.play(discord.FFmpegPCMAudio(audio_stream.url, executable=ffmpeg_executable))
 except Exception as e:
 await ctx.reply(f"An error occurred: {str(e)}")
 else:
 await ctx.reply('You don\'t have the permission for this command!')
 else:
 await ctx.reply('This Feature is not available on this guild, ask an Admin to add it!')





I tried to program a discord,py bot to play audio, but the audio kept cutting out in the middle.


-
Play sound using bytes array in python
30 juin 2015, par iRavi iVoodaHow can I play sound using a byte array in python. To be more precise, I read a byte array from a socket and I want to convert it to sound to understand it. How can I achieve this.
Any libraries would be useful.
-
check supported() before play/createSound() calls
5 octobre 2010, par Scott Schillerm demo/template/deferred-example.html check supported() before play/createSound() calls