PDA

View Full Version : Video Plugin


Dewdan
10-08-2009, 10:57 PM
Hi everybody,

I have been away for quite a while doing some other things but now I am back and hope to be helpful whenever I can.

I have developed a video player and now I am trying to setup a plug-in that would make it work as it should with the panoPlayer.

I am encountering quite a few problems.
The first test under development (http://www.net-work-s.com/testFlashVideo/)
It will load the pano and the video on top since i haven't been hable to make it invisible onLoad.

The player it self works fine, but interaction with the FPP is quite another thing:
1. I try using LocalConnection and it works well to open the video player from the "video Button", but couldn't get it to close from the actual video player "close X"

2.I tried to uploaded it as a plugin into the FPP, and now i can use the "close X" from the video player itself but can't seem to access the player from the pano hotspots "video Button" which now just loads pano 99 which is a very light black image.

Here is some essential code so maybe someone could enlighten me because my eyes are dropping out having read most of the threads i have missed since i did my first pano in Helsinki.

From flash side:
function setAttribute (name:String, value:String, time:String=null, type:String=null, onDoneFunction:String=null, onInterruptFunction:String=null, relative:int=0) {
if (name.toLowerCase() == "video"){
if (value.toLowerCase() == "playvideo"){
openVideo();
}
if (value.toLowerCase() == "stopvideo"){
closeVideo();
}
}
}

Or trying to execute pano from flash with:
hotspots.execute("loadPano(?panoName=99&pan=1&tilt=-50&zoom=0.61&alt=TEST,1000,stripes)");
Nothing happens.
On the XML side i am trying to call that with:

onPress="external.loadAS3.video=playvideo;

All this are just not working.

In the past I have work mainly with LocalConnection but actually never been able to call any action from XML except to scale or render invisible (own PANO functions.


You can find the xml from The xml file (http://www.net-work-s.com/testFlashVideo/oceanClub.xml)

Tomorrow I try for the 4th day to figure out my mess :-)

Thanks

allSaints
10-08-2009, 11:11 PM
Hi Dewdan,

I didn't have time to look very closely at your problem, but I quickly noticed:
onPress="external.loadAS3.video=playvideo;

Have you tried writing:
onPress="external.loadas3.video=playvideo;

that is, plugin name in lower case?


Tommy

Dewdan
10-09-2009, 12:14 PM
Now I understand why you are so popular :cool:

I have been testing for 2 full days all kind of changes, and couldn't get it to work and somehow I knew it was in the XML file, but it never cross my mind to switch to lowercase. This is so typical.

Now i can continue fine tuning the player.

Thanks Tommy.

Jag älskar Stockholm
Eniro 0 100 100! How can i help you? :D

allSaints
10-09-2009, 12:38 PM
I have been testing for 2 full days all kind of changes, and couldn't get it to work and somehow I knew it was in the XML file, but it never cross my mind to switch to lowercase.

Yeah, that one is a tough nut. I learned that myself, just like you - the hard way...

Dewdan
10-09-2009, 03:32 PM
So, here videoPlugin 0.2 (http://www.net-work-s.com/testFlashVideo/)

Some feed back?

allSaints
10-09-2009, 05:33 PM
Dewdan,

I like it very much!

It's snappy and responsive, and also very easy to handle. And I think it looks good too!

Are there any options - like video scaling, repetitions or positioning?


Tommy

Dewdan
10-11-2009, 08:23 PM
I am writing an XML file that will determine size, colors and the amount of movies with their URL addresses, the set of movies can be playing automatically on load., But i chose to make it stop so it doesn't play on load but it is buffering the first movie in the back..

Repetition? what did you mean by that?

Dewdan
02-11-2010, 11:08 AM
Sorry guys, it has take me longer then I though.

So here is the latest version.
Video Plugin v. 0.3 (http://www.net-work-s.com/testFlashVideo/)

Please send some feed back.

This player is static size 665px X 413px

movies are loaded from an XML file where you can set color aswell.

At the moment it is not resizable.

Trying to find time to get it better.

jordi
02-11-2010, 03:17 PM
can we use it?

__________________
visita3d.com (http://www.visita3d.com/)

Dewdan
02-16-2010, 01:00 PM
I first want to make sure it's working properly.
This specific player has been made for a client of mine, but once i am sure it's all running well, I am planning to make a version for sale.

jordi
02-16-2010, 03:56 PM
Ok, I look forward it, hope it's not so expensive...

Can It work only for a single video ?