Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Commit

Permalink
Alphabetize and add service examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexia committed May 26, 2016
1 parent 3fe55e0 commit 6002ae0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ As of version 2.x, EmbedVideo supports embedding video content from the followin
| [Beam](https://beam.pro/) | `beam` | RocketBear | https://beam.pro/RocketBear |
| [Bing](http://www.bing.com/videos/) | `bing` | 31ncp9r7l | http://www.bing.com/videos/watch/video/adorable-cats-attempt-to-eat-invisible-tuna/31ncp9r7l |
| [Blip.tv](http://www.blip.tv/) | `blip` - Blip requires the full URL to the video page and does not accept the raw ID. | | http://blip.tv/vinylrewind/review-6864612 |
| [C3TV](https://media.ccc.de/) | `mediacccde` | 32c3-7305-quantum_cryptography | https://media.ccc.de/v/32c3-7305-quantum\_cryptography |
| [CollegeHumor](http://www.collegehumor.com/) | `collegehumor` | 6875289 | http://www.collegehumor.com/video/6875289/batman-says-his-goodbyes |
| [Dailymotion](http://www.dailymotion.com/) | `dailymotion` | x1adiiw\_archer-waking-up-as-h-jon-benjamin\_shortfilms | http://www.dailymotion.com/video/x1adiiw\_archer-waking-up-as-h-jon-benjamin\_shortfilms |
| [Daum TVPot](http://tvpot.daum.net/) | `tvpot` - Obtain the URL or ID from the share menu URL. | s9011HdLzYwpLwBodQzCHRB | http://tvpot.daum.net/v/s9011HdLzYwpLwBodQzCHRB |
Expand Down
13 changes: 9 additions & 4 deletions README.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,27 @@ As of version 2.x, EmbedVideo supports embedding video content from the followin
| <nowiki>RocketBear</nowiki>
| <nowiki>https://beam.pro/RocketBear</nowiki>
|-
! [http://www.bing.com/videos/ Bing]
! [http://www.bing.com/videos/ Bing]
| colspan="2"|<tt>bing</tt>
| <nowiki>31ncp9r7l</nowiki>
| <nowiki>http://www.bing.com/videos/watch/video/adorable-cats-attempt-to-eat-invisible-tuna/31ncp9r7l</nowiki>
|-
! [http://www.blip.tv/ Blip.tv]
! [http://www.blip.tv/ Blip.tv]
| colspan="2"|<tt>blip</tt> - Blip requires the full URL to the video page and does not accept the raw ID.
|
|<nowiki>http://blip.tv/vinylrewind/review-6864612</nowiki>
|-
! [http://www.collegehumor.com/ CollegeHumor]
! [https://media.ccc.de/ C3TV]
| colspan="2"|<tt>mediacccde</tt>
| <nowiki>32c3-7305-quantum_cryptography</nowiki>
| <nowiki>https://media.ccc.de/v/32c3-7305-quantum_cryptography</nowiki>
|-
! [http://www.collegehumor.com/ CollegeHumor]
| colspan="2"|<tt>collegehumor</tt>
| <nowiki>6875289</nowiki>
| <nowiki>http://www.collegehumor.com/video/6875289/batman-says-his-goodbyes</nowiki>
|-
! [http://www.dailymotion.com/ Dailymotion]
! [http://www.dailymotion.com/ Dailymotion]
| colspan="2"|<tt>dailymotion</tt>
| <nowiki>x1adiiw_archer-waking-up-as-h-jon-benjamin_shortfilms</nowiki>
| <nowiki>http://www.dailymotion.com/video/x1adiiw_archer-waking-up-as-h-jon-benjamin_shortfilms</nowiki>
Expand Down
24 changes: 12 additions & 12 deletions classes/VideoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,18 @@ class VideoService {
'#^([\d\w-]+/[\d\w-]+)$#is'
]
],
'mediacccde' => [
'embed' => '<iframe src="https://media.ccc.de/v/%1$s/oembed" width="%2$d" height="%3$d" frameborder="0" allowfullscreen="true" scrolling="no"></iframe>',
'default_width' => 660,
'default_ratio' => 1.77777777777778, //(16 / 9),
'https_enabled' => true,
'url_regex' => [
'#conferences/.*?([\d\w_-]+)(?:/oembed)?.html$#is'
],
'id_regex' => [
'#^([\d\w_-]+)$#is'
]
],
'metacafe' => [
'embed' => '<iframe src="http://www.metacafe.com/embed/%1$s/" width="%2$d" height="%3$d" frameborder="0" allowFullScreen="true"></iframe>',
'default_width' => 640,
Expand Down Expand Up @@ -361,18 +373,6 @@ class VideoService {
'id_regex' => [
'#^(?:id_)?([\d\w-]+)$#is'
]
],
'mediacccde' => [
'embed' => '<iframe src="https://media.ccc.de/v/%1$s/oembed" width="%2$d" height="%3$d" frameborder="0" allowfullscreen="true" scrolling="no"></iframe>',
'default_width' => 660,
'default_ratio' => 1.77777777777778, //(16 / 9),
'https_enabled' => true,
'url_regex' => [
'#conferences/.*?([\d\w_-]+)(?:/oembed)?.html$#is'
],
'id_regex' => [
'#^([\d\w_-]+)$#is'
]
]
];

Expand Down

0 comments on commit 6002ae0

Please sign in to comment.