alguma forma de baixar o vídeo desta api tipo download direto

  • Autor Autor Armandolqr
  • Data de início Data de início
Tradução em andamento: em alguns minutos este tópico estará em português. Por enquanto, o conteúdo está no original em espanhol. Ver original
Foi útil? Participe da conversa

Com sua conta grátis você pode responder, mandar mensagem privada ao autor e comprar com Saldo retido: o pagamento é liberado quando você recebe o combinado.

Leva 30 segundos · você volta a este tópico ao terminar
[{"file":"\/\/flashpro.gratisweb.site\/videoplayback\/13c4250a020377055b4a09afdb84ae3b\/a710cfa4010bc7f656d4c9a252be8953\/p\/v.mp4?token=10d683b315aecbfbf563d3762fa7ad605e4c4c91","type":"video\/mp4","label":"p"}],"tracks":[]}
este es el apartado de video con token
 
Usando fetch

JavaScript:
// Tu ves como obtienes el URL en un string
let url ='http://sample.example.file.doc'
const authHeader ="Bearer 6Q************"

const options = {
  headers: {
    Authorization: authHeader
  }
};
 fetch(url, options)
  .then( res => res.blob() )
  .then( blob => {
    var file = window.URL.createObjectURL(blob);
    window.location.assign(file);
  });

Fuente: https://stackoverflow.com/questions/32545632/how-can-i-download-a-file-using-window-fetch
 
Usando fetch

JavaScript:
// Tu ves como obtienes el URL en un string
let url ='http://sample.example.file.doc'
const authHeader ="Bearer 6Q************"

const options = {
  headers: {
    Authorization: authHeader
  }
};
 fetch(url, options)
  .then( res => res.blob() )
  .then( blob => {
    var file = window.URL.createObjectURL(blob);
    window.location.assign(file);
  });

Fuente: https://stackoverflow.com/questions/32545632/how-can-i-download-a-file-using-window-fetch
lo probare
 
Voltar
Topo