I'm searching to use my browser DB through Polymer (WebDB or IndexedDB).
I've found something for Mozilla but only on the LocalStorage part, not the WebDB or IndexedDB : https://github.com/addyosmani/polymer-localforage but I search something for chrome or best for all recent browsers.
I also see that some people use Dart for that but... If I can avoid learning a new language and platform, It'll be fine.
Do you know if there is a Polymer Element for manipulating WebDB or IndexedDB ?
Else, how do you think I can handle it the best ? And do you have relevent tutorials ?
Thanks in avance,
Related
I have started a crash course of IndexDB API. I have heard from the author that the API is a little bit confusing. Primarily, as we have been working with the promise pattern as this API doesn’t use this pattern. Secondary, there are different wrappers, one of them seems is from Github author’s personal library so I suppose he have created it.
However looking for a different flavor, I found this one: http://dexie.org/. Also supports the Promise pattern. See http://dexie.org/docs/Promise/Promise, http://dexie.org/docs/API-Reference#query-items . It seems “promising”.
Also I found that the IndexDB 2.0 API was created post the video time. It is already being supported since beginning of 2017. From a Mozilla developer, I found since Firefox 51 (Jan 2017) it is already there. And he wrote what’s the differences among 1 and 2 versions https://hacks.mozilla.org/2016/10/whats-new-in-indexeddb-2-0/
So my question is if at this point is better to use the wrapper libraries or to use the native IndexDB API in terms of cross-browsing and support and better practices?
It all depends on what you want to do with indexeddb -
If you are learning indexeddb for your interest or for knowledge then you should go for plain indexeddb. Learn and research as much you can, because it has too many apis and you will have to write code for every type of situation.
You want to use indexeddb in your project and dont have much time to explore indexeddb. You only want to do some database operations and release your project. In this case - you should go for indexedd library. This way you dont need to worry about indexeddb code . You will just write simple code using the library.
For instance : check out this article - https://dzone.com/articles/crud-operation-in-indexeddb-using-jsstore. How a library makes indexeddb so easy.
Hope this will help you.
We are trying to develop a web conferencing application using WebRTC. It's lack of support for IE browsers is really big pain point for us. Now we are trying to deploying a media server that can possibly do a http live streaming for non WebRTC browsers. We tried with Kurento Media Server, but unfortunately it doesn't go well with cloud. I'm clue less on how to proceed now. Can anyone help me with this regards.
P.s. Consider me as a rookie in WebRTC.
Priologic (easyRTC) just released an open source WebRTC plugin for IE.
HTTP Live Streaming has several seconds of delay. Not suitable for the real-time communication.
There are several alternative/complements that you can use in order to make videos work in IE.
First of all, please ask yourself if this is really needed. Are the people that will use your solution using IE ? If yes, could yo convince them to use a more decent another browser ?
If you really can't do that, then :
You could ask your users to install a plugin, like https://code.google.com/p/webrtc4all/
You could also use a fallback mechanism, like flash. Unfortunately, I don't know of any simple way to do that right now. You will probably have to build your solution from scratch. And the quality will probably suffer. EDIT : found this SO question, with a commercial Java applet.
Also see this SO question related to chrome frame and a google groups conversation
But really, I would just forget IE if I were you...
some rather general question from me:
My client is looking forward to get a webDAV-client from me. He wants it to be compatible with android, ios, winPhone, firefox-OS (and ubuntu-OS, when its done). I am used to code native apps and now i'm a bit confused how to solve this best.
Will this be possible using html-5 + jquery/JS ?? i got no expierience in this direction so far. Thanks for any advice :-)
Well you certainly can call some WebDAV methods with javascript. Wether or not everything is implementable highly depends on other the functionality your client expects.
I know, I know, HTML5 mobile browsers include this support now, so why would anyone want to include their own? As anyone reading this is aware, WebDB is deprecated and IndexedDB is next. I am simply trying to be able to have my applications that use WebDB (and therefore, essentially, SQLite) continue to work with a minimum amount of re-writing if/when the mobile browsers all adopt IndexedDB.
I have been reading as much as I can, but can't find the answer to whether or not this is possible with an HTML5 application using Javascript. It seems possible in a C environment, but that is not what I am looking for.
I have an idea of studying user behavior on the browser, for which I intend to make a Chrome/Firefox extension to study the behavior dynamically. I have some predefined libraries in Java and Python to analyze the results, which will be impossible to program in plain JavaScript.
Now for my question: is it possible to use third party libraries, especially those of Python or Java like plain function calls?
I have a vague idea about something like Java XPCOM or PyXPCOM for Firefox. However, for a beginner, it all looks so scary. I started making Add-On for Firefox, but got lost somewhere in the huge API.
I found Programming Chrome extensions easier than Firefox, but I couldn't come across something similar to XPCOM in Chrome.
How can I decide which one to go for?
Chrome - seems easy but I am not sure of its power.
Firefox - Seems powerful, but is it really possible to use any Java/Python Library?
Additionally, I came across this link that may be useful: How does someone use thirdparty libraries to be included in Firefox addons/extensions?
But seems like it mostly talks about C++ and XPCOM.
I have a vague idea about something like Java XPCOM or PyXPCOM for Firefox. But for a beginner, it all looks so scary.
I am not a beginner and JavaXPCOM/PyXPCOM are very scary (in addition to being barely maintained). As Firefox goes, it should be much easier to wrap your Java/Python library in an application and run it as an external process: https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIProcess. Note that you cannot get data back (other than an exit code) so the application should write it to a file that you can then read in your Firefox extension. Not very elegant but it has the advantage of being doable.
As to Chrome, its extensions run in a sandbox and using Java or Python isn't possible. Only option is adding an NPAPI plugin to your extension. It is binary code meaning that it could do anything.
When writing Chrome extensions, you're limited to JavaScript unless you choose to use an NPAPI plugin, which lets you do pretty much anything, but is not recommended.
The other approach you could take is to implement your Java or Python code on the server and make requests from the chrome extension's JavaScript.