Back to ziggeo.com

How can I get the raw video urls?

You can obtain raw mp4 urls to videos by the following code:

ZiggeoApi.Videos.source("videotoken")
Have more questions? Submit a request

Comments

  • Avatar
    Kaan

    This is not working with Ziggeo V2. ZiggeoApi.Video is undefined. Documentation is pretty bad.

  • Avatar
    Bane

    Hi Kaan. We will be updating our v2 docs to make it easier to find such info.

    To get the RAW URL with v2 API you would use the following (app is required):

    ```

    var app = new ZiggeoApi.V2.Application({
    token:"APPLICATION_TOKEN"
    });

    //get the URL to video
    console.log( app.videos.videoUrl(token_or_key) );

    //get the URL to image
    console.log( app.videos.imageUrl(token_or_key) );

    ```

    Hope this helps :)