title: How to youtube-dl video download directly to a user side not download file in local system using python Django?
body: <p>I am trying to youtube videos to merge with audio(formate_id:140) and video(formate_id:313) using the youtube-dl library. But it downloads files in the local system. I want it directly download to the client side. I don't want to store files in the local system.</p>
  <p>Client-side means downloading files directly to a user system through a browser.</p>
  <p>Local system means it's my server.</p>
  <p>Example</p>
  <pre><code>ydl_opts = {
      'format': '313+140',
      'keepvideo':'false',
  }
  with youtube_dl.YoutubeDL(ydl_opts) as ydl:
      ydl.download(['https://www.youtube.com/watch?v=Wt8VRxUYDso'])
  </code></pre>
  <p>If any way like merging process and response streaming process work at a time.</p>
  <pre><code>r = requests.get(videoUrl, stream=True)
  response = StreamingHttpResponse(streaming_content=r)
  response['Content-Disposition'] = f'attachement; filename=&quot;{fileName}&quot;'
  return response
  </code></pre>
  <p>Please guide me in solving this coding problem.</p>