|
|
|
|
@ -39,32 +39,32 @@ class Providers { |
|
|
|
|
const providers = new Providers(); |
|
|
|
|
|
|
|
|
|
providers.registerProvider({ |
|
|
|
|
urls: [new RegExp('https?://soundcloud.com/\\S+')], |
|
|
|
|
urls: [new RegExp('https?://soundcloud\\.com/\\S+')], |
|
|
|
|
endPoint: 'https://soundcloud.com/oembed?format=json&maxheight=150', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
providers.registerProvider({ |
|
|
|
|
urls: [new RegExp('https?://vimeo.com/[^/]+'), new RegExp('https?://vimeo.com/channels/[^/]+/[^/]+'), new RegExp('https://vimeo.com/groups/[^/]+/videos/[^/]+')], |
|
|
|
|
urls: [new RegExp('https?://vimeo\\.com/[^/]+'), new RegExp('https?://vimeo\\.com/channels/[^/]+/[^/]+'), new RegExp('https://vimeo\\.com/groups/[^/]+/videos/[^/]+')], |
|
|
|
|
endPoint: 'https://vimeo.com/api/oembed.json?maxheight=200', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
providers.registerProvider({ |
|
|
|
|
urls: [new RegExp('https?://www.youtube.com/\\S+'), new RegExp('https?://youtu.be/\\S+')], |
|
|
|
|
urls: [new RegExp('https?://www\\.youtube\\.com/\\S+'), new RegExp('https?://youtu\\.be/\\S+')], |
|
|
|
|
endPoint: 'https://www.youtube.com/oembed?maxheight=200', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
providers.registerProvider({ |
|
|
|
|
urls: [new RegExp('https?://www.rdio.com/\\S+'), new RegExp('https?://rd.io/\\S+')], |
|
|
|
|
urls: [new RegExp('https?://www\\.rdio\\.com/\\S+'), new RegExp('https?://rd\\.io/\\S+')], |
|
|
|
|
endPoint: 'https://www.rdio.com/api/oembed/?format=json&maxheight=150', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
providers.registerProvider({ |
|
|
|
|
urls: [new RegExp('https?://www.slideshare.net/[^/]+/[^/]+')], |
|
|
|
|
urls: [new RegExp('https?://www\\.slideshare\\.net/[^/]+/[^/]+')], |
|
|
|
|
endPoint: 'https://www.slideshare.net/api/oembed/2?format=json&maxheight=200', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
providers.registerProvider({ |
|
|
|
|
urls: [new RegExp('https?://www.dailymotion.com/video/\\S+')], |
|
|
|
|
urls: [new RegExp('https?://www\\.dailymotion\\.com/video/\\S+')], |
|
|
|
|
endPoint: 'https://www.dailymotion.com/services/oembed?maxheight=200', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|