![]() |
VOOZH | about |
dotnet add package ZiggeoXamarinSDK --version 1.2.6
NuGet\Install-Package ZiggeoXamarinSDK -Version 1.2.6
<PackageReference Include="ZiggeoXamarinSDK" Version="1.2.6" />
<PackageVersion Include="ZiggeoXamarinSDK" Version="1.2.6" />Directory.Packages.props
<PackageReference Include="ZiggeoXamarinSDK" />Project file
paket add ZiggeoXamarinSDK --version 1.2.6
#r "nuget: ZiggeoXamarinSDK, 1.2.6"
#:package ZiggeoXamarinSDK@1.2.6
#addin nuget:?package=ZiggeoXamarinSDK&version=1.2.6Install as a Cake Addin
#tool nuget:?package=ZiggeoXamarinSDK&version=1.2.6Install as a Cake Tool
Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only several lines of code in your app.
The update improves video quality and adds an opportunity to select the recorded video quality
The update bring RecordingStopped event. It will be invoked at the moment of the recording was stopped
The update changes the behaviour of the RecordingStarted event. It will be invoked on actual recording start instead of the recorder UI appearance
The update bring crossplatform available events for recorder and video service.
The update bring crossplatform avaiable client/server auth tokens. Use ZiggeoApplication.ClientAuthToken and ZiggeoApplication.ServerAuthToken properties to set the auth tokens on iOS and Android platforms
You need to add these code to your Application class:
public const string AppToken = "your_token_here";
public static Ziggeo.ZiggeoApplication ZiggeoApplication = new Ziggeo.ZiggeoApplication(AppToken);
You can check other global options, see here.
To fire up a recorder, add:
Ziggeo.IZiggeoRecorder recorder = App.ZiggeoApplication.Recorder;
try
{
string token = await recorder.Record();
}
catch(Exception ex)
{
await DisplayAlert("Error", ex.Message, "Okay");
}
To start a player for an existing video, add:
Ziggeo.IZiggeoPlayer player = App.ZiggeoApplication.Player;
await player.Play(viewModel.Item.token);
For the full documentation, please visit ziggeo.com.
To enable client/server auth tokens use:
ZiggeoApplication.ServerAuthToken = "SERVER_AUTH_TOKEN"
ZiggeoApplication.ClientAuthToken = "CLIENT_AUTH_TOKEN"
ZiggeoApplication.Videos.UploadStarted += (string filePath) =>
{
//upload started
Console.WriteLine("upload started from {0}", filePath);
};
ZiggeoApplication.Videos.UploadProgressChanged += (string token, string filename, long bytesSent, long totalBytes) =>
{
//update progress
Console.WriteLine("upload progress changed for {2}: {0}/{1}", bytesSent, totalBytes, token);
};
ZiggeoApplication.Videos.UploadComplete += (string token, string filename) =>
{
//done
Console.WriteLine("{0} upload done with token {1}", filename, token);
};
ZiggeoApplication.Videos.UploadFailed += (string filename, Exception error) =>
{
//handle error
Console.WriteLine("{0} upload failed with error {1}", filename, error.ToString());
};
ZiggeoApplication.Recorder.RecordingStarted += () =>
{
//recording started
Console.WriteLine("recording started");
};
ZiggeoApplication.Recorder.RecordingStopped += () =>
{
//recording was stopped
Console.WriteLine("recording stopped");
};
ZiggeoApplication.Recorder.RecordingCanceled += () =>
{
//recorder was closed by the user
Console.WriteLine("recorded was closed manually, recording was canceled");
};
ZiggeoApplication.Recorder.RecordingFinishedUploadDone += (string token) =>
{
//done
Console.WriteLine("recording and file upload were finished with token {0}", token);
};
ZiggeoApplication.Recorder.RecordingError += (Exception ex) =>
{
//handle error
Console.WriteLine("recorder error: {0}", ex.ToString());
};
To access API methods, use:
App.ZiggeoApplication.Videos
or
App.ZiggeoApplication.Streams
The videos resource allows you to access all single videos. Each video may contain more than one stream.
Query an array of videos (will return at most 50 videos by default). Newest videos come first.
App.ZiggeoApplication.Videos.Index(Dictionary<string, string> arguments)
Arguments
Get a single video by token or key.
App.ZiggeoApplication.Videos.Get(string token_or_key)
Download the video data file
App.ZiggeoApplication.Videos.DownloadVideo(string token_or_key)
Download the image data file
App.ZiggeoApplication.Videos.DownloadImage(string token_or_key)
Apply an effect profile to a video.
App.ZiggeoApplication.Videos.ApplyEffect(string token_or_key, Dictionary<string, string> arguments)
Arguments
Update single video by token or key.
App.ZiggeoApplication.Videos.Update(string token_or_key, Dictionary<string, string> arguments)
Arguments
Destroy a single video by token or key.
App.ZiggeoApplication.Videos.Destroy(string token_or_key)
Create a new video.
App.ZiggeoApplication.Videos.Create(string filePath, Dictionary<string, string> arguments)
Arguments
The streams resource allows you to directly access all streams associated with a single video.
Create a new stream
App.ZiggeoApplication.Streams.Create(string video_token_or_key, Dictionary<string, string> arguments, string file)
Arguments
Attaches an image to a new stream
App.ZiggeoApplication.Streams.AttachImage(string video_token_or_key, string token_or_key, Dictionary<string, string> arguments, string file)
Arguments
Attaches a video to a new stream
App.ZiggeoApplication.Streams.AttachVideo(string video_token_or_key, string token_or_key, Dictionary<string, string> arguments, string file)
Arguments
Closes and submits the stream
App.ZiggeoApplication.Streams.Bind(string video_token_or_key, string token_or_key, Dictionary<string, string> arguments)
Copyright (c) 2013-2018 Ziggeo
Apache 2.0 License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| MonoAndroid | monoandroid81 monoandroid81 is compatible. |
| Xamarin.iOS | xamarinios10 xamarinios10 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.