ashok patel
ashok patel

Reputation: 86

how to integration Ziggeo Sdk to Ionic App

I want to integrate the Ziggeo' sdk into my ionic app,I spend 2 day on it but I'm not able to integrate Ziggeo' sdk into my ionic app. I downlade demo ionic project from github(source:- https://github.com/Ziggeo/ionic2-ziggeo-demo),I can't understated how i can include this to my project?

Upvotes: 0

Views: 81

Answers (1)

Sumit Kumathalli
Sumit Kumathalli

Reputation: 101

It is quite simple.

  1. Install the Ziggeo Client SDK via npm.

  2. <link rel="stylesheet" href="build/ziggeo.css" /> 
    <script src="build/ziggeo.js"></script> 
    

    Then, you need to specify your API token:

    <script>
        var ziggeoApp = new ZiggeoApi.V2.Application({
            token: "APPLICATION_TOKEN"
        }); 
    </script>
    

    Note: You will get the Api_token either through Ziggeo, or you can upload a video and receive one.

  3. Now, at last, you can either record or play a video by doing the following:

    <ziggeorecorder></ziggeorecorder> 
    

    To embed a player for an existing video, add:

    <ziggeoplayer ziggeo-video='video-token'></ziggeoplayer> 
    
  4. Finally, if you use Angular in Ionic, I suggest you use the angular-ziggeo package from npm. It makes things much simpler.

Upvotes: 2

Related Questions