1

So I am working on a service to universally download videos, I search for the

<video src="https://example.com/image/example"></video> 

tag and get the src url in order to download the video. The problem rises when there is a 'blob:' in front of the url. That link points to no video source and I have no knowledge on how to retrieve the video.

Anything could be helpful, Thanks!

Dr BigKitkat
  • 283
  • 1
  • 5
  • 13
  • Related: [How do we download a blob url video](https://stackoverflow.com/questions/42901942/how-do-we-download-a-blob-url-video). – Wais Kamal Oct 12 '18 at 07:17
  • 1
    why would the link be a `blob:` unless you created a Blob, and used the `URL.createObjectURL` to create a blob uri? and if you did that, then you'd have access to the blob – Jaromanda X Oct 12 '18 at 07:18
  • 1
    The blob wasn't created by me, take vimeo for example their video sources are in blob form. I want to retrieve links to their videos. – Dr BigKitkat Oct 12 '18 at 07:53

1 Answers1

2

Most of the time, when a video as its src pointing to a blobURI (blob://..), it is not a Blob that is at the other end of the URI, but a MediaSource.

You won't be able to retrieve the source of this data from your extension from this blobURI alone.

You'd have to check where the ArrayBuffers that do populate this MediaSource are coming from, but this is a way too broad subject for here.

Kaiido
  • 123,334
  • 13
  • 219
  • 285