frostweep / PUN2VoiceWebGLUnity

This is a Github page of WebGL implementation of voice chat by using PUN 2 server solution.
https://store.frostweepgames.com
MIT License
56 stars 17 forks source link

PUN2VoiceWebGLUnity and Voice Pro cannot work on iOS safari #7

Closed guoguoguilai closed 3 years ago

guoguoguilai commented 3 years ago

The PUN2VoiceWebGLUnity and Voice Pro work great on PC and Android. But when I try them on iOS Safari or Chrome, they are not working.

PUN2VoiceWebGLUnity on MacOS Safari works well. But on iOS Safari or Chrome, it throws:


ReferenceError: Can't find variable: OfflineAudioContext
Resample@blob:https://somewebsite.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:324006
MicrophoneProcess@blob:https://somewebsite.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858```

For Voice Pro on both  iOS Safari, iOS Chrome and MacOS Safari, it throws:
```An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
TypeError: buffer.copyToChannel is not a function. (In 'buffer.copyToChannel(sourceAudioBuffer.getChannelData(channel),channel)', 'buffer.copyToChannel' is undefined)```

How to solve this problem?
frostweep commented 3 years ago

Hello,

which version of microphone library you use? do you use latest one?

which iOS version you use?

Best Regards

On Fri, Aug 6, 2021 at 8:03 PM PageGuo @.***> wrote:

The PUN2VoiceWebGLUnity and Voice Pro work great on PC and Android. But when I try them on ios, they are not working.

PUN2VoiceWebGLUnity on MacOS Safari works well. But on iOS Safari, it throws:

ReferenceError: Can't find variable: OfflineAudioContext @.:https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:324006 @.:https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858``` https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858

For Voice Pro on both iOS Safari and MacOS Safari, it throws:


TypeError: buffer.copyToChannel is not a function. (In 'buffer.copyToChannel(sourceAudioBuffer.getChannelData(channel),channel)', 'buffer.copyToChannel' is undefined)```

How to solve this problem?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/frostweep/PUN2VoiceWebGLUnity/issues/7>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACR76KG7KE4ZTUW43UZZWNDT3QIW7ANCNFSM5BWIU3XQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
guoguoguilai commented 3 years ago

Hello, which version of microphone library you use? do you use latest one? which iOS version you use? Best Regards On Fri, Aug 6, 2021 at 8:03 PM PageGuo @.> wrote: The PUN2VoiceWebGLUnity and Voice Pro work great on PC and Android. But when I try them on ios, they are not working. PUN2VoiceWebGLUnity on MacOS Safari works well. But on iOS Safari, it throws: ReferenceError: Can't find variable: OfflineAudioContext @.:https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:324006 @.***:https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858``` https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858 For Voice Pro on both iOS Safari and MacOS Safari, it throws: An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was: TypeError: buffer.copyToChannel is not a function. (In 'buffer.copyToChannel(sourceAudioBuffer.getChannelData(channel),channel)', 'buffer.copyToChannel' is undefined) How to solve this problem? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#7>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR76KG7KE4ZTUW43UZZWNDT3QIW7ANCNFSM5BWIU3XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

The microphone library I am using is 2.2.6. I have trid several iOS version like 14.3&14.7.1. Notice that the demo webgl in https://unitydemos.frostweepgames.com/assetstore/microphone-webgl/ and https://unitydemos.frostweepgames.com/assetstore/voiceprodemo/ also do not working. And even on MacOS Safari the voice pro failed too.

frostweep commented 3 years ago

Hello,

I just checked on my Mac 11.4 (Big Sur) and both links works fine. also I've checked on iPhone 11 Pro 14.6, 14.7.1 and it works even better than on Mac.

For iOS we recommend to upgrade to the latest version of Microphone Library (or Voice Pro if you use it), there was an update for Safari resampling feature.

Best Regards

On Mon, Aug 9, 2021 at 12:24 PM PageGuo @.***> wrote:

Hello, which version of microphone library you use? do you use latest one? which iOS version you use? Best Regards … <#m_-5804416999784163812m-6264748413460236410_> On Fri, Aug 6, 2021 at 8:03 PM PageGuo @.> wrote: The PUN2VoiceWebGLUnity and Voice Pro work great on PC and Android. But when I try them on ios, they are not working. PUN2VoiceWebGLUnity on MacOS Safari works well. But on iOS Safari, it throws: ReferenceError: Can't find variable: OfflineAudioContext @.: https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:324006 @.***: https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858 https://share.mindcoord.com/985c6754-1b2e-4b5b-8ebd-2ac462e3d0ee:2:323858 For Voice Pro on both iOS Safari and MacOS Safari, it throws: An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was: TypeError: buffer.copyToChannel is not a function. (In 'buffer.copyToChannel(sourceAudioBuffer.getChannelData(channel),channel)', 'buffer.copyToChannel' is undefined)``` How to solve this problem? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#7 https://github.com/frostweep/PUN2VoiceWebGLUnity/issues/7>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR76KG7KE4ZTUW43UZZWNDT3QIW7ANCNFSM5BWIU3XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

The microphone library I am using is 2.2.6. I have trid several iOS version like 14.3&14.7.1. Notice that the demo webgl in https://unitydemos.frostweepgames.com/assetstore/microphone-webgl/ and https://unitydemos.frostweepgames.com/assetstore/voiceprodemo/ also do not working. And even on MacOS Safari the voice pro failed too.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/frostweep/PUN2VoiceWebGLUnity/issues/7#issuecomment-895074356, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR76KHNKMBPQO6DZIQ22X3T36NFNANCNFSM5BWIU3XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .