Feature #22561
openPBS Video embed
0%
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?
Updated by Laurie Hurson 5 days ago
- Subject changed from ArcGIS Storymap embed to PBS Video embed
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.