diff --git a/README.md b/README.md index 13d4821..3558486 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,7 @@ As of version 3.x, EmbedVideo supports embedding video content from the followin | [Spotify](http://spotify.com/) | `spotifytrack` - Song embed | 6ZFbXIJkuI1dVNWvzJzown | https://open.spotify.com/track/6ZFbXIJkuI1dVNWvzJzown | | [Twitch](http://www.twitch.tv) | `twitch` - Live Streams | `twitchvod` - Archived Videos on Demand | twitchplayspokemon | | [Vimeo](http://www.vimeo.com) | `vimeo` | 105035718 | http://vimeo.com/105035718 | +| [Wistia](http://wistia.com) | `wistia` | 62svuailn2 | https://softwareag-2.wistia.com/medias/62svuailn2 | | [YouTube](http://www.youtube.com/) | `youtube` - Single Videos | pSsYTj9kCHE | https://www.youtube.com/watch?v=pSsYTj9kCHE | | [YouTube](http://www.youtube.com/) | `youtubeplaylist` - Playlists | PLY0KbDiiFYeNgQkjujixr7qD-FS8qecoP | https://www.youtube.com/embed/?listType=playlist&list=PLY0KbDiiFYeNgQkjujixr7qD-FS8qecoP | | [YouTube](http://www.youtube.com/) | `youtubevideolist` - Video List | pSsYTj9kCHE - urlargs=playlist=pSsYTj9kCHE,pSsYTj9kCHE | https://www.youtube.com/embed/pSsYTj9kCHE?playlist=pSsYTj9kCHE,pSsYTj9kCHE | diff --git a/i18n/en.json b/i18n/en.json index 8d7f99f..b544d8d 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -25,6 +25,7 @@ "embedvideo-service-twitch": "Twitch", "embedvideo-service-videolink": "Video Link", "embedvideo-service-vimeo": "Vimeo", + "embedvideo-service-wistia": "Wistia", "embedvideo-service-youtube": "YouTube", "embedvideo-service-localvideo": "Local File", "embedvideo-service-externalvideo": "External Video", diff --git a/includes/EmbedService/EmbedServiceFactory.php b/includes/EmbedService/EmbedServiceFactory.php index 69b0ceb..86e865b 100644 --- a/includes/EmbedService/EmbedServiceFactory.php +++ b/includes/EmbedService/EmbedServiceFactory.php @@ -44,6 +44,7 @@ final class EmbedServiceFactory { TwitchVod::class, VideoLink::class, Vimeo::class, + Wistia::class, YouTube::class, YouTubeOEmbed::class, YouTubePlaylist::class, @@ -128,6 +129,9 @@ public static function newFromName( string $serviceName, string $id ): AbstractE case 'vimeo': return new Vimeo( $id ); + case 'wistia': + return new Wistia( $id ); + case 'youtubeoembed': return new YouTubeOEmbed( $id ); diff --git a/includes/EmbedService/Wistia.php b/includes/EmbedService/Wistia.php new file mode 100644 index 0000000..acaa013 --- /dev/null +++ b/includes/EmbedService/Wistia.php @@ -0,0 +1,50 @@ +