agoraio-extensions / agora-unity-quickstart Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I recently updated to version 4.0.0 of Video SDK, and version 1.0.5 of ChatSDK for our Unity app. I'm using Unity Cloud Build for both iOS and Android, and my iOS builds are failing with the following errors:
Building for iOS, but the embedded framework 'HyphenateChat.framework' was built for iOS + iOS Simulator.
Building for iOS, but the embedded framework 'AgoraRtcWrapper.framework' was built for iOS + iOS Simulator.
My Unity version: 2021.3.5f1
Can someone please help solve this?
Hello, thanks for this Demo it got me up and running, the only thing i couldn't get to work is screensharing on Mac OS.
it only show the game view, i need to requests permissions for screen recording,
but i couldn't find the command to do it . can you help me please ?
thanks !
App screen sharing is cropped on the width, it seems some aspect ratios are not supported
This cropping is visible clearly in the documentation even in the example screenshots, so if it is expected behaviour, it means that some areas of the screen are cropped which is inadequate for our use cases which require a proper full-screen view.
https://docs.agora.io/en/Video/screensharing_unity?platform=Unity
This affects:
Using:
-Agora SDK Asset Store Version 3.2.1.72 - February 01, 2021
-Unity 2020.2.4f1
-Windows 10/Mac Big Su
-IOS 14/Android 10
Very simple to replicate:
We have been unable to find a fix and the cropping doesn't seem to happen when sharing between Unity Editors, however there is a hint below from another user on the Agora Slack channel that may help:
From Stamblew on Agora Slack:
"the problem was the video dimensions set at the VideoEncoderConfiguration instance. Some dimensions are not accepted by Agora, so it falls back to a default one, I guess, which crops the video frame."
I am using Unity 2020.3.30f1 version. I installed Agora SDK and started screen sharing. I used the StartScreenCaptureByScreenRect function to share the monitor area and Unity crashes.
What's the problem?
I have 2 monitors and each has a different resolution.
有时候打开别的程序没退出再进入sdk时候能听到别人声音,但是自己说不出声音,
怀疑初始化时候音频设备被占用或者相关问题,
平台是oculus quest v17版本
unity 2018.4LTS
I'm using Agora SDK (together with MediaPipe Unity Plugin), everything works fine. Unfortunately, our client believes that the application overheats the phone (Android and iOS) too quickly (does not provide data) and users therefore resign from using it.
Is there anything that can be done to make the phones less hot and drain less battery?
Thanks in advance
I can't find a way to capture system audio to share while screen sharing. Is it possible on windows/mac using agora unity SDK? I've tried setting ChannelMediaOptions publishScreenCaptureAudio.SetValue(true) but it seems to work only for android/ios.
I've tried to implement rtc.PushVideoFrame alternatives(StartScreenCaptureByScreenRect, StartScreenCaptureByWindowId) but couldn't manage to share screen. I am only getting an white box. Do you have an example for full screen sharing?
It's more of an SDK feature request, but I didn't find a better place to post it. Hopefully, it's ok.
In the BL_BuildPostProcess
there is a line with an assumed base path:
const string defaultLocationInProj = "AgoraEngine/Plugins/iOS";
I think, the assumption here is that AgoraEngine
is placed directly in the Assets
folder, which is not always the case, at least for the commercial projects, that I've worked on.
Usually, any dependencies are stored in a subfolder like Assets/3rdParty/
or Assets/ThirdParty/
.
It would be nice if the script would actually read the base path allowing more flexibility (if possible, I don't have much experience with writing editor scripts).
It's definitely not critical, but I'm sure it would save at least a few people from debugging their iOS build errors, so it might be worth considering :)
The link on the Quickstart-VideoChat page under "Integration and run" is broken.
Results in a 502 Bad Gateway
The video feed received from the SDK (android and Windows PC) is always rotated 180 degrees. The example project "fixes" this by rotating the plane on which the feed is projected.
I suppose this is just a hack, is there a proper way to receive not rotated feed?
请问支持HoloLens 2平台吗?
Hi!
I found that the source code from this GitHub and the official website of unity SDK 4.0 is not the same in Screenshare. cs for example in the official SDK it says not support in the start
Official UNITY SDK 4.0 beta
private void Start()
{
#if UNITY_IPHONE || UNITY_ANDROID
this.LogText.text = "ios or Android is not supported, but you could see how it works on the Editor for Windows/macOS";
#else
LoadAssetData();
if (CheckAppId())
{
InitEngine();
PrepareScreenCapture();
}
//#endif
}
so I try the source code from this GitHub and there's an error like this
Are the mobile and ios screen sharing currently supported officially? or is it still in development and cannot use yet? If I did something wrong please guide me. Thanks.
Unity Version: 2021.3.13f1
Agora Video SDK for Unity Version: 4.0.0.5
Hello - I'm simply attempting to run the BasicVideoCallScene but am getting this error.
OnError err: 110, msg:
UnityEngine.Debug:Log (object)
Agora.Util.Logger:UpdateLog (string) (at Assets/API-Example-Unity/Assets/API-Example/Tools/Logger.cs:17)
Agora_RTC_Plugin.API_Example.Examples.Basic.JoinChannelVideo.UserEventHandler:OnError (int,string) (at Assets/API-Example-Unity/Assets/API-Example/Examples/Basic/JoinChannelVideo/JoinChannelVideo.cs:227)
Agora.Rtc.RtcEngineEventHandlerNative/<>c__DisplayClass2_0:<OnEvent>b__0 () (at Assets/Agora-RTC-Plugin/Agora-Unity-RTC-SDK/Code/Impl/Private/Observer/RtcEngineEventHandlerNative.cs:37)
Agora.Rtc.AgoraCallbackQueue:Update () (at Assets/Agora-RTC-Plugin/Agora-Unity-RTC-SDK/Code/Tools/AgoraCallbackQueue.cs:53)
音频在ipad pro上会导致声音变成听筒模式
I want to playing demo but a lot of not found error is glad to me.
how can I solve it?
User Joined event not triggering most of the time, because of the screen share window not showing
On Mac's with M1 Share Screen show's this error:
DllNotFoundException: ShareScreenLib assembly:<unknown assembly> type:<unknown type> member:(null) AgoraNativeBridge.GetMacDisplayIds () (at <3762ab1ebfe84eabbefe6a203560b1d8>:0) DesktopScreenShare.ShareDisplayScreen () (at <3762ab1ebfe84eabbefe6a203560b1d8>:0) ShareScreenController.Share () (at <3762ab1ebfe84eabbefe6a203560b1d8>:0) ShareScreenController.Update () (at <3762ab1ebfe84eabbefe6a203560b1d8>:0)
init failed when call IRtcEngine.GetEngine(appId);
Create engine failed, error code: -7
UnityEngine.Debug:LogError (object)
agora_gaming_rtc.IRtcEngine:.ctor (string) (at Assets/AgoraSDK/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:240)
agora_gaming_rtc.IRtcEngine:GetEngine (string) (at Assets/AgoraSDK/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:4985)
AgoraVideoChatController:b__5_0 () (at Assets/Scripts/AgoraVideoChatController.cs:29)
why error code is -7????
Im successfully implement ShareScreen for MacOS and Windows, but when I try to run ShareScreen on Windows 10 Home Edition I have a crash... There is only feedback from user, don't have all information yet
Hi,
I am trying to broadcast my video through UnityRuntime on a particular App Id and Token and Channel which i have temporary created from Agora.Io.
Issue, which i am facing is the error D3D11.i have also shared the screenshot for that.
and on the Browser side if i see by clicking on AgoraWebDemos, is this screen which is coming as total white.
I am new to Agora, so please help me to get this error resolved.
I have also made my script which is similar as the script which you posted it to Agora Github which is : -
Any Help will be appreciated.
I am using the video-sample demo of the api-example-unity-agorachat project,The video call between the two parties can be realized, but I find the image quality of the remote video is very poor, how to modify it
HelloAgoraVoice.cs里的joinchannel还是joinroom外部脚本调用会报错?
Well, as the title says, I followed the instructions of advance demo and I get: RTC Error:110, msg: The Token is invalid
I have created two apps, one with and one without certificate enabled and nothing changes.
In the demo MainScene, the gamecontroller, there is no place to add the "token".
We just integrated Agora into our project, and it's working fine on Android, iOS, and Windows, but we are encountering problems during the code signing process for the Mac version.
Here are the errors:
MYUNITY.app: bundle format is ambiguous (could be app or framework)
In subcomponent: /Users/WorkingDesk/Git/myunity-build/MYUNITY.app/Contents/PlugIns/AgoraRtcWrapperUnity.bundle
Unity version 2021.3.27f
Aroga version 4.2.2
I couldn't see any documentation reference for using the signaling API in the Unity SDK here https://docs.agora.io/en/Voice/API%20Reference/unity/index.html
It would be very useful to have a simple example of the signaling API in the quickstart examples - for example sending a message or transmitting the transform.position of an object as a Vector3 over the signal
hi, i am trying to use the dynamic fetch token from the server feature in the scene from joinChannelVideoToken file,
following website: https://www.agora.io/en/blog/connecting-to-agora-with-tokens-using-unity/
I set up the token server in Heroku (following : https://github.com/AgoraIO-Community/agora-token-service)
then i replace the token base with the updated server url. and set up app id.
then when i run the scene in the unity editor, the error is shown below. anyone can help me with this
Create engine failed, error code: -7
UnityEngine.Debug:LogError (object)
agora_gaming_rtc.IRtcEngine:.ctor (string) (at Assets/AgoraEngine/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:241)
agora_gaming_rtc.IRtcEngine:GetEngine (string) (at Assets/AgoraEngine/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:5021)
HelloVideoTokenAgora:InitEngine () (at Assets/API-Example/examples/advanced/JoinChannelVideoToken/HelloVideoTokenAgora.cs:77)
HelloVideoTokenAgora:Start () (at Assets/API-Example/examples/advanced/JoinChannelVideoToken/HelloVideoTokenAgora.cs:34)
Can I use this SDK to encode the Unity camera video to rtmp stream end send it to a server?
Hi Agora,
I've a working unity app with web client ready.
However when I try to share screen from Unity, the video bytes that send to Agora is not looking good at web client.
This is due to ReadPixels in Unity can only be done with Texture in RGB / RGBA format.
Agora external video pixel format only support BGRA.
What's the workaround for this issue?
such as hololens2 in arm64
Unity sdk模板学习比较困难,
建议考虑用户习惯,弄一些通用行的,
别人项目拉进去可以用。
我是改了老一阵子才用上。
你写成一些简单通用的模块(类似photon的),
别人搞得项目就会快很多。
I start the project in Unity 2019.4.0f1. I press "Desktop Screen Share" after putting in an agora stream channel.
I am greeted with my webcam turned on. I click "Share display" once and it will switch to the desktop screen.
There is no way to prevent webcam turning on, or an option to ignore it. I've attempted to debug the code for AgoraNativeBridge.MONITORINFO but these return either 40 or single digit values in Unity so I can't exactly tell what is monitor and what is a webcam.
Hi,
This is video show the problem
Also for your information, I tried it on an iPhone and screen sharing did not work either
https://drive.google.com/file/d/1hhaRseT8Nh9xOa7ObrnXZbSpDL3Hx5u4/view
Thanks
Testing on Microsoft Edge, added comments when new user joins.
Tab1: Creates Channel
Tab2: Joins the same channel, and OnUserJoin is not called for him
Tab3: Join the same channel, and OnUserjoin is called for user from Tab1 and Tab2
Strange behavior!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.