Ah I see great stuff thanks, I'll give that a go!
Forum user: eb_dev
Basic information
| Registered | Jan 29, 2010 |
| Last login | May 20, 2010 |
| Forum posts | 24 |
| Direct URL | http://www.flowplayer.org/forum/users/22250 |
Latest forum posts
Hi,
How do I pass data / variables to a plugin on setup? I know I could use the following after setup:
But think the following would be better:
Am I right in thinking this and is this possible?
Thanks,
eb_dev
How do I pass data / variables to a plugin on setup? I know I could use the following after setup:
[External]
public function set cuePoints(cuePoints:Array):void {
_cuePoints = cuePoints;
}
But think the following would be better:
flowplayer("player", "flowplayer-3.2.0-dev.swf", {
plugins: {
carousel: {
url: 'flowplayer.carousel.swf'
cuePoints: cuePoints
}
}
});
Am I right in thinking this and is this possible?
Thanks,
eb_dev
I have the same problem, have seen this thread about cuepoints. Supposedly going to be fixed in next version, is this true annsi?
Had a good read through then tried the dev version which was supposed to fix it (i think) but it didn't work either. I'll create a new post on the forum for it. Thanks for all your help!
I had read through it but not spotted the events information so thanks for that.
I've managed to get the metadata event listener working but the info property of the event is null, this is supposed to contain the cuePoints array amongst other things. Have you any idea why?
Here is my code:
Output:
Thanks,
eb_dev
I've managed to get the metadata event listener working but the info property of the event is null, this is supposed to contain the cuePoints array amongst other things. Have you any idea why?
Here is my code:
private function onFirstClipEvents(event:ClipEvent):void
{
if (event.eventType == ClipEventType.METADATA)
{
trace("metadata recieved"+event.info);
}
}
Output:
metadata recieved[ClipEvent type="onMetaData" info=null]
Thanks,
eb_dev
Hi Darrel thanks for your reply.
Yes maybe I have been a bit unclear, basically I want to listen for the metadata on FLVs through the player. Once I have that metadata I will use the cuepoints information to create a chapter menu system.
In a normal flash swf I'd add an eventlistener to the FLVPlayback component like this:
Is there a way of doing this in flowplayer?
Yes maybe I have been a bit unclear, basically I want to listen for the metadata on FLVs through the player. Once I have that metadata I will use the cuepoints information to create a chapter menu system.
In a normal flash swf I'd add an eventlistener to the FLVPlayback component like this:
FLVPlayer.addEventListener(MetadataEvent.METADATA_RECEIVED,onMetadataRecieved);
Is there a way of doing this in flowplayer?
Hi,
I'm trying to create a carousel style menu system based on the cuepoints of the movie that is loaded. My problem is I don't know how to access the movie through the plugin interface to attach an event listener to it. I've looked through all the documentation but found nothing. Can someone shed some light on this please?
Thanks,
eb_dev
I'm trying to create a carousel style menu system based on the cuepoints of the movie that is loaded. My problem is I don't know how to access the movie through the plugin interface to attach an event listener to it. I've looked through all the documentation but found nothing. Can someone shed some light on this please?
Thanks,
eb_dev
Ok great, in that case i'll take your word for it and get cracking! Thanks again.
Thanks Chetan and especially for your speedy reply, that's working fine now. Am I right in thinking that logConfig.level defines which method you need to use to output the debug messages? So for logConfig.level = 'info' you have to use log.info() ?
Also is there anywhere apart from the api docs where we can get more detailed info on creating flash plugins? They're a bit sparse on implementation details!
Also is there anywhere apart from the api docs where we can get more detailed info on creating flash plugins? They're a bit sparse on implementation details!
I've compiled a plugin to test the log, it compiles but when I try to include it in my player it doesn't finish loading. I just get the following at the end of the console log:
2[LOG] time 12:24:21.495 :: org.flowplayer.view::PluginLoader : load in progress
What am I missing?
Page include code:
Thanks,
eb_dev
2[LOG] time 12:24:21.495 :: org.flowplayer.view::PluginLoader : load in progress
What am I missing?
package com.company.flowplayer.logtests
{
import flash.display.Sprite;
import org.flowplayer.model.Plugin;
import org.flowplayer.util.Arrange;
import org.flowplayer.model.PluginModel;
import org.flowplayer.view.Flowplayer;
import org.flowplayer.util.Log;
import org.flowplayer.util.LogConfiguration;
public class LogTest extends Sprite implements Plugin
{
private var _model:PluginModel;
private var _log:Log = new Log(this);
public function LogTest()
{
var logConfig:LogConfiguration = new LogConfiguration();
logConfig.level = "error";
Log.configure(logConfig);
}
public override function set width(newWidth:Number):void
{
super.width = newWidth;
arrangeChildren();
}
public override function set height(newHeight:Number):void
{
super.width = newHeight;
arrangeChildren();
}
private function arrangeChildren():void
{
}
public function getDefaultConfig():Object
{
return { top: 10, left: 10, width: 200, height: 200, opacity: 1 };
}
public function onConfig(configProps:PluginModel):void
{
_model = configProps;
}
public function onLoad(player:Flowplayer):void
{
_model.dispatchOnLoad();
_log.debug("Test debug");
}
}
}
Page include code:
<script>
flowplayer("player", "flowplayer.swf", {
log: { level: 'debug'} ,
plugins: {
logtest: {
url: 'flowplayer.logtest.swf'
}
}
});
</script>
Thanks,
eb_dev
Anyone? Really need to know the answer to this? Can't find the information anywhere in the docs!
Thanks,
eb_dev
Thanks,
eb_dev
You have to change the executable path in the build.properties file to where your flex executables are. The relevant build.properties files are located in the flowplayer.devkit and flowplayer.core folder. See the development tutorial for more info:http://flowplayer.org/documentation/developer/development-environment.html
More compiling tips:http://flowplayer.org/forum/2/10304
More compiling tips:http://flowplayer.org/forum/2/10304
Yes just about thanks, still got load's of other issues to work out though, if you can help with them I'd be really grateful!
Issues:
http://flowplayer.org/forum/5/36258
http://flowplayer.org/forum/5/36184
Issues:
http://flowplayer.org/forum/5/36258
http://flowplayer.org/forum/5/36184
How do you use the org.flowplayer.util.Log class? I've tried instantiating it will the plugin as the owner reference abnd it compiles but doesn't work. I've also tried using it as a method in the form log.debug("Message") as I have seen in other classes but that produces a compile error.
Anyone know how to fix this? It's very urgent.
Thanks,
eb_dev
Anyone know how to fix this? It's very urgent.
Thanks,
eb_dev
Hi Chetan, thanks for your reply, good to know im doing it properly!