This is a message.

Forum user: SInCE

Basic information

Registered Dec 2, 2011
Last login 4 weeks and 6 days ago
Forum posts 6
Direct URL http://www.flowplayer.org/forum/users/119355

Latest forum posts

Posts:

Registered:

» » » » » » Menu doesn

Posted: 4 weeks and 6 days ago

Pastebin-Link

I was unable to submit the log-entries to this reply, so please use the pastebin link above.

I have tested Chrome 18, FF 11, IE 9 ... different browsers, same result as described in my previous posts.

best regards,
SInCE

Posts:

Registered:

» » » » » Menu doesn

Posted: 4 weeks and 6 days ago

flowplayer("flowplayer1", "sys/flowplayer/flowplayer.commercial-3.2.9.swf",
	{
		key: 'keyvalue',

		canvas:	{
			backgroundColor: '#000000',
			backgroundGradient: 'none'
		},

		log: { level: 'debug', filter: 'org.flowplayer.menu.*, org.flowplayer.bitrateselect.*, org.flowplayer.net.*' },

        onStart: function() {
            console.log("onStart");
        },

		clip: {
			provider: 'rtmp',
			autoPlay: false,
			scaling: 'fit',
			live: 'true',
            urlResolvers: 'brselect',

            onUpdate: function() {
                console.info("something changed...");
            },

            bitrates: [
				{ url: "rtmp://serverurl.com/live/mp4:since", width: 480, bitrate: 720, label: "Best Quality", sd:true , isDefault: true },
				{ url: "rtmp://serverurl.com/live/mp4:since_360p", width: 480, bitrate: 360, label: "360p", sd:true  },
            ]  
		},

		plugins: {

            menu: {
	            url: 'sys/flowplayer/flowplayer.menu-3.3.0.swf',
	            items: [
	                // you can have an optional label as the first item
	                // the bitrate specific items are filled here based on the clip's bitrates
	                { label: "select bitrate:", enabled: false }
	            ]
	        },

            brselect: {
                url: "sys/flowplayer/flowplayer.bitrateselect-3.2.9.swf",
                menu: true,     

                // show the selected file in the content box. These functions are
                // here just for demonstartion purposes.
                onStreamSwitchBegin: function(newItem, currentItem) {
                    console.info("Will switch to: " + newItem.streamName + " from " + currentItem.streamName);
                },

                onStreamSwitch: function(newItem) {
                    console.info("Switched to: " + newItem.streamName);
                }

            },

			rtmp: {
				url: 'sys/flowplayer/flowplayer.rtmp-3.2.9.swf'
			},

			controls: {
				url: 'sys/flowplayer/flowplayer.controls-3.2.9.swf',
				time: false
			},

            content: {
                url: 'sys/flowplayer/flowplayer.content-3.2.8.swf',
                top: 0, left: 0, width: 400, height: 150,
                backgroundColor: 'transparent', backgroundGradient: 'none', border: 0,
                textDecoration: 'outline',
                html: "<p>test</p>",
                style: {
                    body: {
                        fontSize: 14,
                        fontFamily: 'Arial',
                        textAlign: 'center',
                        color: '#ffffff'
                    }
                }
            }
		}
	}

Posts:

Registered:

» » » Menu doesn

Posted: 4 weeks and 6 days ago

It may be not the right place to ask that, but hopefully I will get an answer :)

Now had some time to try it. For my application I wanted to use it for rtmp livestreams. If I choose a different bitrate, the clip url will be changed to the chosen one from the menu by the bitrateselect Plugin, but the new clip url is never loaded, just assigned as already mentioned (onStreamSwitchBegin and onStreamSwitch are fired never).
If I pause and resume the stream, then the url which has been set before will be used.

Is there any way to force the plugin to do the switching?

Posts:

Registered:

» » » Menu doesn"t work on "Use a menu for bitrate selection" demo

Posted: 4 weeks and 6 days ago

thank you for your fast response! I will try it, as soon as possible.

best regards,
SInCE

Posts:

Registered:

» Menu doesn"t work on "Use a menu for bitrate selection" demo

Posted: 5 weeks ago

Hello,

I tried to implement it in my player, but I have the same problem. All given bitrates are listed, but I am unable to choose one of them. Every item seems to be disabled.

I am sure, that I implemented it as described in documentation, so on "it's a bug, not a feature" :)

best regards,
SInCE

Posts:

Registered:

compile flowplayer with windows 7

Posted: Dec 2, 2011

Hi all,

this is the first time compiling the flowplayer by myself. I have done everything, which I have to do according to the tutorial, but I am still unable to build a working flowplayer swf.

The development environment should fine: (I am using Windows 7 64 bit, German)

Console output:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:UsersSInCE>ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

C:UsersSInCE>javac -version
javac 1.7.0_01

C:UsersSInCE>cd flex3sdkin

C:UsersSInCEflex3sdkin>mxmlc
Adobe Flex Compiler (mxmlc)
Version 4.6.0 build 23201
Copyright (c) 2004-2011 Adobe Systems, Inc. Alle Rechte vorbehalten.

mxmlc [Optionen] [defaultVar]

So on, I checked out all needed folders as described in the tutorial, edited the build.properties at "flowplayer/flowplayer.core" and run ant:

Console Output:
C:UsersSInCEflowplayerflowplayer.core>ant
Buildfile: C:UsersSInCEflowplayerflowplayer.coreuild.xml

check-uptodate:
     [echo] main up-to-date: ${uptodate.main}
     [echo] main up-to-date: ${uptodate.commercial}
     [echo] lib up-to-date: ${uptodate.lib}

build-lib:

prepare:

compile-lib:
     [exec] Konfigurationsdatei C:UsersSInCEflex3sdkframeworksflex-config.x
ml wird geladen
     [exec] C:UsersSInCEflowplayerflowplayer.coresrcactionscriptorgflowp
layerconfigConfigParser.as: Error: A reference with multiple name can't be unique resolved. JSON (aus C:UsersSInCEflex3sdkframeworkslibspl
ayer11.1playerglobal.swc(JSON, Walker)) and com.adobe.serialization.json:JSON
(aus C:UsersSInCEflowplayerflowplayer.corelibcorelibsrccomadobeseriali
zationjsonJSON.as) are available.
     [exec]
     [exec] C:UsersSInCEflowplayerflowplayer.coresrcactionscriptorgflowp
layerconfigConfigParser.as(35): column: 20 Error: Try to access an undefined property JSON.
     [exec]
     [exec]             return JSON.decode(config);
     [exec]                    ^
     [exec]
     [exec] C:UsersSInCEflowplayerflowplayer.coresrcactionscriptorgflowp
layerconfigConfigParser.as(40): column: 55 Error: Try to access an undefined property JSON.
     [exec]
     [exec]             var configObj:Object = config is String ? JSON.decode(co
nfig as String) : config;
     [exec]                                                       ^
     [exec]

BUILD FAILED
C:UsersSInCEflowplayerflowplayer.coreuild.xml:235: The following error occ
urred while executing this line:
C:UsersSInCEflowplayerflowplayer.coreuild.xml:241: exec returned: 3

Total time: 3 seconds


Translations:
Because I am using a german windows version, I translated the error messages.

Anssi or anyone else:
Do you get the same error or something similar some time? Hopefully someone can help me! thx