Back to ziggeo.com

How can I get the raw video urls?

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

var application = new ZiggeoApi.V2.Application( {token:"APP_TOKEN"} );
console.log(application.videos.videoUrl("VIDEO_TOKEN"));
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 :)

  • Avatar
    David Kees

    Very useful, thanks!

    Is there a way to get the URL of the video after it's been pushed to cloud storage, say Google Drive? If not, for how long will the videos remain available at the URL provided by the above code?

  • Avatar
    Bane

    Glad to hear that you find it useful David. In regards to URL, do you refer to URL on Google Drive for example or on our system?

    If on our system, then the videos will be available under that URL for as long as you do not remove them from our system. That means, before auto push, after auto push, manual push or any other feature goes through the video (as long as that feature is not removal of the video of course).

    In general we never remove the video automatically, so they will never expire.

    Hope that helps :)

  • Avatar
    David Kees

    That is helpful, thank you.

    Is there a way to get the URL on google drive from the API?

    Thanks,
    Dave

  • Avatar
    Bane

    Good question Dave.

    Since it requires a bit more info I went ahead and made a new post specific to that. You can find it here: https://support.ziggeo.com/hc/en-us/articles/360001745248-Can-we-get-path-or-ID-from-auto-pushed-video-

    Hope that helps :)