You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Problems with controls and scripting Created Nov 16, 2009

This thread is solved

Views: 1685     Replies: 6     Last reply Nov 16, 2009  
You must login first before you can use this feature

paulmaximum

Posts: 12

Registered:
Nov 15, 2009

Problems with controls and scripting

Posted: Nov 16, 2009

Hi, (now with correct coding)

first of all, i am not so familiar with javascript, i am the "paiste and copy" type, so i think many of you can help me very easily.

I'm trying to find a simple way for me and for my customers, to use the flowplayer on a website.

I tryed this:

---------------------------------

<a id="player" style="width:512px;height:290px;display:block"></a>
<script language="JavaScript">
flashembed("player", "flowplayer/flowplayer-3.1.5.swf", {config: {
clip:'video1/schuh01.flv',
plugins: {
controlbar:null
}
}});
</script>

-------------------------

and this is working without problems.

But then I tried to change the controlbar and some other behaviour of the player (e.g. scaling: 'fit') and this was the code:

--------------------------

<a id="player" style="width:512px;height:290px;display:block"></a>
<script language="JavaScript">
flashembed("player", "flowplayer/flowplayer-3.1.5.swf", {config: {
clip:'video1/schuh01.flv',
plugins: {
controls: {
url: 'flowplayer/flowplayer.controls-3.1.5.swf',

// display properties
bottom:0,
height:24,
z-index:1,
backgroundColor: '#2d3e46',
backgroundGradient: 'low',

// controlbar-specific configuration
fontColor: '#ffffff'
timeFontColor: '#333333',
autoHide: 'never',

// which buttons are visible and which are not?
play:true,
volume:true,
mute:true,
time:true,
stop:false,
playlist:false,
fullscreen:true,

// scrubber is a well-known nickname for the timeline/playhead combination
scrubber: true

// you can also use the "all" flag to disable/enable all controls
}
}});
</script>
-----------------------------------

and I see NOTHING. What is wrong?

Please help me!

Greetings
Max

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» Problems with controls and scripting

Posted: Nov 16, 2009

Reply to: Problems with controls and scripting, from paulmaximum
The css z-index directive must be camelCased when used in JavaScript:


zIndex: 50

Also, setting it to 1 might be too low (screen and/or play button might take that already). Have tried with just leaving it out. And some other properties you are setting explicitly are at their default value: be lazy and just tweak what you actually want to tweak ;-)

paulmaximum

Posts: 12

Registered:
Nov 15, 2009

» » Problems with controls and scripting

Posted: Nov 16, 2009

Reply to: » Problems with controls and scripting, from blacktrash
This is not the solution for me. I simplyfied the code like this:

-----


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Neue Seite 1</title>
<script type="text/javascript" src="flowplayer/tools.flashembed-1.0.4.min.js"></script>
</head>
<body>
<a id="player" style="width:512px;height:290px;display:block"></a>
<script language="JavaScript">
flashembed("player", "flowplayer/flowplayer-3.1.5.swf", {config: {
	clip:'video1/schuh01.flv',  
plugins: { 
    controls: { 
        url: 'flowplayer/flowplayer.controls-3.1.5.swf', 
 
        height:24, 
        backgroundColor: '#2d3e46'
 
        	}
}});
</script>                    
</body>

</html>


...and i see a white screen.

What is wrong with the script? The js-file and the swf-file are in the "flowplayer" folder and they are working.

Max

DeanB

Posts: 8

Registered:
Nov 16, 2009

» » » Problems with controls and scripting

Posted: Nov 16, 2009

Reply to: » » Problems with controls and scripting, from paulmaximum
You're missing a curly brace for plugins or controls.

paulmaximum

Posts: 12

Registered:
Nov 15, 2009

» » » » Problems with controls and scripting

Posted: Nov 16, 2009

Reply to: » » » Problems with controls and scripting, from DeanB
Hi, can you tell me more exactly where a brace is missing?

Thanks a lot...

DeanB

Posts: 8

Registered:
Nov 16, 2009

» » » » » Problems with controls and scripting

Posted: Nov 16, 2009

Reply to: » » » » Problems with controls and scripting, from paulmaximum

   plugins: {  
    controls: {  
        url: 'flowplayer/flowplayer.controls-3.1.5.swf',
        height:24,  
        backgroundColor: '#2d3e46' 
     }
   } 
}}); 
</script>                     
</body> 
 
</html> 

I didn't test it but I double checked the syntax in Dreamweaver.

paulmaximum

Posts: 12

Registered:
Nov 15, 2009

» » » » » » Problems with controls and scripting

Posted: Nov 16, 2009

Reply to: » » » » » Problems with controls and scripting, from DeanB
That's it, thx a lot!!!!