-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Plus, edits to `SubClasses` class
- Loading branch information
Showing
4 changed files
with
84 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php namespace IET_OU\Open_Media_Player; | ||
|
||
/** | ||
* | ||
*/ | ||
use \IET_OU\Open_Media_Player\Oembed_Provider; | ||
|
||
abstract class External_Oembed_Provider extends Oembed_Provider | ||
{ | ||
|
||
//protected $_endpoint_url; # oEmbed endpoint for 'external' providers, eg. iSpot. | ||
|
||
public function call($url, $matches) | ||
{ | ||
$this->_error('sorry the endpoint is: '. $this->_endpoint_url, 400.9); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php namespace IET_OU\Open_Media_Player; | ||
|
||
/** | ||
* Extend the base class for a generic IFRAME oEmbed provider. | ||
*/ | ||
use \IET_OU\Open_Media_Player\Oembed_Provider; | ||
|
||
abstract class Generic_Iframe_Oembed_Provider extends Oembed_Provider | ||
{ | ||
|
||
public function getView() | ||
{ | ||
return 'oembed/_generic_iframe'; | ||
} | ||
|
||
protected function getIframeResponse($url) | ||
{ | ||
return (object) array( | ||
'_comment' => '/*TODO: work-in-progress! */', | ||
'original_url' => $url, | ||
#'is_iframe' => TRUE, | ||
#'view_name' => $this->getView(), | ||
'class_name' => $this->name, | ||
'provider_name' => $this->displayname, | ||
'provider_url' => $this->_about_url, | ||
'provider_icon' => $this->favicon, | ||
'type' => $this->type, #rich | ||
'title'=> null, | ||
'width' => '100%', #640, #720, | ||
'height'=> 400, #$height, | ||
'embed_url'=> null, | ||
); | ||
} | ||
} |