Giter Site home page Giter Site logo

agora-unity-quickstart's People

Contributors

hugochaan avatar icywind avatar maxxfrazer avatar plutoless avatar xiayangqun avatar yiqingjackiehuang avatar zhangtao1104 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

agora-unity-quickstart's Issues

Agora on laptop in advanced demo uses webcam with no option to turn off or not use webcam

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.

image

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.

Sdk hard to learn.

Unity sdk模板学习比较困难,
建议考虑用户习惯,弄一些通用行的,
别人项目拉进去可以用。
我是改了老一阵子才用上。
你写成一些简单通用的模块(类似photon的),
别人搞得项目就会快很多。

Error 110 - attempting to use BasicVideoCallScene

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)

Share Screen on M1

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)

initialize engine fail

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????

Windows Crash when Share Screen

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

Unity Cloud Build Failure because of Linked Frameworks

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?

How to resolve the error : - [d3d11] attempting to ReadPixels outside of RenderTexture bounds! Reading (0, 0, 215, 383) from (215, 382) ?

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.

error

and on the Browser side if i see by clicking on AgoraWebDemos, is this screen which is coming as total white.

window

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 : -

https://github.com/AgoraIO/Agora-Unity-Quickstart/blob/master/API-Example-Unity/Assets/API-Example/examples/advanced/ScreenShareOnMobile/AgoraScreenShare.cs

Any Help will be appreciated.

SDK iOS build script

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 :)

Challenges with Code Signing on Mac Following Agora Integration

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

How to change the definition of remote video

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

Sometime can't speak on Quest V17.

有时候打开别的程序没退出再进入sdk时候能听到别人声音,但是自己说不出声音,
怀疑初始化时候音频设备被占用或者相关问题,
平台是oculus quest v17版本
unity 2018.4LTS

Unity Android and iOS (possible) phone overheat

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

Sometimes OnUserJoin dose not trigger for newly joined users

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!

How to share screen from Unity (Android/iOS) to Web

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?

Are Android and IOS screenshare support?

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

Release 4.0 in this repo
image
image

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.

Token is Invalid

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".

App Screen Sharing has cropped width

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

Screen shot from docs:
image

This affects:

  1. Advanced Demos App Screen Sharing Sample: https://github.com/AgoraIO/Agora-Unity-Quickstart/tree/master/Advanced-Demos
  2. Screen Sharing Sample: https://github.com/AgoraIO/Agora-Unity-Quickstart/tree/master/API-Example-Unity/Assets/API-Example/screenshare-sample

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:

  1. Use the screen sharing example or the advanced demos App screen share example
  2. Build from Unity to an ipad or phone
  3. Share app screen between the editor and the phone to see the shared screen from the phone is cropped in width

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."

Desktop ScreenRect crash error

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.

permissions not granted for Mac screenshare

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 !

Can't sign APP with signcode.sh

I'm folowing this instruction to sign my Unity project.
Screenshot 2021-07-28 at 14 00 50
But after last step I have many errors that files not fount
Screenshot 2021-07-28 at 14 02 03
If i try to sign manualy, i have an error: AgoraRtcKit.framework: code object is not signed at all
Can't find how to fix this. Plz help

Create engine failed, error code: -7 , with Fetching the Token scene

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)

Video feed rotated 180°

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?

Screen Share

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.