gehe zur Dokumentation dieser Datei
227 public function __construct(
$link = null,
$type = null,
$length = null,
$javascript = null,
$bitrate = null,
$captions = null,
$categories = null,
$channels = null,
$copyright = null,
$credits = null,
$description = null,
$duration = null,
$expression = null,
$framerate = null,
$hashes = null,
$height = null,
$keywords = null,
$lang = null,
$medium = null,
$player = null,
$ratings = null,
$restrictions = null,
$samplingrate = null,
$thumbnails = null,
$title = null,
$width = null)
255 if (class_exists(
'idna_convert'))
257 $idn =
new idna_convert();
272 return md5(serialize($this));
282 if ($this->bitrate !== null)
318 if ($this->captions !== null)
354 if ($this->categories !== null)
371 if ($this->channels !== null)
388 if ($this->copyright !== null)
424 if ($this->credits !== null)
441 if ($this->description !== null)
459 if ($this->duration !== null)
484 if ($this->expression !== null)
501 if ($this->link !== null)
504 if ($url[
'path'] !==
'')
506 return pathinfo($url[
'path'], PATHINFO_EXTENSION);
519 if ($this->framerate !== null)
566 if ($this->hashes !== null)
583 if ($this->height !== null)
601 if ($this->lang !== null)
637 if ($this->keywords !== null)
654 if ($this->length !== null)
671 if ($this->link !== null)
673 return urldecode($this->link);
689 if ($this->medium !== null)
707 if ($this->player !== null)
743 if ($this->ratings !== null)
779 if ($this->restrictions !== null)
796 if ($this->samplingrate !== null)
816 return round(
$length/1048576, 2);
850 if ($this->thumbnails !== null)
867 if ($this->title !== null)
885 if ($this->type !== null)
902 if ($this->width !== null)
922 return $this->
embed($options,
true);
970 public function embed($options =
'', $native =
false)
980 $bgcolor =
'#ffffff';
987 if (is_array($options))
993 $options = explode(
',', $options);
994 foreach($options as $option)
996 $opt = explode(
':', $option, 2);
997 if (isset($opt[0], $opt[1]))
999 $opt[0] = trim($opt[0]);
1000 $opt[1] = trim($opt[1]);
1016 $altclass = $opt[1];
1036 $mediaplayer = $opt[1];
1040 $widescreen = $opt[1];
1047 $mime = explode(
'/',
$type, 2);
1053 if ($mime ===
'video')
1059 elseif ($widescreen)
1076 if ($mime ===
'audio')
1080 elseif ($mime ===
'video')
1093 elseif ($widescreen)
1107 elseif ($mime ===
'audio')
1113 if ($mime ===
'audio')
1115 $placeholder = $audio;
1117 elseif ($mime ===
'video')
1119 $placeholder = $video;
1129 $embed .=
"<embed src=\"" . $this->
get_link() .
"\" pluginspage=\"http://adobe.com/go/getflashplayer\" type=\"$type\" quality=\"high\" width=\"$width\" height=\"$height\" bgcolor=\"$bgcolor\" loop=\"$loop\"></embed>";
1133 $embed .=
"<script type='text/javascript'>embed_flash('$bgcolor', '$width', '$height', '" . $this->
get_link() .
"', '$loop', '$type');</script>";
1139 elseif (
$handler ===
'fmedia' || (
$handler ===
'mp3' && $mediaplayer !==
''))
1144 $embed .=
"<embed src=\"$mediaplayer\" pluginspage=\"http://adobe.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" quality=\"high\" width=\"$width\" height=\"$height\" wmode=\"transparent\" flashvars=\"file=" . rawurlencode($this->
get_link().
'?file_extension=.'.$this->
get_extension()) .
"&autostart=false&repeat=$loop&showdigits=true&showfsbutton=false\"></embed>";
1148 $embed .=
"<script type='text/javascript'>embed_flv('$width', '$height', '" . rawurlencode($this->
get_link().
'?file_extension=.'.$this->
get_extension()) .
"', '$placeholder', '$loop', '$mediaplayer');</script>";
1154 elseif (
$handler ===
'quicktime' || (
$handler ===
'mp3' && $mediaplayer ===
''))
1159 if ($placeholder !==
'')
1161 $embed .=
"<embed type=\"$type\" style=\"cursor:hand; cursor:pointer;\" href=\"" . $this->
get_link() .
"\" src=\"$placeholder\" width=\"$width\" height=\"$height\" autoplay=\"false\" target=\"myself\" controller=\"false\" loop=\"$loop\" scale=\"aspect\" bgcolor=\"$bgcolor\" pluginspage=\"http://apple.com/quicktime/download/\"></embed>";
1165 $embed .=
"<embed type=\"$type\" style=\"cursor:hand; cursor:pointer;\" src=\"" . $this->
get_link() .
"\" width=\"$width\" height=\"$height\" autoplay=\"false\" target=\"myself\" controller=\"true\" loop=\"$loop\" scale=\"aspect\" bgcolor=\"$bgcolor\" pluginspage=\"http://apple.com/quicktime/download/\"></embed>";
1170 $embed .=
"<script type='text/javascript'>embed_quicktime('$type', '$bgcolor', '$width', '$height', '" . $this->
get_link() .
"', '$placeholder', '$loop');</script>";
1180 $embed .=
"<embed type=\"application/x-mplayer2\" src=\"" . $this->
get_link() .
"\" autosize=\"1\" width=\"$width\" height=\"$height\" showcontrols=\"1\" showstatusbar=\"0\" showdisplay=\"0\" autostart=\"0\"></embed>";
1184 $embed .=
"<script type='text/javascript'>embed_wmedia('$width', '$height', '" . $this->
get_link() .
"');</script>";
1189 else $embed .=
'<a href="' . $this->
get_link() .
'" class="' . $altclass .
'">' . $alt .
'</a>';
1208 $types_flash = array(
'application/x-shockwave-flash',
'application/futuresplash');
1209 $types_fmedia = array(
'video/flv',
'video/x-flv',
'flv-application/octet-stream');
1210 $types_quicktime = array(
'audio/3gpp',
'audio/3gpp2',
'audio/aac',
'audio/x-aac',
'audio/aiff',
'audio/x-aiff',
'audio/mid',
'audio/midi',
'audio/x-midi',
'audio/mp4',
'audio/m4a',
'audio/x-m4a',
'audio/wav',
'audio/x-wav',
'video/3gpp',
'video/3gpp2',
'video/m4v',
'video/x-m4v',
'video/mp4',
'video/mpeg',
'video/x-mpeg',
'video/quicktime',
'video/sd-video');
1211 $types_wmedia = array(
'application/asx',
'application/x-mplayer2',
'audio/x-ms-wma',
'audio/x-ms-wax',
'video/x-ms-asf-plugin',
'video/x-ms-asf',
'video/x-ms-wm',
'video/x-ms-wmv',
'video/x-ms-wvx');
1212 $types_mp3 = array(
'audio/mp3',
'audio/x-mp3',
'audio/mpeg',
'audio/x-mpeg');
1216 $type = strtolower($this->type);
1224 if (!in_array(
$type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3)))
1231 $type =
'audio/acc';
1238 $type =
'audio/aiff';
1242 $type =
'audio/wav';
1249 $type =
'audio/midi';
1253 $type =
'audio/x-m4a';
1258 $type =
'audio/mp3';
1262 $type =
'audio/wav';
1266 $type =
'audio/x-ms-wax';
1270 $type =
'audio/x-ms-wma';
1276 $type =
'video/3gpp';
1281 $type =
'video/3gpp2';
1285 $type =
'video/x-ms-asf';
1289 $type =
'video/x-flv';
1303 $type =
'video/mpeg';
1307 $type =
'video/x-m4v';
1312 $type =
'video/quicktime';
1317 $type =
'video/mp4';
1321 $type =
'video/sd-video';
1325 $type =
'video/x-ms-wm';
1329 $type =
'video/x-ms-wmv';
1333 $type =
'video/x-ms-wvx';
1338 $type =
'application/futuresplash';
1342 $type =
'application/x-shockwave-flash';
1349 if (in_array(
$type, $types_flash))
1353 elseif (in_array(
$type, $types_fmedia))
1357 elseif (in_array(
$type, $types_quicktime))
1361 elseif (in_array(
$type, $types_wmedia))
1365 elseif (in_array(
$type, $types_mp3))
Sie sind hier: Home » MyOOS Benutzerhandbuch » SimplePie
Korrekturen, Hinweise und Ergänzungen
Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag
Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.