Closed phloxic closed 8 years ago
Additionally the error depends on node and/or npm version used:
Hls
undefined) - also with node v5.4.1 / npm v3.3.12Until solved keep webpack build in separate branch.
Additionally:
With node v5.6.0 / npm v3.6.0 the undefined Hls
prevents the plugin from working at all, the error is not confined to hlsjs.debug: true
.
The error for isSupported
is because we are doing require('hls.js')['default']
which is not needed anymore. Pushed a commit for this
The other error is already reported in dailymotion/hls.js#187 and dailymotion/hls.js#188
Sorry, that was a desperate leftover from one of my tests before I split out the feature/webpack branch again.
However, the issue with hlsjs.debug
'[error] > error while initializing DemuxerWorker, fallback on DemuxerInline' persists with node v4.3.1 / npm v2.14.12 - I'll check whether the other ones were already caused by re-adding .default for testing.
It certainly doesn't look 100% reliable.
As I said: the [error] > error while initializing DemuxerWorker, fallback on DemuxerInline'
are dailymotion/hls.js#187 and dailymotion/hls.js#188
I'll see if it's something we can fix
Please try again
I now loaded
"dependencies": {
"hls.js": "git://github.com/dailymotion/hls.js#workerify"
}
And, as I'm currently testing node v5.6.0 there's the same problem with Hls.isSupported
not being a function.
Downgrading node again because I need it at 4.x for www
Will try your patch now.
@nnarhinen - your patch works with node v5.6.0 in a quick test - Hls.isSupported
does not error out anymore.
Now for node v4.
@nnarhinen - seems to work with node v4 too. Great. Running some more tests. Then this can be merged.
Looking good. Thanks a lot @nnarhinen.
In Chrome, with hlsjs.debug turned on:
This does not happen when a copy of dist/hls.min.js is loaded.
@nnarhinen - for the moment I will revert again to concatenating hls.min.js into the packed flowplayer.hlsjs.min.js