
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (43)
-
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (4554)
-
HTML5 mp4 video autoplay issue
8 août 2018, par Fernando GuimarãesI am doing a website that requires a 16s video to autoplay on the frontpage, pretty standard. But it has some issues, on firefox it tells me that the video could not be decoded, and on chrome autoplaying just works sometimes.
The original video .mov (1Gbs) was converted with ffmpeg to .mp4 (30Mbs).
ffmpeg -i 30389617-4k.mov out.mp4
My HTML video code is the following :
<video class="embed-responsive-item" src="assets/output.mp4" type="video/mp4" autoplay="autoplay" loop="loop"></video>
And if helpful, my CSS :
video {
object-fit: fill;
position: relative;
z-index: 1;
max-height: 100vh;
width: 100%;
}It’s a nodeJS project, the video is located inside /public/assets.
Who can I fix this mess ? Is there any good practice I may be missing ?Regards
-
Documentation #3096 : fichier lang public/privé sur les plugins
16 novembre 2013, par denisb -comme ce me semble pas une utilisation aussi fréquente que ça, il est possible dans un fichier squelettes/lang/local_fr.php de surcharger un item de langue d’un plugin en spécifiant où cette surcharge doit être utilisée.
par exemple, pour un #FORMULAIRE_JOINDRE_DOCUMENT appelé dans une page publique :
$GLOBALS[$GLOBALS[’idx_lang’]] = array( ’bla_bla’ => ’bli blo blu’, test_espace_prive() ? ’’ : ’bouton_upload’ =>’Envoye le fichier !’, ’autre_item’ => ’tric trac troc’, )
dans le privé le formulaire aura toujours son bouton ’Téléverser’ alors que dans le public le bouton sera ’Envoye le fichier !’ -
FFmpegPCMAudio not playing in discord no error
9 mars 2023, par Anton AbboudOkey, it might be something obvious that ive missed but i really can't find the issue. I am currently making a discord-music-bot which has worked fine before. However as soon as i moved over to yt-dlp from youtube-dl (due to an error with youtube-dl) FFmpegPCMAudio doesn't play the music. It read through the code like normal but it simply doesn't play the sound. It even downloads the music from youtube so I am a bit confused. Here is what my code looks like :


class music_cog(commands.Cog):
 
 #Searching the keyword on youtube
 def search_yt(self, item):
 with yt_dlp.YoutubeDL(self.YDL_OPTIONS) as ydl:
 try: 
 info = ydl.extract_info("ytsearch:%s" % item, download=False)['entries'][0]
 except Exception: 
 return False

 return {'source': info['formats'][0]['url'], 'title': info['title']}

 def play_next(self):
 if len(self.music_queue) > 0:
 self.is_playing = True

 
 #Get the first url
 my_url = self.music_queue[0][0]['source']

 global current_song_title
 current_song_title = self.music_queue[0][0]['title']

 #Remove the first song in queue as you are currently playing it
 self.music_queue.pop(0)

 self.vc.play(nextcord.FFmpegPCMAudio(my_url, **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())
 else:
 self.is_playing = False

 # Infinite loop checking if there is a song in queue
 async def play_music(self, ctx):
 if len(self.music_queue) > 0:
 self.is_playing = True
 my_url = self.music_queue[0][0]['source']
 
 global current_song_title
 current_song_title = self.music_queue[0][0]['title']
 
 #Try to connect to voice channel if bot is not already connected
 if self.vc == None or not self.vc.is_connected():
 self.vc = await self.music_queue[0][1].connect()

 #In case the bot fails to connect
 if self.vc == None:
 await ctx.send("Could not connect to the voice channel")
 return
 else:
 await self.vc.move_to(self.music_queue[0][1])
 
 self.music_queue.pop(0)
 print("hello")
 self.vc.play(nextcord.FFmpegPCMAudio(my_url, **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())
 
 else:
 self.is_playing = False

 @commands.command(name="play", aliases=["p"], help="Plays a selected song from youtube")
 async def play(self, ctx, *args):
 query = " ".join(args)
 
 if ctx.author.voice is None:
 #User needs to be connected so that the bot knows where to go
 await ctx.send("Connect to a voice channel!")
 
 elif self.is_paused:
 self.vc.resume()
 
 else:
 global song
 song = self.search_yt(query)
 if type(song) == type(True):
 #In case the song is not able to download
 await ctx.send("Could not download the song. Incorrect format try another keyword. This could be due to playlist or a livestream format.")
 else:
 await ctx.send(f"{song['title']} added to the queue, and gets played if nothing else is in the queue or currently playing")
 voice_channel = ctx.author.voice.channel
 self.music_queue.append([song, voice_channel])
 
 if self.is_playing == False:
 await self.play_music(ctx)



I have tried searching on how to use FFmpeg even though I have made it work before. but I haven't found anything of use. I wanted to convert back to youtube-dl but realized that it still won't work because of an issue in thier code. I can't really try anything else since im not getting an error. The terminal displays :


[youtube:search] Extracting URL: ytsearch:heh 
[download] Downloading playlist: heh 
[youtube:search] query "heh": Downloading web client config
[youtube:search] query "heh" page 1: Downloading API JSON 
[youtube:search] Playlist heh: Downloading 1 items of 1 
[download] Downloading item 1 of 1
[youtube] Extracting URL: https://www.youtube.com/watch?v=8EhaZG7i9Bk
[youtube] 8EhaZG7i9Bk: Downloading webpage
[youtube] 8EhaZG7i9Bk: Downloading android player API JSON 
[download] Finished downloading playlist: heh 
hello



I used "heh" as an example searchword and "hello" to check if the code actually read what it where it is supposed to play the audio.


Please help !