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

Your preferred username that is used when logging in.

Viral Plugin Created May 10, 2010

This thread is solved

Views: 3763     Replies: 16     Last reply May 31, 2010  
You must login first before you can use this feature

undercash
http://www.pokercast.tv/

Posts: 55

Registered:
Feb 26, 2009

Viral Plugin

Posted: May 10, 2010

Hi

I see that the "false" value (to disable one of the viral plugin section like mail or embed) doesn't work.

I get a "300 : player initialization failed error: 1009"

ex of my code:

         viral: {
			url: '/flowplayer/flowplayer.viralvideos-3.2.0.swf',
                        email: false,
			embed: true
		}

undercash
http://www.pokercast.tv/

Posts: 55

Registered:
Feb 26, 2009

» Viral Plugin

Posted: May 13, 2010

Reply to: Viral Plugin, from undercash
of course, if I put 'true' instead of 'false' then it works

pfr123

Posts: 6

Registered:
May 7, 2010

Same

Posted: May 13, 2010

Reply to: » Viral Plugin, from undercash
Same problem here, so bugggyy

pfr123

Posts: 6

Registered:
May 7, 2010

Solved!

Posted: May 13, 2010

Reply to: Viral Plugin, from undercash
in the

org.flowplayer.viralvideos.iconBar.as

you can find the error, because the embedIcon position is calculated by the emailIcon.y which in case is doesnt exist :D

As well as a lot of such errors in ViralVideos.as, see below for the fixes :)

Wonder if anyone here would ever used try...catch blocks.

You may want to modify and recompile this plugin, I had to.
Someone please FIX this in the repo,

Cheers


        private function createIcons():void {
			
			var ny:Number = 0;
			
            if (_config.email) {
                _emailIcon = new EmailIcon(_config.iconButtons, _player.animationEngine);
                addChild(_emailIcon);
            }
			
			log.debug("icon bar props " + _config.embed);
            if (_config.embed) {
                _embedIcon = new EmbedIcon(_config.iconButtons, _player.animationEngine);
                addChild(_embedIcon);
				
				ny = _emailIcon ?  _emailIcon.y + _emailIcon.height + 5 : 0
                _embedIcon.y = ny;
				
            }
            if (_config.share) {
                _shareIcon = new ShareIcon(_config.iconButtons, _player.animationEngine);
                addChild(_shareIcon);
				ny = _embedIcon ?  _embedIcon.y + _embedIcon.height + 5 : ny
                _shareIcon.y = ny;
            }
            var props:DisplayProperties = _config.iconDisplayProperties;
            props.setDisplayObject(this);
            log.debug("icon bar props " + props.dimensions);
            _player.addToPanel(this, props);
        }

        override protected function onResize():void {
            log.debug("onResize() " + width + " x " + height);
            var horizontal:Boolean = width > height;

			var ny:Number = 0;
			var nx:Number = 0;
			
			nx = _emailIcon ? _emailIcon.x + _emailIcon.height + 5 : 0;
			ny = _emailIcon ? _emailIcon.y + _emailIcon.height + 5 : 0;
			
            if (horizontal) {
                resizeIcon(height);
                _embedIcon.x = nx;
                _shareIcon.x = _embedIcon ? _embedIcon.x + _embedIcon.width + 5 : nx;
            } else {
                resizeIcon(width);
                _embedIcon.y = ny;
                _shareIcon.y = _embedIcon ? _embedIcon.y + _embedIcon.height + 5 : ny;                
            }
        }

        private function resizeIcon(dim:Number):void {
			
			try{
            	_embedIcon.height = _embedIcon.width = dim;
			}catch(e:Error){};
			
			try{
            	_emailIcon.height = _emailIcon.width = dim;
			}catch(e:Error){};
			
			try{
            	_shareIcon.height = _shareIcon.width = dim;
			}catch(e:Error){};
        }

        public function onEmail(listener:Function):void {
			try{
            	addIconClickListener(_emailIcon, listener);
			}catch(e:Error){}
        }

        public function onEmbed(listener:Function):void {
			try{
            	addIconClickListener(_embedIcon, listener);
			}catch(e:Error){}				
        }

        public function onShare(listener:Function):void {
			try{
				addIconClickListener(_shareIcon, listener);
			}catch(e:Error){}
        }

        private function onPlayerLoad(event:PlayerEvent):void {
            _playerEmbed = new PlayerEmbed(_player, _model.name, stage, stage.loaderInfo.parameters["config"]);
            _config.playerEmbed = _playerEmbed;

            createViews();
            initializeTabProperties();
            createTabs();

            _autoHide = new AutoHide(null, _config.autoHide, _player, stage, _iconBar);
            _autoHide.hide();
            _autoHide.onShow(onButtonsShow);
            _autoHide.start();

            hideViews();
			if (_emailView){
            	setActiveTab("Email", false);
            	_emailView.show();
			}
			if (_embedView){
            	setActiveTab("Embed", false);
				_embedView.show();
			}
			if (_shareView){
            	setActiveTab("Email", false);
				_shareView.show();
			}
        }


smallvolume

Posts: 2

Registered:
May 13, 2010

» Viral Plugin

Posted: May 14, 2010

Reply to: Viral Plugin, from undercash
var props:DisplayProperties = _config.iconDisplayProperties;
props.setDisplayObject(this);
log.debug("icon bar props " + props.dimensions);
_player.addToPanel(this, props);

streamingvideo.pro
French multimedia developper

Posts: 60

Registered:
Dec 18, 2008

» » Viral Plugin

Posted: May 14, 2010

Reply to: » Viral Plugin, from smallvolume
Hello,

Can i have a correct version please ?

tech[]instantt.com

Thx

demimurych

Posts: 81

Registered:
Jan 22, 2010

» Viral Plugin

Posted: May 20, 2010

Reply to: Viral Plugin, from undercash
whaite for solution

Thomas Dubois
thomas_at_bigsool.com

Posts: 68

Registered:
Feb 1, 2010

» » Viral Plugin

Posted: May 26, 2010

Reply to: » Viral Plugin, from demimurych
Hey,

You can find the fixed version here :
https://flowplayer-releases.s3.amazonaws.com/info/dist.html

be sure to use the latest player and the latest viral plugin.

Cheers,
Thomas

Matth

Posts: 27

Registered:
May 17, 2010

woo!

Posted: May 26, 2010

Reply to: » » Viral Plugin, from blaaaaaaah
Thomas, thanks for the fixier version! The ability to turn off embed is now working!! Very thankful for your quick bugfixin'.

Matth

Posts: 27

Registered:
May 17, 2010

and never mind

Posted: May 26, 2010

Reply to: woo!, from xefned
never mind that bug I just posted (and deleted) in this thread. it seems to have cleared itself up. maybe a browser cacheing problem or something.

undercash
http://www.pokercast.tv/

Posts: 55

Registered:
Feb 26, 2009

» and never mind

Posted: May 27, 2010

Reply to: and never mind, from xefned
you shouldn't have deleted I think I have the same issue as you had ( but can't remember precisely)

http://code.google.com/p/flowplayer-core/issues/detail?id=89&can=1

Matth

Posts: 27

Registered:
May 17, 2010

oh sorry

Posted: May 27, 2010

Reply to: » and never mind, from undercash
My problem was that I disabled both "embed" and "email" and left only "share." It worked but the share icon never disappeared when I "unhovered" (if that's a word) with my mouse.

I witnessed this behavior in Firefox/Mac, Firefox/PC, and IE7/PC. Then I reported it in this thread.

Then five minutes later it was working fine in all three and I don't remember changing anything, although I may have made minor js code changes which hadn't gone live yet.

So for me, it's fixed. I can't duplicated the problem.

But I can tell you how I was finally able to hide the embed and email tabs:

Update everything!

It did not work until I updated the js from version 3.1.4 to 3.2.0. So:

* Update js to flowplayer-3.2.0.min.js

* update player to flowplayer-3.2.2-dev2.swf

* update content plugin to: flowplayer.content-3.2.0.swf (might not be necessary)

* update viral plugin to flowplayer.viral-3.2.1-dev.swf

Also you may have to include jquery. My player breaks when I remove jquery, although previous versions of flowplayer (3.1.5) worked without jquery. This may have something to do with my selector syntax using the content plugin and might not be necessary in your case. YMMV. FYI - I'm using jquery version jquery-1.3.2.min.js.

Good luck!

undercash
http://www.pokercast.tv/

Posts: 55

Registered:
Feb 26, 2009

» oh sorry

Posted: May 27, 2010

Reply to: oh sorry, from xefned
yea I have everything up to date.

"But I can tell you how I was finally able to hide the embed and email tabs:"

yes me too now (after removing analytics) but can't get share and embed without mail, so I assume fix is not complete.

also, try the plugin without disabling anything, I doesnt works for me

Matth

Posts: 27

Registered:
May 17, 2010

all combos working on my end now, post a link if still not success

Posted: May 27, 2010

Reply to: » oh sorry, from undercash
Share and embed without mail works for me too.

Maybe it's the order in which you're calling them (although it shouldn't matter.) No need to use embed: true if you want embed since that's by default. Try this:

viral: {
	url: 'flowplayer.viral-3.2.1-dev.swf', 
		email: false,		
			share: {
				description: 'your description.', livespaces: false, digg: false, bebo: false, orkut: false
			}
		}

undercash
http://www.pokercast.tv/

Posts: 55

Registered:
Feb 26, 2009

» all combos working on my end now, post a link if still not success

Posted: May 27, 2010

Reply to: all combos working on my end now, post a link if still not success, from xefned
no it doesn't works
maybe it s because i m using pseudo streaming plug

yes I took away pseudostreaming plugin and it's all fine... but ofc I need a lot more the streaming plugin than the viral

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » all combos working on my end now, post a link if still not success

Posted: May 31, 2010

Reply to: » all combos working on my end now, post a link if still not success, from undercash
Fixed the compatibility issue with pseudostreaming (and with other streaming plugins). Fixed version here:https://flowplayer-releases.s3.amazonaws.com/info/dist.html

Note following when configuring pseudostreaming:

You should take care when configuring the url values for these plugins in the originating site (pseudostreaming, rtmp). Use either full absolute URLs or URLs that work relative to the location of the player SWF. Full urls get copied to the embed code directly and they will always work in the external site.

Relative URLs are trickier: The url where the player loads the plugin is constructed by taking the location from where the player SWF got loaded and using this location for the plugins. This arrangement works fine if the originating site holds the player SWF and all plugin SWFs in the same path, for example under /swf (like inhttp://flowplayer.org/swf).

undercash
http://www.pokercast.tv/

Posts: 55

Registered:
Feb 26, 2009

» » » all combos working on my end now, post a link if still not success

Posted: May 31, 2010

Reply to: » » all combos working on my end now, post a link if still not success, from Anssi
thanks a lot.

the new plugin seems to be working fine,(the viral) and your tip about the absolute url solve my problem with embed code since the flowplayer was integrated in the cms using such a script as:

<?php echo $mosConfig_live_site?>/flowplayer/flowplayer-3.2.2-dev2.swf

it wasn't working obviously