Back to Top

Record and Play the video using Viddler Series #2

Record and Play video using Viddler API

Here I come with the second and last article of viddler series. If you are not aware about the previous article,you can take a look at that article and come back here after completing that article.

Let’s see flashback of the previous article first.

Flashback

Yesterday in previous article, we have seen the basic idea about Viddler and Viddler API.Also, We have covered how to record videos using viddler api.

In this article:

In this article, we will take step forward to viddler API.Here step by step,I will show how to play the recorded video using Viddler API.

Let’s look into the example to play Viddler API in PHP.

When I have recorded video and save that video,fetch the video_id. You can get that code into previous article. So, Here using that video_id, we will get and play that video in our site.

Step 1:

First of all, create one file into that demo folder.For example. I am creating get_specific_video.php file here.

Step 2:

Include phpviddler.php file, create viddler object using API key and authenticate user same as we had done in previous article:

Step 3:

Next, get the your session id and validate session. Then call viddler_videos_getDetails function with the video id returned when you save the video.

Here, You will ge the embed_code in response of viddler_videos_getDetails function. if video not found, you will get error code.

Conclusion

So now we have covered both how to record and how to play recorded video using viddler API. I hope you have enjoyed series articles about viddler API. It would be great if you share your thoughts below in comment.

If you have any query or question,tell us in the comment section :). Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Share:
Share on Facebook0Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to use Short Hand Array in PHP

Posted on 2 years ago

Bhumi

How to add child product in VirtueMart

Posted on 5 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi