Writing an array data into external file [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am using this demo
pitch detector
to get the pitch of an input data, what I need is to write that captured data into external file or to make a some kind of sine wave to see the frequency of that data
or even better to see what frequencies I don't need. That demo can't show me the more or less precise pitch of the played string,
I searched a lot but nothing seems to fit me. Please help.

You can send the extracted data to a backend service using a form or AJAX. You could also store it in localStorage, sessionStorage or the browsers embedded database like IndexedDb or WebSQL. You could then mine that data in your browser. You could also save the data using the File API, although that is not widely supported across browsers.

Related

Accesing camera via Javascript, taking a picture and sending it to Firebase CloudStorage [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Good morning, I´m studiyng and have this problem to solve. I have to create the logic in Javascript with nodejs, to access the device camera (this is a webApp, not Android, thats why is coded in JS), then take a picture and then send it to my backend and save it in Firebase Cloud Storage. I´m not asking for a complex code, but if u know any source, or any repository to start working will be appreciated.
Thanks in advance :D
Happy coding!
When using Node.js as part of a web application it is used for the server-side component of the application and doesn't have access to any cameras on devices accessing it.
You need to use client-side code to do that.
iOS and Android devices tend to make the camera available as an option when you use a regular <input type="file"> so you can use a normal HTML form and your usual multipart-capable body parsing library (not body-parser although its documentation list some options) on your server.
If you want access to a webcan cam then you'd need to look into WebRTC.

Is it a good idea to store website images on good drive and link to it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm developing a website that uses a lot of images and was thinking of storing those images on Google Drive using the Drive API whenever an image is uploaded. Do you think this is a good idea and will it affect the performance in any way?
PS. After uploading to Drive from the backend, I will store a link to the image in the DB.
In your case, maybe you should take a look at Cloudinary.
The free plan is very generous, and the api is very easy to understand, despite the possibility to transform the images (crop, etc...).

is posible manipulate mediastream directly without canvas api? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm created a simple video-chat using javascript and WebRTC for do connection between users client i want to add posibility that users can use some custom filters like video effects and other related stuff,
i found some examples and are useful but all examples do modification using canvas api I mean the video-stream is proccesed then drawed in a canvas next reproccess for be sent as MediaStream obtained from it
i felt that all this step are redundant and i want to know if exists some way to manipulate video stream directically avoiding the use of canvas api ?
WebRTC-NV lists some use-cases related to that (such as background blurring) but there are no implementations yet so you'll have to go via canvas+captureStream.

What is the most feasible way to store large array data while being able to access it from a web browser? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have come across many ways to do this, but, either a third party resource is needed or the solution is not practical to implement.
What I need to store is an immense amount of data (an array with 700 nested arrays and 10 entries in each array). Some methods I've thought of are listed below together with their drawbacks:
Using JSON:
It's just a lot of work on the browser. The browser will freeze when I loop through the array.
Using an SQL database
I won't be able to run my webpage in any computer. I will have to install PHP and SQL in every computer I wish to run my webpage in.
Using a C++ program to handle the heavy work
This will only work with chrome, where I can use the file system API.
Note: the webpage won't be uploaded to the internet.
What would be best to do in this situation?
IndexDB was designed for your purpose:
IndexedDB is a low-level API for client-side storage of significant
amounts of structured data, including files/blobs. This API uses
indexes to enable high-performance searches of this data.
https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
And here are some great examples of use:
https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API#Examples

Reload page if Database changes [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I can't set a javascript timer to reload the page every X seconds. It must be a perfect loop with no wait times.
I can't use AJAX. When the database changes a full screen video must be played, and there's no way I can load an "auto-fullscreen" HTML5 video from AJAX method through someotherfile.php
I spent 6 hours today trying to find a way to do this. Apparently I can't put PHP in a loop to 'listen' by doing sql queries every now and on. Weak language I guess.
It has nothing in common with PHP weaknesses it's about server side and client side.
Answering your question. You should try using HTML5 server sent events check these links it should clarify you how to do it. There are examples given:
http://www.w3schools.com/html/html5_serversentevents.asp
https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events
BTW you don't need reload page with JavaScript just simple meta referesh does this.
Note: using EventSource is not supported by all browsers.

Categories

Resources