Facing audio issues in Safari and Iphone with Custom Bot - javascript

Sound is not playing in chat bot web application in iOS , chrome and Safari browser.
We are not using any browser specific code. We have added below listener and using audio.play() for sound notification.
Also in Mac Safari browser , we had the same issue with sound and we have enabled Auto play and it worked. According to the below reference , in iOS it is blocking the Auto play feature from version 11.0 Allowing Autoplay in Safari - Apple Community
Sound is working perfectly in Chrome browser for Android , Windows and Mac except iOS. Is it because of any security features which is blocking the audio ? Can you please help me to figure out the reason for this behavior?

Related

RTCPeerConnection IOS 12.2 to Android 7.X

Im building a RTCPeerConnection communication and I found one issue, calling from iOS 12.2 (Tested with Ipad only) to Android (Tested with 7.11 only) the streams will not exchange.
Other peers is OK, like iOS to Chrome(desktop), iOS to iOS, iOS to Chrome Desktop, Android to iOS is also OK.
Using constraints Audio only works fine with all peers, but the problem occurs when adding Video and the connection goes from iOS 12.2 => Android. (iOS makes an offer)
It may be a codec problem, but Android to iOS establishing a video connection without problem so i'm not sure.
Im using Tracks, not Streams.
Anyone else experience trouble with this and has a hint?
Are you building an iOS app and using the Google SDK? If so, then my guess would be mis-matched profile-level-id in the negotiation of H264. If you can, use VP8 and see if you have the same problems.

Sound recording from website using Chrome for IOS

So I have a site where I can record the users audio. This works on the following:
Safari
Safari IOS
Chrome Desktop
MS edge Desktop
Safari Desktop
Etc...
More or less every device however when using the chrome browser on an iPhone I am unable to get access to the microphone.
Does anyone know why? Is there a limitation on this specific app on iOS?
You can use your microphone for features in Chrome, like Voice Search.
On your iPhone or iPad, open the Chrome app.
Go to a site that wants to use your microphone.
When prompted, tap Allow or Block.
If you’ve turned off microphone or camera access, you can turn on your
mic or camera permissions in your device settings.
From official chrome help center.

How to record HTML5 video in Safari?

I have to develop video recording in Safari 11. I have used getUserMedia() to play video in Safari and It is working but It is not recording the video.
I have developed video recording in Chrome and Mozilla using Media Recorder.
Media Recorder is not supporting in Safari 11 for recording video.How will i record the video in Safari 11?
MediaRecorder API is not supported on Safari 11. They enabled MediaRecorder API on version 12.2, but it is experimental and you should enable it manually.
Here is good article describing supported properties and methods.
https://blog.addpipe.com/safari-technology-preview-73-adds-limited-mediastream-recorder-api-support/
I am developing same type of app and solved recording problem, however there is other problems too. For example playback recorded video before uploading to the server. You can't do that too, because of known bug
Safari: unable to dynamically load video from blob url
Let's hope webkit team will fix in the near future.
Both recording and playback of video seem to work fine in latest Safari after enabling MediaRecorder from Develop menu.
Try with this Cam Recorder HTML5 demo.

How to connect to iPhone's webkit debugger?

new iOS 6 feature is, that you can debug html and javascript running on device or simulator in desktop safari. I suppose, that this feature is based on Webkit Remote Debugging Protocol.
How can I connect to webkit running on iPhone without desktop Safari?
I can do this for mobile Chrome running on Android using websockets, but how can I do that for iOS devices?
The ios-webkit-debug-proxy project (from Google!) does this.
You want to look at this code https://github.com/leftlogic/remote-debug/tree/master/safari - although it fails when it actually comes to RPC calls that use __rpc_forwardSocketData.
If you've got any ideas why several of us are interested!
You need to open up the iPhone Simulator and browse to a website.
Then open Safari and choose "Develop" from the menubar. There is a the option called "iPhone Simulator".
If you hover over this you can see all of the open websites of the simulator.
This gives you the same inspector Safari uses. You can even see hovered elements in the iPhone Simulator.

Can JavaScript in Chrome for iOS play sounds?

Apple have long blocked mobile Safari from playing sounds – the usual JavaScript commands to play sounds just don't work on it. Does the Chrime browser for iOS, released today, allow sounds to be played?
Ps. Sounds induced by the user can be played on both – my question referred to sounds kicked off by JavaScript only.
Chrome for iOS is just a skin over the built in Safari browser. That is, it is not the Chrome version of WebKit. It should behave identically to Safari itself. If Safari is blocked from playing sounds, so will the Chrome browser.

Categories