ZiggeoXamarinSDK 1.2.6
dotnet add package ZiggeoXamarinSDK --version 1.2.6
NuGet\Install-Package ZiggeoXamarinSDK -Version 1.2.6
<PackageReference Include="ZiggeoXamarinSDK" Version="1.2.6" />
paket add ZiggeoXamarinSDK --version 1.2.6
#r "nuget: ZiggeoXamarinSDK, 1.2.6"
// Install ZiggeoXamarinSDK as a Cake Addin #addin nuget:?package=ZiggeoXamarinSDK&version=1.2.6 // Install ZiggeoXamarinSDK as a Cake Tool #tool nuget:?package=ZiggeoXamarinSDK&version=1.2.6
Ziggeo Xamarin SDK 1.2.5
Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only several lines of code in your app.
Upgrading from v.1.2.3 to v.1.2.5
The update improves video quality and adds an opportunity to select the recorded video quality
Upgrading from v.1.2.2 to v.1.2.3
The update bring RecordingStopped
event. It will be invoked at the moment of the recording was stopped
Upgrading from v.1.2.1 to v.1.2.2
The update changes the behaviour of the RecordingStarted
event. It will be invoked on actual recording start instead of the recorder UI appearance
Upgrading from v.1.1.0 to v.1.2.1
The update bring crossplatform available events for recorder and video service.
Upgrading from v.1.0.0 to v.1.1.0
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
Integration
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.
Auth Tokens
To enable client/server auth tokens use:
ZiggeoApplication.ServerAuthToken = "SERVER_AUTH_TOKEN"
ZiggeoApplication.ClientAuthToken = "CLIENT_AUTH_TOKEN"
Events
Video service events
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());
};
Recorder events
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());
};
API Methods
To access API methods, use:
App.ZiggeoApplication.Videos
or
App.ZiggeoApplication.Streams
Videos
The videos resource allows you to access all single videos. Each video may contain more than one stream.
Index
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
- limit: Limit the number of returned videos. Can be set up to 100.
- skip: Skip the first [n] entries.
- reverse: Reverse the order in which videos are returned.
- states: Filter videos by state
- tags: Filter the search result to certain tags, encoded as a comma-separated string
Get
Get a single video by token or key.
App.ZiggeoApplication.Videos.Get(string token_or_key)
Download Video
Download the video data file
App.ZiggeoApplication.Videos.DownloadVideo(string token_or_key)
Download Image
Download the image data file
App.ZiggeoApplication.Videos.DownloadImage(string token_or_key)
Apply Effect
Apply an effect profile to a video.
App.ZiggeoApplication.Videos.ApplyEffect(string token_or_key, Dictionary<string, string> arguments)
Arguments
- effectprofiletoken: Effect Profile token (from the Effect Profiles configured for the app)
Update
Update single video by token or key.
App.ZiggeoApplication.Videos.Update(string token_or_key, Dictionary<string, string> arguments)
Arguments
- min_duration: Minimal duration of video
- max_duration: Maximal duration of video
- tags: Video Tags
- key: Unique (optional) name of video
- volatile: Automatically removed this video if it remains empty
- expiration_days: After how many days will this video be deleted
Destroy
Destroy a single video by token or key.
App.ZiggeoApplication.Videos.Destroy(string token_or_key)
Create
Create a new video.
App.ZiggeoApplication.Videos.Create(string filePath, Dictionary<string, string> arguments)
Arguments
- file: Video file to be uploaded
- min_duration: Minimal duration of video
- max_duration: Maximal duration of video
- tags: Video Tags
- key: Unique (optional) name of video
- volatile: Automatically removed this video if it remains empty
Streams
The streams resource allows you to directly access all streams associated with a single video.
Create
Create a new stream
App.ZiggeoApplication.Streams.Create(string video_token_or_key, Dictionary<string, string> arguments, string file)
Arguments
- file: Video file to be uploaded
Attach Image
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
- file: Image file to be attached
Attach Video
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
- file: Video file to be attached
Bind
Closes and submits the stream
App.ZiggeoApplication.Streams.Bind(string video_token_or_key, string token_or_key, Dictionary<string, string> arguments)
License
Copyright (c) 2013-2018 Ziggeo
Apache 2.0 License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid81 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
-
MonoAndroid 8.1
- GoogleGson (>= 2.8.1)
- Microsoft.CSharp (>= 4.5.0)
- Microsoft.NETCore.Platforms (>= 2.1.0)
- Microsoft.Win32.Primitives (>= 4.3.0)
- Naxam.ReactiveStreams.Droid (>= 1.0.1)
- Naxam.RxJava2.Droid (>= 2.1.2)
- Naxam.SquareUp.OkHttp3.LoggingInterceptor (>= 3.9.1.2)
- NETStandard.Library (>= 2.0.3)
- Newtonsoft.Json (>= 11.0.2)
- Square.OkHttp3 (>= 3.8.1)
- Square.OkIO (>= 1.13.0)
- System.AppContext (>= 4.3.0)
- System.Collections (>= 4.3.0)
- System.Collections.Concurrent (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Console (>= 4.3.1)
- System.Diagnostics.Debug (>= 4.3.0)
- System.Diagnostics.Tools (>= 4.3.0)
- System.Diagnostics.Tracing (>= 4.3.0)
- System.Globalization (>= 4.3.0)
- System.Globalization.Calendars (>= 4.3.0)
- System.IO (>= 4.3.0)
- System.IO.Compression (>= 4.3.0)
- System.IO.Compression.ZipFile (>= 4.3.0)
- System.IO.FileSystem (>= 4.3.0)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Linq (>= 4.3.0)
- System.Linq.Expressions (>= 4.3.0)
- System.Net.Http (>= 4.3.3)
- System.Net.Primitives (>= 4.3.0)
- System.Net.Sockets (>= 4.3.0)
- System.ObjectModel (>= 4.3.0)
- System.Reflection (>= 4.3.0)
- System.Reflection.Extensions (>= 4.3.0)
- System.Reflection.Primitives (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime (>= 4.3.0)
- System.Runtime.Extensions (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
- System.Runtime.InteropServices (>= 4.3.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Runtime.Numerics (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Encoding (>= 4.3.0)
- System.Security.Cryptography.Primitives (>= 4.3.0)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Text.Encoding (>= 4.3.0)
- System.Text.Encoding.Extensions (>= 4.3.0)
- System.Text.RegularExpressions (>= 4.3.0)
- System.Threading (>= 4.3.0)
- System.Threading.Tasks (>= 4.3.0)
- System.Threading.Timer (>= 4.3.0)
- System.Xml.ReaderWriter (>= 4.3.1)
- System.Xml.XDocument (>= 4.3.0)
- System.Xml.XmlDocument (>= 4.3.0)
- Xamarin.Android.Arch.Core.Common (>= 1.0.0.1)
- Xamarin.Android.Arch.Lifecycle.Common (>= 1.0.3.1)
- Xamarin.Android.Arch.Lifecycle.Runtime (>= 1.0.3.1)
- Xamarin.Android.Support.Animated.Vector.Drawable (>= 27.0.2.1)
- Xamarin.Android.Support.Annotations (>= 27.0.2.1)
- Xamarin.Android.Support.Compat (>= 27.0.2.1)
- Xamarin.Android.Support.Constraint.Layout (>= 1.1.0)
- Xamarin.Android.Support.Constraint.Layout.Solver (>= 1.1.0)
- Xamarin.Android.Support.Core.UI (>= 27.0.2.1)
- Xamarin.Android.Support.Core.Utils (>= 27.0.2.1)
- Xamarin.Android.Support.Fragment (>= 27.0.2.1)
- Xamarin.Android.Support.Media.Compat (>= 27.0.2.1)
- Xamarin.Android.Support.v4 (>= 27.0.2.1)
- Xamarin.Android.Support.v7.AppCompat (>= 27.0.2.1)
- Xamarin.Android.Support.Vector.Drawable (>= 27.0.2.1)
-
Xamarin.iOS 1.0
- Microsoft.CSharp (>= 4.5.0)
- Microsoft.NETCore.Platforms (>= 2.1.0)
- Microsoft.Win32.Primitives (>= 4.3.0)
- NETStandard.Library (>= 2.0.3)
- Newtonsoft.Json (>= 11.0.2)
- System.AppContext (>= 4.3.0)
- System.Collections (>= 4.3.0)
- System.Collections.Concurrent (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Console (>= 4.3.1)
- System.Diagnostics.Debug (>= 4.3.0)
- System.Diagnostics.Tools (>= 4.3.0)
- System.Diagnostics.Tracing (>= 4.3.0)
- System.Globalization (>= 4.3.0)
- System.Globalization.Calendars (>= 4.3.0)
- System.IO (>= 4.3.0)
- System.IO.Compression (>= 4.3.0)
- System.IO.Compression.ZipFile (>= 4.3.0)
- System.IO.FileSystem (>= 4.3.0)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Linq (>= 4.3.0)
- System.Linq.Expressions (>= 4.3.0)
- System.Net.Http (>= 4.3.3)
- System.Net.Primitives (>= 4.3.0)
- System.Net.Sockets (>= 4.3.0)
- System.ObjectModel (>= 4.3.0)
- System.Reflection (>= 4.3.0)
- System.Reflection.Extensions (>= 4.3.0)
- System.Reflection.Primitives (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime (>= 4.3.0)
- System.Runtime.Extensions (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
- System.Runtime.InteropServices (>= 4.3.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Runtime.Numerics (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Encoding (>= 4.3.0)
- System.Security.Cryptography.Primitives (>= 4.3.0)
- System.Security.Cryptography.X509Certificates (>= 4.3.2)
- System.Text.Encoding (>= 4.3.0)
- System.Text.Encoding.Extensions (>= 4.3.0)
- System.Text.RegularExpressions (>= 4.3.0)
- System.Threading (>= 4.3.0)
- System.Threading.Tasks (>= 4.3.0)
- System.Threading.Timer (>= 4.3.0)
- System.Xml.ReaderWriter (>= 4.3.1)
- System.Xml.XDocument (>= 4.3.0)
- System.Xml.XmlDocument (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.