Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (57)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

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

Sur d’autres sites (11245)

  • Revision 3484 : un sprite sur le bouton play / pause

    28 mai 2010, par kent1 — Log

    un sprite sur le bouton play / pause

  • discord.py bot dosen't play music

    29 août 2022, par bon ho

    I'm making music bot with discord.py. but bot doesn't play music. code is alright but music played 0.000000001 seconds and terminated.

    


    my code :

    


    @tree.command(name="play", description="play music")
async def playmusic(interaction:Interaction,url_title:str,playfirst:bool=False):
  await interaction.response.send_message("I'm looking for music!!")
  guild=str(interaction.guild.id)
  try:
    queue[guild]
  except KeyError:
    queue[guild]=[]
  if interaction.user.voice is None:
    await interaction.edit_original_response(content="you must join any voice channel")
  else:
    voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    if voice_client == None:
      await interaction.user.voice.channel.connect()
      voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    player = await YTDLSource.from_url(url_title, loop=None)
    if playfirst and len(queue[guild])>1:
      queue[guild].insert(1,player)
    else:
      queue[guild].append(player)
    if not voice_client.is_playing():
      voice_client.play(player,after=nextsong(interaction))
      await interaction.edit_original_response(content=f"{player.title} playing!!")
    else:
      await interaction.edit_original_response(content=f"{player.title} enqueued!")
    await asyncio.sleep(7)
    await interaction.delete_original_response()


    


    nextsong :

    


    def nextsong(interaction:Interaction):
  guild=str(interaction.guild.id)
  print(f"end : {guild}")
  voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
  if len(queue[guild])>0:
    queue[guild].pop(0)
  if not voice_client is None:
    voice_client.stop()
  if not len(queue[guild])==0:
    voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    voice_client.play(queue[guild][0],after=nextsong(interaction))


    


    output :

    


    end : 1012635532829921291
[INFO    ] discord.player: ffmpeg process 12 successfully terminated with return code of -11.


    


    what should I do ?

    


    version :
discord.py 2.0.0 python 3.10.6

    


  • Upload and Play Any Video in web browser using php CI

    14 août 2017, par Roni Modak

    I have tried to upload any video and convert the video file to mp4 at the time of upload using ffmpeg. The shell command I tried :

    $input = base_url().'video_upload/'.$file_name;
    $output = video_upload/video_'.$video_data['username'].'_'.$dtd.'_'.$random_number.'.mp4';
    $convt = shell_exec('ffmpeg -i '.$input.' '.$output);

    But i am unable to play those converted video in the web browser.