title: discord.py | play audio from url
body: <p>I want to make my bot playing audio from an url, but I don't want to download the file ...</p>
  <p>Here is my code:</p>
  <pre><code>@commands.command(name='test')
      async def test(self, ctx):
  
          search = &quot;morpheus tutorials discord bot python&quot;
  
          if ctx.message.author.voice == None:
              await ctx.send(embed=Embeds.txt(&quot;No Voice Channel&quot;, &quot;You need to be in a voice channel to use this command!&quot;, ctx.author))
              return
  
          channel = ctx.message.author.voice.channel
  
          voice = discord.utils.get(ctx.guild.voice_channels, name=channel.name)
  
          voice_client = discord.utils.get(self.client.voice_clients, guild=ctx.guild)
  
          if voice_client == None:
              await voice.connect()
          else:
              await voice_client.move_to(channel)
  
          search = search.replace(&quot; &quot;, &quot;+&quot;)
  
          html = urllib.request.urlopen(&quot;https://www.youtube.com/results?search_query=&quot; + search)
          video_ids = re.findall(r&quot;watch\?v=(\S{11})&quot;, html.read().decode())
  
          #################################
          await ctx.send(&quot;https://www.youtube.com/watch?v=&quot; + video_ids[0])
          # AND HERE SHOULD IT PLAY
          #################################
  </code></pre>
  <p>I have tryied create_ytdl_player method, but saw that its no longer supported what can I do?</p>