From b14d0142dc3e52dd15008cc7846468beb3227468 Mon Sep 17 00:00:00 2001 From: buttle Date: Thu, 2 Sep 2021 14:17:35 +0200 Subject: [PATCH] updates README --- README.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a1e9098..7c7d3be 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,6 @@ [oEmbed-omeka-module] is a module for [Omeka S] that embeds media and defines height and width. -Compatible with - -* Vimeo -* Youtube -* Sketchfab - ## Install ``` @@ -18,6 +12,26 @@ mv archiveOembed-omeka-module ArchiveOembed rm main.zip ``` +## Media Providers + +Thos Omeka module is compatible with these media providers + +* Vimeo +* Youtube +* Sketchfab + +To add a new provider, edit `./Module.php` and add the provider's name and oEmbed url to the `MEDIA_PROVIDERS_OEMBED` array + +``` +const MEDIA_PROVIDERS_OEMBED = [ + 'https://vimeo.com/api/oembed.json?url=' => 'Vimeo', + 'https://www.youtube.com/oembed?url=' => 'Youtube', + 'https://sketchfab.com/oembed/?url=' => 'Sketchfab', + ... your new provider here .. +]; +``` + + ## LISENCE The module is released under the [MIT] License.