-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPD Support #133
Comments
@ale1967 what does your videojs-wavesurfer config look like? what version of videojs-wavesurfer and wavesurfer.js? and what is the exact error? |
Sorry, I'm not very familiar with GitHub. Added info on first comment |
where do you load the file? i dont see any |
i have angularjs and in the controller I have a function that set the src, an extract if ($scope.selectProxy.endsWith("mp4")) {
playerIstance.src([
{
type: "video/mp4",
src: $scope.selectProxy
}
]);
} else if ($scope.selectProxy.endsWith("m3u8")) {
playerIstance.src([
{
type: "application/x-mpegURL",
src: $scope.selectProxy
}
]);
} else if ($scope.selectProxy.endsWith('mpd')) {
playerIstance.src([
{
type: "application/dash+xml",
src: $scope.selectProxy
}
]);
} if the source is an .mp4 the player loads correctly and also the waveform is shown without problem. If I put a breakpoint to the function of waveform.js function fetchFile(options) {
if (!options) {
throw new Error('fetch options missing');
} else if (!options.url) {
throw new Error('fetch url missing'); I can see that options.url contains the url of the mp4, while with the mpd the url is "" |
Doing some tests (hope this can help) I have seen this:
I can see the url (line 151 videos.wavesurfer.js) this is the console.log of element field, it contains the url
Same as previous I can see the url (line 151 videos.wavesurfer.js) this is the console.log of element field, it NOT contains the url |
a related video.js stackoverflow question: https://stackoverflow.com/questions/63197583/video-js-format-mpd-m3u8-not-supported-and-depreciation-messages |
@ale1967 see #17 (comment) for some more investigation. |
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
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
the video.js tag in the html is
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
}
The text was updated successfully, but these errors were encountered: