Reputation: 86
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
Reputation: 101
It is quite simple.
Install the Ziggeo Client SDK via npm.
<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.
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>
Finally, if you use Angular in Ionic, I suggest you use the angular-ziggeo
package from npm. It makes things much simpler.
Upvotes: 2