| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Grand Master Flash Registriert seit: Dec 2003 Ort: Schweiz
Beiträge: 130
| Kennt jemand flvplayer?
Hi Flasher Ich will meine Quicktime plugins auf meiner Webpage durch Flash ablösen. Hierfür habe ich mir den Opensource Player "flvplayer" runtergezogen, aber ich komme damit bei der Einbettung nicht zurecht. Irgendwie kriege ich das nicht hin. Meine swf Dateien liegen im Subverzeichnis "/flash" Die Videodateien unter "/video" Includes bspw. für Javascript sind unter "/includes abgelegt". Eingebettet wird mit der swfobject Methode, aber das ist im folgenden Script ja ersichtlich. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My video player</title>
<link rel="stylesheet" type="text/css" href="http://www.video-flash.de/wp-content/uploads/2008/01/style.css"/>
<!-- ::::::::::::::::::::::::::::::::::: -->
<!-- ::::::: FLV Player (part 1/2)::::: -->
<!-- ::::::::::::::::::::::::::::::::::: -->
<script type="text/javascript" src="include/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
/* flv player parameters */
flashvars.playerpath = "flash";
flashvars.contentpath = "video";
flashvars.video = "drescher01_.flv";
flashvars.preview = "";
flashvars.skin = "skin-applestyle.swf";
flashvars.skincolor = "0x2c8cbd";
flashvars.skinscalemaximum = "1";
flashvars.autoscale = "true";
// set autoscale to false to use width and height
flashvars.videowidth = "320";
flashvars.videoheight = "240";
flashvars.captions = "";
//flashvars.preroll = "demo-ad.flv";
/* end */
var params = {};
params.scale = "noscale";
params.allowfullscreen = "true";
params.salign = "tl";
var attributes = {};
attributes.align = "left";
/* embed flv player */
// adapt the path to flvplayer.swf and expressInstall.swf
// adapt the display size of the flash file
swfobject.embedSWF("flvplayer.swf", "videoPlayer", "650", "530", "9.0.28", "expressInstall.swf", flashvars, params, attributes);
/* end */
</script>
<!-- :::::::::::::::::::::::::::::: -->
<!-- :::::::::::::::::::::::::::::: -->
<!-- :::::::::::::::::::::::::::::: -->
</head>
<body>
<div id="wrap" style="height:1000px"><!--grid container-->
<!-- :::::::::::::: -->
<h1>FLV Flash Fullscreen Video Player</h1>
<hr/>
<h2>1. FLV Player Demo</h2>
<h3>Embed FLV Player using SWFObject</h3>
<p>This examples show how to embed the FLV Player using SWFObject.</p>
<!-- ::::::::::::::::::::::::::::::::::: -->
<!-- ::::::: FLV Player (part 2/2) ::::: -->
<!-- ::::::::::::::::::::::::::::::::::: -->
<div id="videoPlayer" style="margin:0px">
<p>This content requires the Adobe Flash Player.</p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
</p>
</div>
<!-- :::::::::::::::::::::::::::::: -->
<!-- :::::::::::::::::::::::::::::: -->
<!-- :::::::::::::::::::::::::::::: -->
<!-- :::::::::::::::::::::::::::::: -->
<!-- Footer -->
<div id="footnotes" style="clear:both">
<p><a href="http://www.video-flash.de/" title="www.video-flash.de">www.video-flash.de</a>, Florian Plag</p>
</div>
</div><!--end grid container-->
</body>
</html> Kann jemand helfen?
__________________ Gruss }-^°> |
| | |
| | #3 (permalink) |
| Flashvideo Registriert seit: Oct 2005
Beiträge: 495
|
Füge mal vorne jeweils einen Slash hinzu und passe den Pfad zur SWF an: PHP-Code: |
| | |
| | #6 (permalink) |
| Grand Master Flash Registriert seit: Dec 2003 Ort: Schweiz
Beiträge: 130
|
Hi, es hat jetzt geklappt. Der eigentliche Grund war, dass die js-Script nicht im Verzeichnis "include" sonder "includes" liegt <hirnklatsch>. Nicht übel, der Player. Ich frage mich, ob dieses "swfobject" Vorgehen wirklich nötig ist oder ob eine Einbettung mit <object> nicht einfacher wäre, zumal ich eigentlich kein Javascript einsetzen möchte. Auf jeden Fall vielen Dank fürs Mithelfen!
__________________ Gruss }-^°> |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |