$.ajax({ type: 'GET', url: 'http://localhost:8080/api/file/play/559', xhrFields: { responseType: 'blob' }, beforeSend: (xhr) => { xhr.setRequestHeader('Range', 'bytes=' + 1200000 + '-') }, success: (data, status, xhr) => { let blobData = new Blob([data], {type: 'octet/stream'}) let el = document.querySelector('#jquery_jplayer_1 > video') const url = URL.createObjectURL(blobData) const htmlNewEl = url const htmlOldEl = el.currentSrc if (htmlOldEl && htmlOldEl.startsWith('blob:')) { el.src = '' URL.revokeObjectURL(htmlOldEl) } el.src = htmlNewEl el.load() } })No creo que haya un encabezado de video.
Si intenta reproducir el video después de llamar a la API, se muestra un error como se muestra en la imagen a continuación.
Uncaught (in Promise) DOMException: Failed to load because no supported source was found.