Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

europeana/europeana-oembed-provider

Repository files navigation

Europeana oEmbed Provider

Build Status Coverage Status security

An aggregate oEmbed provider for a variety of embedabble media players used by Europeana's data partners.

License

Licensed under the EUPL V.1.1.

For full details, see LICENSE.md.

Requirements

  • Ruby 2.x

Installation

The Europeana oEmbed Provider is a simple Sinatra application.

  1. Clone the repo
  2. bundle install
  3. bundle exec ruby app.rb -s Puma (or foreman start in development environments)

Usage

The application responds to oEmbed requests at its root path. For example:

http://localhost:3000/?url=http://www.ccma.cat/tv3/alacarta/programa/titol/video/955989/

Responses are in JSON format.

Supported providers

Provider oEmbed type
CCMA video
crem-cnrs.fr rich
Ina.fr video
Picturepipe video
The European Library rich

Docker

A Dockerfile is included, optimised for small image size, for publication to a Docker repository and use in production environments.

Configure version

export VERSION=0.3.1

Build

docker build -t europeana/oembed-provider:${VERSION} .

Run

docker run \
       -p 8080:80 \
       europeana/oembed-provider:${VERSION}

Publish

docker push europeana/oembed-provider:${VERSION}