Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

218
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda