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

Failed to build resources on Windows #186

Closed
inikonorov opened this issue Nov 27, 2017 · 38 comments · Fixed by #187
Closed

Failed to build resources on Windows #186

inikonorov opened this issue Nov 27, 2017 · 38 comments · Fixed by #187
Labels

Comments

@inikonorov
Copy link

During I install dependencies via node.js it shows such errors as:

  1. Failed to load resource: the server responded with a status of 404 (Not videojs.record.css found) or (Not video.js.record.js found)
  2. Uncaught Error: plugin "record" does not exist (video.min.js:5)
    What should I do?
@thijstriemstra
Copy link
Member

@inikonorov can you show me some example code, how are you loading this?

@inikonorov
Copy link
Author

  1. Clone git
    image

  2. Install dependencies
    image

  3. npm start
    image

  4. developer tools
    image

@thijstriemstra
Copy link
Member

I see, let me take a look.

@inikonorov
Copy link
Author

look at what?

@thijstriemstra
Copy link
Member

thijstriemstra commented Nov 27, 2017

look at what?

At what could be wrong on your side (or buggy in this library). I've not built it on windows before for example, perhaps there's an issue.

@inikonorov
Copy link
Author

I just tried to do this instructions
https://github.com/collab-project/videojs-record#examples

Error appears during npm start (look at screen - no such file or directory)
Sorry for my english :)

I don't understand completely what should I show you

@thijstriemstra
Copy link
Member

@inikonorov hehe don't worry, it wasn't a request for you, I'm going to try to reproduce that error, just sit tight and I'll get back to you ;)

@inikonorov
Copy link
Author

oh, thank you :)

@thijstriemstra
Copy link
Member

@inikonorov what operating system are you using? And what version of node and npm? e.g. try running following commands and paste the output (or screenshot):

npm --version
node --version

@inikonorov
Copy link
Author

win 10
npm 5.5.1
node 8.9.1

@thijstriemstra
Copy link
Member

@inikonorov I've setup a windows build and I can recreate the issue which is good. See log at https://ci.appveyor.com/project/thijstriemstra/videojs-record/build/job/wfd4qlcv7d37n8cg

Now to fix it..

@thijstriemstra
Copy link
Member

@inikonorov can you do a git pull and try again?

@thijstriemstra thijstriemstra changed the title Failed to load resources Failed to build resources on Windows Nov 27, 2017
@inikonorov
Copy link
Author

yeah, one second

@inikonorov
Copy link
Author

hmm, the same error
i tried to clone again and node shows the same error

@inikonorov
Copy link
Author

image

@thijstriemstra
Copy link
Member

Ok thanks for the feedback I'll take a look at it again.

@inikonorov
Copy link
Author

thank you very much, you're the best support i've ever seen 🥇

@inikonorov
Copy link
Author

i can try to do this on Linux, but I have a question - what should i do with node_modules if I want to upload files to hosting? just upload this folder?

@thijstriemstra
Copy link
Member

thank you very much, you're the best support i've ever seen 🥇

i'm 'always poor, never bored' ;)

@thijstriemstra
Copy link
Member

i'd like to get it working on windows, i imagine many people tried this on windows and failed, so I'm glad you raised the issue. Never thought about the windows build :-/

@inikonorov
Copy link
Author

yeah, i think many people tried this on windows too
if you need anything from me - i'm ready :)

@thijstriemstra
Copy link
Member

@inikonorov can you upgrade npm/node to version 9 and see if that makes a difference?

@inikonorov
Copy link
Author

yeah, of course
after university i'll write you

@inikonorov
Copy link
Author

the same error
image

@inikonorov
Copy link
Author

versions
image

@thijstriemstra
Copy link
Member

@inikonorov can you attach the full log file (as noted at bottom of error), e.g. 2017-11-28T12_03_02_719Z-debug.log?

@inikonorov
Copy link
Author

of course
2017-11-28T12_03_02_719Z-debug.log

thijstriemstra added a commit that referenced this issue Nov 29, 2017
@thijstriemstra
Copy link
Member

thijstriemstra commented Nov 29, 2017

@inikonorov i was able to reproduce your error (on windows and linux) and improved some things. Can you do:

  • a fresh git checkout
  • npm install (there is a new dependency)
  • npm run build (so things like the fonts and other assets get build)
  • npm run start (make sure to use npm run start, i think you used npm start before)

@inikonorov
Copy link
Author

woohoooo! everything is work, thank you very much :)

@inikonorov
Copy link
Author

but i still have a question, help me please, if you know anything about it - what should I do with node/npm, if I want to upload this files on hosting?

@inikonorov
Copy link
Author

can I just upload node_modules folder?

@inikonorov
Copy link
Author

and I wanted ask you - can I ask you some questions about videojs? and if i can do this, where does it do better?

@thijstriemstra
Copy link
Member

@inikonorov you move the javascript, css and html files onto a webserver, not the whole node_modules directory. Use a site like stackoverflow.com for video.js questions or their github page.

@inikonorov
Copy link
Author

nono, i was wrong, i wanted write "some questions about videojs-record" of course :)

@thijstriemstra
Copy link
Member

Yea this is the right place.

@inikonorov
Copy link
Author

inikonorov commented Nov 30, 2017

okay, thank you very much, i'm very appreciate your support 🥇
i'll try to read some information about videojs-record and fine-uploader and make some experiments, if something goes wrong, I'll write you :)

@thijstriemstra
Copy link
Member

v2.0.3 with the fixes has been released, closing.

@priyach21
Copy link

priyach21 commented Aug 31, 2018

Hi I am facing issue with video recording and got the below issue.its been 2 days since im trying to fix but dint
In Angular we need to declare a variable for videojs
In component.ts:

let videojs = require('./../../../../../node_modules/video.js/dist/video.js');

ngAfterViewInit() {
var player = videojs("myVideo", {
controls: true,
width: 320,
height: 240,
fluid: false,
plugins: {
record: {
audio: true,
video: true,
maxLength: 15,
debug: true
}
}
});

// error handling
player.on('deviceError', function () {
  console.log('device error:', player.deviceErrorCode);
});

player.on('error', function (error) {
  console.log('error:', error);
});

// user clicked the record button and started recording
player.on('startRecord', function () {
  console.log('started recording!');
});

// user completed recording and stream is available
player.on('finishRecord', function () {
  // the blob object contains the recorded data that
  // can be downloaded by the user, stored on server etc.
  console.log('finished recording: ', player.recordedData);
});

}

angualrcli.json:

"styles": [
"styles.scss",
"assets/sass/style.scss",
"../node_modules/videojs-record/dist/css/videojs.record.css",
"../node_modules/video.js/dist/video-js.min.css"
],
"scripts": [
"assets/js/app.js",
"assets/js/bootstrap.min.js",
"assets/js/bootstrap-select.js",
"assets/js/bootstrap-datepicker.js",
"assets/js/ion.rangeSlider.min.js",
"assets/js/jquery.ui.js",
"assets/js/jquery.scrollbar.js",
"assets/js/photobooth_min.js",
"../node_modules/chart.js/dist/chart.min.js",
"../node_modules/videojs-record/dist/videojs.record.js",
"../node_modules/video.js/dist/video.min.js",
"../node_modules/recordrtc/RecordRTC.js",
"../node_modules/webrtc-adapter/out/adapter.js"
],

index.html

<script src="http://cdnjs.cloudflare.com/ajax/libs/video.js/4.12.5/video.js"></script> <script src="http://cdn.WebRTC-Experiment.com/RecordRTC.js"></script>

package.json:

"@angular/cli": "1.4.9",
"recordrtc": "^5.4.7",
"video.js": "^7.1.0",
"videojs-record": "^2.0.3",
"videojs-vr": "^1.4.7",
"videojs-wavesurfer": "^2.5.1",
"webrtc-adapter": "^6.3.2",
"@dfl/videojs-record": "^2.4.1",
"@types/videojs": "^5.16.2",

issuewithvideorecording

@collab-project collab-project locked as resolved and limited conversation to collaborators Aug 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants