{"id":18821318,"url":"https://github.com/sariskaio/sariska-media-unity-package","last_synced_at":"2026-01-18T06:30:17.318Z","repository":{"id":119455599,"uuid":"530183852","full_name":"SariskaIO/Sariska-Media-Unity-Package","owner":"SariskaIO","description":"Sariska Media Package for Unity (Android and iOS)","archived":false,"fork":false,"pushed_at":"2023-05-29T16:02:13.000Z","size":5380,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-30T03:41:54.931Z","etag":null,"topics":["ios","jitsi","sdk","unity","unity3d","unity3d-plugin","video","video-calling"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SariskaIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-29T11:12:41.000Z","updated_at":"2022-09-01T09:45:20.000Z","dependencies_parsed_at":"2024-07-22T22:18:03.922Z","dependency_job_id":null,"html_url":"https://github.com/SariskaIO/Sariska-Media-Unity-Package","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SariskaIO%2FSariska-Media-Unity-Package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SariskaIO%2FSariska-Media-Unity-Package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SariskaIO%2FSariska-Media-Unity-Package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SariskaIO%2FSariska-Media-Unity-Package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SariskaIO","download_url":"https://codeload.github.com/SariskaIO/Sariska-Media-Unity-Package/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","jitsi","sdk","unity","unity3d","unity3d-plugin","video","video-calling"],"created_at":"2024-11-08T00:38:38.814Z","updated_at":"2026-01-18T06:30:17.243Z","avatar_url":"https://github.com/SariskaIO.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sariska-Media-Unity-Package\nSariska Media Package for Unity (Android and iOS)\n\nThe repo contains the unity package which can be downloaded and added to you unity project to get started.\n\n# About Sariska Media Unity SDK\n\nThe Sariska Video SDK for Unity lets you quickly add real-time communication to your Unity script. The SDK includes the following features to create seamless unity applications for Android and iOS.\n\n**Platforms**: Android and iOS\n\n**Real-time communication**: Bring audio and video communication to your users at ultra-low latency.\n\n**Open Source**: Based on the extremely popular Jitsi Architecture, bring the power and constant innovation of open source into your project.\n\nThe SDK is written in the Adapter pattern, which makes it extremely lightweight, with reusable code written in languages native to the platform, it lets developers have enormous flexibility on what features to cherry-pick.\n\nFor documentation, read through the link at: https://docs.sariska.io/media/development/c-unity-engine\n\n# Get Started:\n\nTo import this package in your unity package.\n\n1. Clone the repo to your local system.\n2. Open the project in the Editor where you want to import the asset package.\n3. Choose Assets \u003e Import Package \u003e Custom Package. A file browser appears, prompting you to locate the Sariska-Media-Unity-SDK.unitypackage file.\n4. In the file browser, select the file you want to import and click Open. The Import Unity Package window displays all the items in the package already selected, ready to install.\n5. Deselect any items you don’t want to import and click Import. Unity puts the contents of the imported asset package into the Assets folder, so that you can access them from your Project window.\n\n\n# Implementation for Android and iOS\n\n## Importing SariskaMediaUnitySdk\n\n``` C#\nusing Plugins.SariskaMediaUnitySdk;\n```\n\n## Initialize SDK\n\nAfter the SDK is added to your project, first initialize the SDK before proceeding with the setting up for the video call.\n``` C#\nSariskaMediaUnitySdk.InitSariskaMediaTransport();\n```\n\n## Setup Local Stream\n\nThe SetupLocalStream method in SariskaMediaUnitySdk gives you the option to set up a stream with a set of parameters, which lets you choose between an audio or a video call, and the resolution of the video in case of a video call. Additionally, the method requires the user to send texture pointers for both textures defined by the user.\n``` C#\n\n// void SetupLocalStream(audio, video, resolution, localTexturePointer, remoteTexturePointer)\n\nSariskaMediaUnitySdk.SetupLocalStream(true, true, 180, localTexturePointer, remoteTexturePointer);\n\n```\n\n## Create Connection\n\nIn order to enter the room and start a call, the create connection method lets you give a room name and user name as parameters. Once these parameters are sent to the SDK, it automatically creates a JWT token for the user and establishes a conference for people to join it. \n\n``` C#\nSariskaMediaUnitySdk.CreateConnection(roomName, userName);\n```\n\n## Mute/Unmute Call\n\nA local participant can mute or unMute their audio by using the following methods.\n\n```C#\n// To mute audio\nSariskaMediaUnitySdk.MuteAudio();\n\n// To unmute audio\nSariskaMediaUnitySdk.UnMuteAudio();\n```\n\n## Mute/Unmute Video\n\nA local participant can mute or unMute their video by using the following methods.\n``` C#\n// To mute video\nSariskaMediaUnitySdk.MuteVideo();\n\n// To unmute video\nSariskaMediaUnitySdk.UnMuteVideo();\n```\n\n## Switch Camera\n\nA participant can switch the camera between the front and back by calling the switch camera method. By default, the video call initializes with the front camera open. \n```C#\n// To switch between camera\nSariskaMediaUnitySdk.SwitchCamera();\n```\n\n## Lock/Unlock Room\n\nA moderator can lock and unlock a room by calling the below two methods. While locking the room, the moderator has to provide a password in the form of a string. \n```C#\n// Lock a room with a password \nSariskaMediaUnitySdk.LockRoom(password);\n\n// Unlock a room \nSariskaMediaUnitySdk.UnlockRoom();\n```\n\n## Change Audio Output\n\nThe audio output can be changed to the speaker and turned off by calling the OnSpeaker method for switching to speaker and OffSpeaker for switching to the default output.\n```C#\n// Speaker on\nSariskaMediaUnitySdk.OnSpeaker();\n\n// Speaker off\nSariskaMediaUnitySdk.OffSpeaker();\n```\n\n## Get Participant Count\n\nThe GetParticipantCount method returns the number of participants present in the meeting at the time the method is called.\n```C#\n// Get Participant count \n// hidden, if assigned true, counts hidden participants as well \n\nbool hidden = true;\nint participantCount = SariskaMediaUnitySdk.GetParticipantCount(hidden);\n```\n## Get Dominant Speaker\n\nThe GetDominantSpeaker method returns the id in form of a string of the dominant speaker of the meeting.\n```C#\n// Returns the id of the dominant speaker\n\nstring participantId = SariskaMediaUnitySdk.GetDominantSpeaker();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsariskaio%2Fsariska-media-unity-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsariskaio%2Fsariska-media-unity-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsariskaio%2Fsariska-media-unity-package/lists"}