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

Your preferred username that is used when logging in.

Sperate LinkUrl For Canvas Created Feb 23, 2009

This thread is solved

Views: 5267     Replies: 12     Last reply Nov 22, 2011  
You must login first before you can use this feature

Liam Gooding
Custom swf skins, custom swf plugins, custom JS plugins, video CMS - http://goodingsmedia.com

Posts: 352

Registered:
Dec 16, 2008

Sperate LinkUrl For Canvas

Posted: Feb 23, 2009

Hi Guys,

I know linkUrl can be defined for a clip (and commercial logo) but is it possible to add it as a property to canvas?

I'm thinking as a way to incorporate video skins (which I currently create with some complicated CSS/XHTML into my flash player. This would also mean I could include my advertisements on off-site embedded videos, as the unit is in one nice flash container.

Not sure how much of a change it'd be, but I'd throw up a nice demo to show how it can be used in an advertisement context as a thankyou :)

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» Sperate LinkUrl For Canvas

Posted: Feb 23, 2009

Reply to: Sperate LinkUrl For Canvas, from LiamGooding
Would you have a large canvas and the video screen would take only a part of it? So the ad would be shown on the canvas surrounding the video?

This should not be a big thing to add. I'll try to put it up already to 3.0.6 that we are planning to ship tomorrow or on Wednesday.

Liam Gooding
Custom swf skins, custom swf plugins, custom JS plugins, video CMS - http://goodingsmedia.com

Posts: 352

Registered:
Dec 16, 2008

» » Sperate LinkUrl For Canvas

Posted: Feb 23, 2009

Reply to: » Sperate LinkUrl For Canvas, from Anssi
Hi Anssi,

Yes thats exactly the idea. Similiar to what you have here:

http://flowplayer.org/demos/skinning/flash-background.htm

But using it as an advertisement. If you take a look here:

http://www.heavy.com/video/64699 (or any videos on that site) You'll see "video skins" in action. It's where I found the inspiration to start selling the ads on FightNightLive.co.uk, (though it's still down due to my adserver getting fubar'd)

It'd be awesome if you could get this into 3.0.6 mate!

Cheers

Liam Gooding
Custom swf skins, custom swf plugins, custom JS plugins, video CMS - http://goodingsmedia.com

Posts: 352

Registered:
Dec 16, 2008

» » » Sperate LinkUrl For Canvas

Posted: Feb 26, 2009

Reply to: » » Sperate LinkUrl For Canvas, from LiamGooding
I'm using the 3.0.6 but using:


canvas: {
    linkUrl: 'http://google.com'
}

Doesn't seem to be having any affect. Has the property been called something other than linkUrl?

Demo:http://www.fightnightlive.co.uk/show-15/ringmasters-2008-87kg-to-95kg/

OR

Flowplayer forum example

HTML setup for the player

<!-- include latest Flowplayer javascript file -->
<script language="javascript" src="path/to/flowplayer-3.2.6.js"></script>

<!-- player container with optional splash image -->
<a href="path/to/video_file" id="playerContainer">
	<img src="path/to/splash_image" />
</a>


JavaScript coding

Following script will install Flowplayer into our player container


<script language="javascript">
// our custom configuration is given in third argument
flowplayer("playerContainer", "path/tohttp://releases.flowplayer.org/swf/flowplayer-3.2.7.swf",{
canvas : {
    linkUrl: 'http://Google.com',
    width:425, height: 298
},

screen : {
    width:300, height: 250, top: 10, left:62, 
    backgroundColor: '#222222'
}
});
</script>


Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » Sperate LinkUrl For Canvas

Posted: Feb 26, 2009

Reply to: » » » Sperate LinkUrl For Canvas, from LiamGooding
Ok :-( Seems like this poorly tested - it's only working with a naked canvas now and when the click goes to the background image it fails to open the link.

Can you please try with this version.

Liam Gooding
Custom swf skins, custom swf plugins, custom JS plugins, video CMS - http://goodingsmedia.com

Posts: 352

Registered:
Dec 16, 2008

» » » » » Sperate LinkUrl For Canvas

Posted: Feb 26, 2009

Reply to: » » » » Sperate LinkUrl For Canvas, from Anssi
Hi Anssi,

Cheers for the fast response! It now works, however it's still not showing a 'pointer' cursor, so the user has no idea it's a clickable link.

Tested on FF4/Safari4 OSX

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » » Sperate LinkUrl For Canvas

Posted: Feb 26, 2009

Reply to: » » » » » Sperate LinkUrl For Canvas, from LiamGooding
This has to be redesigned a bit. I think the link only makes sense when there is a backgroundImage and the cursor will be a hand cursor only when over the image. I'm implementing this now.

And this will be available also for the Content and Controlbar plugins since they inherit from the same superclass.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » » » Sperate LinkUrl For Canvas

Posted: Feb 26, 2009

Reply to: » » » » » » Sperate LinkUrl For Canvas, from Anssi
This one creates a hand cursor and associates the link to the background image: 3.0.7-dev.

It's possible to use the linkUrl (and linkWindow) on the canvas, and on the content and controlbar plugins. The link is associated to the backgroundImage, and if there is no background image it's associated to the whole object (either canvas/content/controls).

Liam Gooding
Custom swf skins, custom swf plugins, custom JS plugins, video CMS - http://goodingsmedia.com

Posts: 352

Registered:
Dec 16, 2008

» » » » » » » » Sperate LinkUrl For Canvas

Posted: Feb 26, 2009

Reply to: » » » » » » » Sperate LinkUrl For Canvas, from Anssi
Working like a charm :)

Any chance of getting this dev into the commercial version? I need to add a license to that domain to get rid of the FP logo in the bottom left.

Cheers again. Do you want me to put a demo page together or shall I leave it to Tero?

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

flowplayer-3.0.7.swf

Posted: Feb 26, 2009

Reply to: » » » » » » » » Sperate LinkUrl For Canvas, from LiamGooding
I just released 3.0.7 just to fix this.

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» flowplayer-3.0.7.swf

Posted: Feb 26, 2009

Reply to: flowplayer-3.0.7.swf, from Anssi
thx for all the upgrades!

flowplayer.controls-3.0.4.swf in the 3.0.7 zip download differs from the one in the 3.0.6 zip. I guess its version number should have been bumped up.