Documentation

Ziggeo's Xamarin integration is the ultimate video recording/playback SDK for Xamarin out there.

You can install our Xamarin package here.

You can check out demo here as well.

Fork me on GitHub

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.

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