这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@cloudwebrtc
Copy link
Contributor

@cloudwebrtc cloudwebrtc commented Mar 28, 2024

I cherry-picked some nice commits from #25 and merged them into this branch.

To keep the unity SDK as API consistent as possible with the python/rust SDKs, I have not changed the API hierarchy to implement this SDK with the least code

ashkan-saeedi-mazdeh and others added 16 commits March 28, 2024 10:11
* disconnect support

* Fix name

* To handle better connection and disconnection from room

* change to avoid using of Coroutines, using async methods instead

* async OnAudioRead

* Cleaning logs

* Cancel tokens

* Cancel token

* remove Task.Run, since usually SendRequest is called from other task

* getting rid of use YieldInstruction

* adding audio filter in main thread

* passing CancellationToken instead of CancellationTokenSource

* added check for cancellation at beginning

* Cleaning handles

* fix await

* remove cruft

* Cancellation token cleanup

* Factory async method

* basic handling of remaining events

* more async

* wip

* Compile pass

* formatting

* fix pending check

* revert async changes

* prep audio filter for threads

* loggin

* logs to debug publishing track

* minor cleanup

* added some methods to handle localtrack and SetSubscribed, Clenaing code

* Cleaning up

* fixes for yield instructions

* macro for verbose logs

* Audio data and pointer fix

Still says samplerate and num of channels are incorrect

* remove possibility of null

* todo ref buffering

* minor cleanup

* cruft

* todo object pooling

* remove redundant Task usages on separated threads

---------

Co-authored-by: cdga777 <cdga777@gmail.com>
Co-authored-by: nickkhalow <nickhalow@gmail.com>
* remove redundant Task usages on separated threads

* FfiRequestsPool

* IFFIClient interface

* disposable FFIClient

* FFIClient initialize simplify

* PoolableFFIClient

* NativeMethods pass pointer

* response pooling

* tests for reject manual creation of protocol objects

* FfiResponseWrap, remove manual new Request calls

* remove IPoolableFFIClient

* FFIBridge introduction, remove closures, RAII with FfiResponseWrap and FfiRequestWrap

* Clear -> generic ClearMessage
* fix clear message

* optimise FfiNewRequest - no FfiHandle

* LiveKitInitialize with IntPtr

* const format

* memory pool

* inner message pooling

* ArrayMemoryPool with thread safety

* remove obsolete

* thread safety
* ensure channels and rate match

* subscription change

* fixing early subscription

* track handle fix

temp logs to confirm

* track handle fix

* streaming fixes

* remix fix

* resample log check

* try off frame

* handler fix

* log cleanup

* saving track for local Participant

* remix potential fix

* cleanup checks

* testing without thread

* revert

* destroy cleanup and possible fix to ringbuffer

* log cleanup

* test

* revert

* disable thread for test

* test

* fix

* adding threading back in for writing

* video prep

* handle fix

* fix cast

* removing streams from video for now

* buffer fix

* hack to get it to send a web texture

* more consistent naming

* format fix

* bad merge fix

* first pass on screen share and memory fix

* debug and formatting

* remove logs

* updated protobuff and fixed compiler errors

* video working

* dynamic buffertype and stride

* split video source and partial wip on cameravideoSource

* camera support

* merge cont.

* wip merging

* adding back stomped change

* latest libs for mac

* Fixes for Audio/Video Streaming

* remove cruft

* fix when an AudioTrack is created

* mac fix

* null check which can occur if you are closing app

* format checks

* utils

* fix for metal

* Subscription management

* cleanup

* log cleanup

* cleanup

* log

---------

Co-authored-by: cdga777 <cdga777@gmail.com>
@cloudwebrtc cloudwebrtc marked this pull request as ready for review April 1, 2024 03:48
@cloudwebrtc cloudwebrtc merged commit b0f5508 into main Apr 8, 2024
@cloudwebrtc cloudwebrtc deleted the dev branch April 8, 2024 07:07
@davidzhao davidzhao changed the title Dev Updates from Decentraland's fork Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants