Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Stream downloadable files on client side using Javascript

I have this idea of integrating a video player in my website that can stream files that are download only by default , so far I have researched that concluded to a question , that Can I create a blob object on client side and stream it ?

<video id="player" src="THE_BLOB_OBJECT">

<script>
function blob_create(){
    passedUrl = 'PASSED FROM BACKEND'
    function blob_obj(url){
        // MAGIC CODE TO CREATE A BLOB
        return link
    }
    createdObj = blob_obj(passedUrl)
    document.getElementById('player').src = createdObj
}
</script>

I don't know if the above is possible as I have a very little understanding of blob, any alternates to stream a download file will work too.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

You can use URL.createObjectURL(param) to convert the passed url to blob Object.

Example:

function blob_obj(url){
    return URL.createObjectURL(url);
}
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!