Skip to content
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

Make require work #9

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

hexray-newbee
Copy link
Contributor

fix #8

@hexray-newbee
Copy link
Contributor Author

> videojs-flvjs@0.1.2 test D:\workspace\github\videojs-flvjs
> karma start test/karma.conf.js

14 12 2017 15:18:25.153:INFO [framework.detect-browsers]: The following browsers were detected on your system: [ 'Chrome', 'IE' ]
14 12 2017 15:18:25.189:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
14 12 2017 15:18:25.202:INFO [launcher]: Starting browser Chrome
14 12 2017 15:18:25.215:INFO [launcher]: Starting browser IE
14 12 2017 15:18:26.327:INFO [Chrome 63.0.3239 (Windows 10 0.0.0)]: Connected on socket 3wcpbqsRBSzXphdOAAAA with id 61327358
14 12 2017 15:18:26.334:INFO [IE 11.0.0 (Windows 10 0.0.0)]: Connected on socket b0zYZgosUHHt_kPxAAAB with id 79471669
..
Chrome 63.0.3239 (Windows 10 0.0.0): Executed 2 of 2 SUCCESS (0.051 secs / 0.036 secs)
..
IE 11.0.0 (Windows 10 0.0.0): Executed 2 of 2 SUCCESS (0.079 secs / 0.073 secs)
TOTAL: 4 SUCCESS

@@ -55,7 +56,7 @@ class Flvjs extends Html5 {
*/
Flvjs.isSupported = function() {

return window.flvjs && window.flvjs.isSupported();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to check for flvjs if we're importing it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Owner

@mister-ben mister-ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! I think it's reasonable to import flv.js, although it's a major change. Could you update the docs to reflect that flv.js does not need to be separately included?

Also this will need a rebase on master for the fix I just pushed, sorry about that.

@hexray-newbee
Copy link
Contributor Author

hexray-newbee commented Dec 16, 2017

maybe, making import flv.js or not to configurable is more flexible, like the option flash.swf of Flash tech.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

do not work when using require() with webpack
2 participants