Core
A robust user authentication system is implemented to ensure our platform's security and privacy. User credentials are securely stored and encrypted using industry-standard methods. Access control is enforced through carefully managed permissions, granting users access only to features and functionalities based on the entitlements. This approach adheres to stringent security and data protection standards. Personalized services are provided by leveraging stored credentials, allowing for tailored user experiences. It is important to note that authentication is mandatory for utilizing any functionality within the TruvideoSDK.
Note
Please note that authentication is a prerequisite for utilizing any functionality within the TruvideoSDK.
Adding Module
MAUI specific :
1. Configure NuGet Package Source
Add the TruVideo GitHub package source to your NuGet configuration. You can do this in two ways:
Option A: Using the .NET CLI
dotnet nuget add source https://nuget.pkg.github.com/Truvideo/index.json -n truvideo
Option B: Manually editing nuget.config
Create or edit the nuget.config
file in your solution directory:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="truvideo" value="https://nuget.pkg.github.com/Truvideo/index.json" />
</packageSources>
</configuration>
2. Configure GitHub Authentication
You need to configure your GitHub credentials to access the package feed. Add the following to your nuget.config
file:
<packageSourceCredentials>
<truvideo>
<add key="Username" value="YOUR_GITHUB_USERNAME" />
<add key="ClearTextPassword" value="YOUR_GITHUB_PAT" />
</truvideo>
</packageSourceCredentials>
Important: You must create a GitHub Personal Access Token with both
repo
andpackages
permissions. Without these specific permissions, package installation will fail. To create a token:
Go to GitHub Settings > Developer Settings > Personal Access Tokens
Generate a new token with at least
repo
andpackages
scopesCopy the token immediately as it won't be shown again
Note: Never commit your GitHub credentials to source control. Consider using environment variables or user-specific configuration files.
3. Install Required Packages
If you configured the package source manually, you need to install the required packages using the following commands:
Check latest version - Android , iOS
#for iOS
dotnet add package TruVideoCoreiOSBinding --version {version}
#for Android
dotnet add package TruVideoCoreAndroidBinding --version {version}
4. Important Project Configuration
When implementing the SDK in your own application, make sure to add the following configuration to your .csproj
file:
<PropertyGroup>
<MtouchExtraArgs>--require-pinvoke-wrappers=true</MtouchExtraArgs>
<Registrar>static</Registrar>
</PropertyGroup>
Last updated
Was this helpful?