Skip to content

MPD Support #133

@ale1967

Description

@ale1967

Sorry to bother with an open issue, but I haven't found any information and don't know how to ask.

Is mld supported, every time I try to open an mpd file I have an error on wavesufer.js exactly here

function fetchFile(options) {
  if (!options) {
    throw new Error('fetch options missing');
  } else if (!options.url) {
    throw new Error('fetch url missing');

because the url is empty, while with an mp4 is correct and works smoothly.

Thanks

I'm using

video.js version 7.7.5
dash.all.min.js version 3.2.1
videojs-dash.min.js version 4.1.0
wavesurfer.js version 4.6.0
videojs.wavesurfer.js version 3.6.0
the exact error is

at Object.fetchFile (wavesurfer.js:2656)
at WaveSurfer.getArrayBuffer (wavesurfer.js:5035)
at WaveSurfer.loadMediaElement (wavesurfer.js:4979)
at WaveSurfer.load (wavesurfer.js:4887)
at Wavesurfer.load (videojs.wavesurfer.js:641)
at Object.setSource (videojs.wavesurfer.js:158)
at setSourceHelper (video.js:12112)
at video.js:12123
at Object.setSource (video.js:54792)
at setSourceHelper (video.js:12112)

the video.js tag in the html is

video crossOrigin="anonymous"
id="videoPlayer"
ng-if="AssetDetailMessage.length > 0"
class="video-js vjs-default-skin vjs-16-9 vjs-fill vjs-big-play-centered"
controls preload="metadata"
width="1000"
height="562"
vjs-setup="{
fluid: true,
responsive: true,
autoplay: false,
playbackRates: [1, 2, 4, 8],
plugins: {
wavesurfer: {
backend: 'MediaElement',
displayMilliseconds: false,
debug: true,
waveColor: 'rgba(255, 255, 255, .3)',
progressColor: '#065fd4',
cursorColor: '#065fd4',
hideScrollbar: true,
container: '#waveform',
normalize: true
}
}
}"
vjs-media="mediaToggle"
vjs-video
tabindex="-1">
</video

so this is the config of wavesurfer, correct ?

wavesurfer: {
backend: 'MediaElement',
displayMilliseconds: false,
debug: true,
waveColor: 'rgba(255, 255, 255, .3)',
progressColor: '#065fd4',
cursorColor: '#065fd4',
hideScrollbar: true,
container: '#waveform',
normalize: true
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions