WebRTC control audio playback on android mobile device - chrome broswer - google-chrome

Android Chrome V(50.0.2661.89) has webRTC support. So i'm trying to set up Webrtc call between Mobile chrome browser and Desktop. All works good. But on Android mobile (Samsung S4, all event few more brands). audio output is coming on both Ear piece and External speaker. I could not control the output audio to playback only on Ear piece. Like normal mobile calls.
<audio> tag has ability to set playback device id by using this HTMLMediaElement.setSinkId(sinkId).then(function() { ... }) but in mobile chrome its not enabled.
If it try to get all media devices. it gives only 1 kind audio output as default. I know this possible in native android app, But did anyone succeed in getting this playback control on mobile browser? Please post your comments if you have any idea on this.
I've attached by mobile chrome console for reference.

Related

How to debug Webchat in iPhone Simulator

I was facing an issue on Audio not playing in voice bot in iPhone (Mic works) alone and was trying to debug the same in iPhone simulator in Mac (since I don't have access to a real device). However, in the simulator, the sample bot doesn't seem to be working. Here is the screengrab:
How am I supposed to debug this issue?
You'll need to test directly on an iPhone. Per the iPhone Simulator docs:
Hardware Differences
Though most of the functionality of devices can be simulated in Simulator, some hardware features must be tested directly on a device. The hardware features that are not simulated as of iOS 8.2 are:
Motion support (accelerometer and gyroscope) are unsupported.
Audio and video input (camera and microphone) are unsupported.

How is this Flash video playable on mobile devices [using JWPlayer]?

I'm trying to make my anime-streaming website FLV videos playable on mobile device, so I changed the technology I'm using from flash to HTML5 MP4, webM and OGG.
But while I'm surfing this site - which is using jwPlayer - from my Android device:
Here
I found that the video is working well although it is using FLV?
Can anyone explain how this could happen?
It is a feature of JWplayer. It will detect when Flash is not supported and switch to HTML5.
This is from their website:
JW Player is tested on the world’s most popular desktop browsers to
ensure the best playback experience for your viewers. From IE8 to the
latest version of Chrome, on Windows and OS X we ensure that any user
can watch your content. JW Player always selects the best playback
mode for your media behind the scenes.
http://www.jwplayer.com/products/jwplayer/html5-and-flash/
I found that the video is working well although it is using FLV ?!
Please, can anyone explain how could this happen ?
Are you saying FLV because it is Flash? Did you know Flash itself can play MP4 files anyway? Looking at the source code I see MP4 video files provided so I think they are just using Flash Player app to play MP4 files where plugin is available or else then using HTML5 for mobile etc.
Test by disabling Flash Plugin in mobile browser settings, you should now see an HTML5 player instead for handling exact same file that Flash app was playing.
So to answer : How is this Flash video playable on mobile devices [using JWPlayer]?
You have a mobile with Flash Plugin installed and you visited a page that had a video player app made with Flash to play some MP4 files. Your mobile is flash capable so it worked and you watched some MP4 file using a Flash decoder instead of an HTML5 decoder.

Does iOS safari support playing cross domain audio?

I am trying to play audio after a touch on my website using audio element but the audio file is on aws cloud front. The audio is audible on Desktop Chrome but I cannot hear it on iOS Safari .
Do they permit it , if yes then is there a config file that we need to create ?
To answer your titled question: yes mobile Safari does allow to play cross domain HTML5 audio (just tested it again on my iOS7 iPad). Though there has been report it is not working well with CORS attribute.
You could try to wildcard CORS on CloudFront. Maybe this can help you.
Are you able to plug your iOS device on a Mac to use Safari debug console for iOS? If so there could be error showing up in the logs.

HTML5 video doesn't Auto-play on Android 4.4 (Nexus 5) for PhoneGap Application

My app was working with previous Android versions.But now with Android 4.4 it's not.
Understand that Android 4.4 (Nexus 5) coming with built in Chrome. I know that; Chrome on Android disabled (not allowed) Auto-play HTML5 videos.
Is there any way to play HTML5 videos automatically in Phonegap Applications? Any plugins etc?
I need to play video if user don't touch screen some time.
You might need to set setMediaPlaybackRequiresUserGesture to false just like with native apps as described here.

Mobile Audio HTML5 limit resources

I am developing an HTML5 Audio Web & Mobile App.
I am preloading audio by starting the preload after clicking on a "start" button, in order to elude the autopreload block in mobile device.
But the preaload always stops at a certain point.
I wonder if there is a weight limit in HTML5 audio contents on Mobile Browsers.
I am Using Safari Mobile on Iphone and Ipad (also emulators on Mac have the same behaviour).
Debugging with Developer Tools, i don'r receive any alert / error.
When i try load a single mp3 file ointing the file url ( www.mysite.com/audio.mp3 ) i receive an alert on the browser console: Nework Error. Isn't this strange?