HTML5 audio recording not woorking in Google Nexus - android

I want to use HTML5 getusermedia to record audio, play back and save to server. I am trying with Google Nexus (Android 4+) and Google Chrome 29. Is it possible? When I try the codes I got from net, it asks permission to record using microphone and using the phone, I save a wav file. But no sound on playing this. The same site works from chromium browser in my PC. Am I doing anything wrong? or is it that audio recording is not actually working as it claims?
Thanks

We now have Web Audio input working in Chrome for Android Beta (31.0.1650.11).

Related

Audiotoggle cordova plugin not working in android 9

I have Cordova app and I have android platform 8. App uses JQuery Verto library for getting remote audio stream and play it in audio html element.
By default Verto find one speaker device with id = 'default'. Next after playing audio I need use EARPIECE device.
In android 8 I use audiotoggle-plugin for it(use AudioToggle.setAudioMode(AudioToggle.EARPIECE) method) and it worked normal. But on Android 9, it doesn't work.
However, When remote stream is playing through the default speaker, if I start another app (example YouTube and play video) and then stop it and get back to my app, audiotoggle-plugin work normal.
Any ideas?
Here is the plugin's link: https://www.npmjs.com/package/cordova-plugin-audiotoggle

MP4 Video Not Playing in Chrome 56 or 57 on Android

I have a web application which plays an mp4 video at the beginning. This video is not playing in the latest version (v57) as well as in the previous version (v56) of Chrome in Android devices. The video was playing fine until Chrome v54.
It's an mp4 file. Has Google brought in any restrictions on the mp4 video files? The video plays fine in PC or Mac. The issue is only with Android devices.
Can someone throw some light?
Thanks.
I found if the Chrome Data Saver feature is turned on, videos would not appear or play.

Multiple HTML5 videos on TV kiosk

I am building an application using electron.js that runs a socket server on a local network.
The idea is that the socket server sends messages to connected clients to dynamically load multiple html5 videos in a browser on a smart TV.
The videos are small demonstration videos and need to autoplay and loop.
There can be up to 12 videos playing at once on one device.
The problem that I am experiencing is that I cannot get smooth playback of the videos or not all videos will play.
I have tried the following with 12 videos:
Native Smart TV browser. Result: Only plays 3 videos and playback is ok
Chormium Browser on Raspberry Pi 3. Result: Can play all 12 videos but playback is choppy. Forcing hardware acceleration crashes the browser
Chrome Browser on Quad core Android box. Result: Can only play 6 videos and playback is good
ionic cordova app on Android Box. Result: Can only play 6 videos and playback is good
react-native app on Android Box. Result: Can only play 6 videos and playback is good
My question is, what are my limitations or possible solutions?
Am I limited by hardware or is there something I can do in my application builds that may resolve the issue?
It is worth pointing out that on my desktop chrome browser, all 12 videos play without any problem but this is not an option for me because they need to run on the TV.
Edit: It is worth mentioning I am using mp4 video
I am going to answer this myself to help others if they come across the same issue.
I ended up installing ffmpeg and encoded webm video instead of mp4 and could get all 12 videos playing.
Then by reducing the bitrate, I was able to get all 12 videos playing at the same time on the mini PCs at an acceptable quality.

mp4 video does not play in android if hosted on my server

I'm facing a strange problem. I tried to play a mp4 video on android devices and it fails to play when video is hosted on my server but same video file plays in same android devices if hosted on other server. I'm facing this problem only in android devices I can play video on my desktop no matter wherever it is hosted. Has anyone else ever faced such problem ?
Obviously its a server problem. But I Cant figure out how to change the settings that enable mp4 to play in android devices!
Server : apache2.2.3
Thanks.
Update your httpd.conf to add the MIME type for mp4
AddType video/mp4 .mp4
If you have a password restriction (like .htaccess), try and remove it and test again. Even if Chrome knows your password, the video player may not, and it doesnt prompt you for it. When played full screen, the player just says 'sorry, this video can not be played'.

Streaming Video From Vimeo to Android

I am looking for a way to stream my videos from vimeo.com to android phone, their API is only available for Web, I have also tried to embed their player in WebView but that way I can see the thumbnail but video won't play, I am using Android 2.2 and Have Flash Player installed.
Is there way to make embedded players work on android or any other better way to do it?
You don't have to use the adv api to play vimeo videos. This is the video url the oembed api uses. I managed to get this rendering and playing in webview.
http://player.vimeo.com/video/<VIDEO_ID_GOES_HERE>?player_id=player&title=0&byline=0&portrait=0&autoplay=1&api=1
Also worth checking flash player is enabled and installed
No you have to use the advanced api and have the user get authorized ive have been trying to find a way around this but have not
the real url would be something like this
http://player.vimeo.com/play_redirect?quality=mobile&clip_id=s00000000&time=1318531921&sig=4c8a2fcb3303c5b76112046e84f516f8&type=mobile_site
not
player.vimeo.com/video/0000000
which the sig is passed after your set up the oauth with the advanced api which is your key and secret after authorization

Categories

Resources