question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get URL to currently active live stream

See original GitHub issue

Expected Behavior

An API that returns the url of the currently active livestream

Actual Behavior

Can only check files API for files with the type hls and then filter

Steps to Reproduce

N/A

In general, I would love to be able to embed a Vimeo livestream into a static content website without having to update the video ID on every new stream.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fisherinnovationcommented, Dec 17, 2019

To help you avoid updating the video ID for every live stream you want to embed check out Recurring Events (https://vimeo.zendesk.com/hc/en-us/articles/360002114347-Recurring-events).

I will also bring your request internally to review as we continue to find better ways to enable you to gain more control over your embeds.

Thanks for the feedback!

0reactions
joelbriggscommented, Oct 11, 2020

I found a workaround that will get the URL for the live video for a live event. It may change in the future without notice so YMMV

I’m using PHP to get some JSON from vimeo

$json = json_decode(file_get_contents("https://vimeo.com/live_event/{LIVE_EVENT_ID}/status"));

This returns a JSON object that looks something like this

next_live_clip: { config: "https://player.vimeo.com/video/{VIDEO_ID}/config?autoplay=1&badge=0&byline=0&bypass_privacy=1&collections=0&color=00adef&context=embed_playlist.&default_to_hd=0&external_embed=0&force_embed=1&fullscreen=1&like=0&logo=0&playbar=1&portrait=0&privacy_banner=0&responsive=1&responsive_width=1&share=0&title=0&transparent=0&volume=1&watch_later=0" config_no_autoplay: "https://player.vimeo.com/video/{VIDEO_ID}/config?autoplay=0&badge=0&byline=0&bypass_privacy=1&collections=0&color=00adef&context=embed_playlist.&default_to_hd=0&external_embed=0&force_embed=1&fullscreen=1&like=0&logo=0&playbar=1&portrait=0&privacy_banner=0&responsive=1&responsive_width=1&share=0&title=0&transparent=0&volume=1&watch_later=0" duration: "00:00" id: VIDEO_ID is_live: true is_pending: false owner: "{OWNER_NAME}" plays: 14687 thumbnail: "https://i.vimeocdn.com/video/a.webp" title: "VIDEO_TITLE"}

With that you can grab the video URL from

$json->next_live_clip->config

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I get the actual video URL of a YouTube live stream?
From here, we need to get the HLS URL for a specific stream. ... the second one is a link to a video...
Read more >
Watch a live stream - Cloudflare Docs
To get the video UID representing the current live stream for a given input, make a ... To use your own player, use...
Read more >
LiveStreams | YouTube Live Streaming API - Google Developers
A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that ...
Read more >
Manage live stream settings - YouTube Help - Google Support
Manage live stream settings. Choosing the correct stream settings can help you reach the right audience and get the best quality stream. Note:...
Read more >
The ultimate live streaming guide for beginners | Livestream
Connect the encoder and streaming platform using the stream key and URL that ... For now, let's get started with the live streaming...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found