Html5 Websockets for Android - html

i want to build a html5 multiplayer casino game, but it seems Android not supporting Web sockets, please guys suggest me any alternatives.. Thanks in advance

You can get an overview on what devices support Web Sockets on caniuse.com. This states you're right: no websockets support on android so far. The alternative is using ajax to fetch a small JSON repetitively. Ways to do this include jQuery.getJSON(), jQuery.ajax() and the jsonp plugin for jQuery.

Related

How to include HTML5 based games in tvOS custom apps?

We have implemented a tvOS app, its in App Store. Now we would like to introduce some HTML5 games in our app as a feature. We already have HTML5 games so we don't have to implement newly.
So how to include these games in my app. We got to know that we can't use WebKit in tvOS.
Is it possible to use HTML5 based code in our tvOS apps ?
If not possible is there any alternative way like 3rd parties or any tools which will convert HTML5 so that we can use ?
Is there any better way that we can implement HTML5 kind of games ?
Unfortunately there is no way to use html in this manner on tvOS, and there is no tool to just transfer html to swift since they are fundamentally different.
You can use some wrapper like Cordova https://cordova.apache.org/ to deploy your html projects as native. It could be deployed on iOS or Android.

Possible ways to implement voice recording functionality without flash

I know it would be hard to implement a web-based voice recorder without using flash, but is there any existing API that could help make this possible to achieve? Is HTML5 media feature matured enough for this space?
Thanks guys :)
Web Audio API is quite mature, and supported by many browsers (even on mobile).
You can implement your audio recorder starting from
this example
this plugin

Capture video/image using user's webcam using GWT

I am developing project using GWT2.5 and I need to use the User’s webcam to capture
images/video.
How it is possible in GWT?
GWT 2.5 comes with a new library called Elemental, it is thought as a wrapper of the browser API. It just works with chrome, but in a future it could support more browsers.
If you are confortable supporting in your app chrome for this feature, you can take a look to this example. The source code of the demo is in googlecode.
If you wanted to support other browsers, you could take the elemental classes as base and modify them to match other browsers.
Here is a video introducing elemental during the google I/O 2012
A GWT based API to capture webcam snapshots from the browser. This API is a GWT wrapper for the jpegcam JavaScript library.
Samples and Source code.
Hope that helps.

Mobile application using html5 tutorial

I am new in this field and want to learn mobile app development using html5.. can anyone help me with some useful tutorial or link to learn this.
I must recommend the phonegap solution, it will help you to build cross device HTML5 apps allowing you to utilize lots of the phones features:
phonegap api
and
phonegap getting started guides

Pure HTML5 videoconference

I want to make a single web application avoiding any flash code. This application must contain videoconference, and I want to implement it in pure HTML5. It is possible? I know about websockets, but don't know really if videoconference can be implemented through them with a relative performance (at least, 24fps + sound at a right resolution, minimum 640x480), and both endpoints being web apps (both endpoints should use browser).
Thanks in advance
Anyone following up this question - on Feb 4th, 2013 they produced the solution with WEBRTC in Chrome and Firefox. For examples see https://hacks.mozilla.org/2013/02/hello-chrome-its-firefox-calling/ or http://www.html5rocks.com/en/tutorials/webrtc/basics/ or https://code.google.com/p/sipservlets/wiki/HTML5WebRTCVideoApplication
You can't really use HTML5 video for live streaming at the moment, and it doesn't have support for web cams yet.
Ericsson has modyfied a WebKit browser and is showing how this can be done with hopfully upcoming HTML5 Stream API. See Beyond HTML5 - Implementing and stream management in WebKit
It is impossible to capture web-cam images/microphone feed just through JavaScript (although there are plug-ins which let you handle output through flash), so it would be necessary for you to have some kind of application/plug-in installed.
The speed part is just for the client to worry. I mean, web sockets will be as fast as the connection permits.
You should do some research about web workers, since they would be very useful for speeding up your application (you could have microphone interface, web-cam interface and UI all with their particular worker, thus never blocking the application or rendering it unresponsive).
EDIT: the aforementioned jQuery plug-in works through the use of <canvas>.
As Jonas said, according to the situations now, we can't build video conference with HTML5. There are many limitations with browsers also. As there is no common video codec supported by all browsers. And live-streaming is also properly supported by safari only(using HTML5 video tag). As per my experience we can't build live-streaming on windows with any browser properly.
But if you wanna get some information about live streaming see https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html
you can use this source to test your live-streaming examples
"http://xfunoonx.api.channel.livestream.com/3.0/playlist.m3u8"
This content will work only with safari on Mac.