Project

General

Profile

Actions

Feature #22561

open

PBS Video embed

Added by Laurie Hurson 5 days ago. Updated 4 days ago.

Status:
New
Priority name:
Normal
Assignee:
Category name:
Shortcodes and embeds
Target version:
Start date:
2025-04-14
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi All,

I was working with a GC student on the site here: https://www.carouselsofnyc.com/

She is hoping to embed the following videos:

www.pbs.org/video/treasures-new-york-prospect-park-carousel-bsi8fd/

www.pbs.org/video/nyc-arts-nyc-arts-choice-janes-carousel/

Is it possible to add a shortcode to allow pbs videos to be embedded on the Commons?

Actions #1

Updated by Laurie Hurson 5 days ago

  • Subject changed from ArcGIS Storymap embed to PBS Video embed
Actions #2

Updated by Boone Gorges 5 days ago

  • Category name set to Shortcodes and embeds
  • Assignee set to Boone Gorges
  • Target version set to 2.5.7

Yes, we can do this, but it's a bit hacky. The embed code for pbs.org videos uses an asset URL that contains a numeric ID, which is not accessible in the regular URL of the video. So I wrote a small tool that tries to fetch the necessary code from pbs.org and caches it: https://github.com/cuny-academic-commons/cac/commit/a13b65f2eb10b90360d7d0423da746533b1b328b This lets you use the [pbs url="https://www.pbs.org/video/treasures-new-york-prospect-park-carousel-bsi8fd/"] shortcode, or paste https://www.pbs.org/video/treasures-new-york-prospect-park-carousel-bsi8fd/ on its own line in the editor for embed support. This will be available after the next maintenance release.

Actions #3

Updated by Laurie Hurson 4 days ago

Thanks Boone!

Actions

Also available in: Atom PDF