Zurück   Flashforum > Flash > Zusatzprodukte

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 01-11-2008, 15:30   #1 (permalink)
Grand Master Flash
 
Benutzerbild von Tiburon
 
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>
Ich habe noch nie mit swfobject Flash Elemente eingebettet und stehe nun völlig auf dem Schlauch.

Kann jemand helfen?
__________________
Gruss

}-^°>
Tiburon ist offline   Mit Zitat antworten
Alt 01-11-2008, 15:35   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
->verschoben
  Mit Zitat antworten
Alt 01-11-2008, 15:48   #3 (permalink)
Flashvideo
 
Benutzerbild von wm54
 
Registriert seit: Oct 2005
Beiträge: 495
Füge mal vorne jeweils einen Slash hinzu und passe den Pfad zur SWF an:

PHP-Code:
src="/include/swfobject.js"
flashvars.playerpath "/flash";                 
flashvars.contentpath "/video";
swfobject.embedSWF("/flash/flvplayer.swf" 
wm54 ist offline   Mit Zitat antworten
Alt 01-11-2008, 15:59   #4 (permalink)
Grand Master Flash
 
Benutzerbild von Tiburon
 
Registriert seit: Dec 2003
Ort: Schweiz
Beiträge: 130
Danke, hat aber leider nicht funktioniert
__________________
Gruss

}-^°>
Tiburon ist offline   Mit Zitat antworten
Alt 01-11-2008, 16:03   #5 (permalink)
Flashvideo
 
Benutzerbild von wm54
 
Registriert seit: Oct 2005
Beiträge: 495
Was passiert denn (nicht)?
Am besten wäre ein Link, dann sieht man woran's klemmt.
wm54 ist offline   Mit Zitat antworten
Alt 01-11-2008, 16:41   #6 (permalink)
Grand Master Flash
 
Benutzerbild von Tiburon
 
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

}-^°>
Tiburon ist offline   Mit Zitat antworten
Alt 01-11-2008, 17:14   #7 (permalink)
Flashvideo
 
Benutzerbild von wm54
 
Registriert seit: Oct 2005
Beiträge: 495
SWFObject hat viele Vorteile. Deshalb ist es auch in Flash CS4 zum Standard geworden ...
wm54 ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 20:16 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele