Macromedia Flash Server - Dynamic Playlist with XML generated thumnails

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2006 > Dynamic Playlist with XML generated thumnails





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dynamic Playlist with XML generated thumnails
Asai

2006-04-24, 7:59 am




I've been working with the newly updated Lisa Larsen article in the
FMS Dev Center. She gives an example of generating a playlist
dynamically with and XML file and custom component. I'm trying to
take this and adapt it to a site I'm currently working on. The
problem is is that it only seems to work half the time. That is, the
thumbnails only render one out of every three four times and they're
all inconsistent. It also seems that the thing is causing FMS to
crash sometimes. When I point the XML file to my local streams, it
seems to jam up and stop delivering any stream, even though the
console says it's working fine. Does anyone have any experience with this?

thanks guys


________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

John Rauchert

2006-04-27, 6:47 am

We have been trying to use it for a piece we are doing as well and have
run into some problems.

The first issue was that it was opening 5 connections automatically per
user and then fluctuated between 6 and 7 connections when playing back
the video.

After awhile the connections on the video clips would drop out
unexpectedly (similar to what someone was reporting earlier).

We removed the thumbnail functionality and that cleaned up our number of
connections, but we are still experiencing connections dropping suddenly
on vide clips.

Any suggestions on what might be happening would be appreciated. I have
not yet gotten around to checking the log files but will do so this
week.

The original article is here.

http://www.macromedia.com/devnet/fl..._player.html=20

Thanks in advance

-----Original Message-----
Message: 8
Date: Sun, 23 Apr 2006 19:31:52 -0700
From: Asai <Asai-GXSq7f5MMRaMoCwsdGbDa77nWZmokUtd@public.gmane.org>
Subject: [FlashComm] Dynamic Playlist with XML generated thumnails
To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Message-ID:
<6.2.3.4.2.20060423192016.03b0ceb0- C5v0Q9nL4ij58NQu0lqr2OOqBgL1YeyqHZ5vskTn
xNA@public.gmane.org>
Content-Type: text/plain; charset=3D"us-ascii"; format=3Dflowed




I've been working with the newly updated Lisa Larsen article in the=20
FMS Dev Center. She gives an example of generating a playlist=20
dynamically with and XML file and custom component. I'm trying to=20
take this and adapt it to a site I'm currently working on. The=20
problem is is that it only seems to work half the time. That is, the=20
thumbnails only render one out of every three four times and they're=20
all inconsistent. It also seems that the thing is causing FMS to=20
crash sometimes. When I point the XML file to my local streams, it=20
seems to jam up and stop delivering any stream, even though the=20
console says it's working fine. Does anyone have any experience with
this?

thanks guys

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

David Simmons

2006-04-27, 6:47 am

I played with that example a while back and found it buggy as well. I
don't remember all the details, but some of the stuff I recall was:

* adding a NetConnection onStatus handler (really a must for any
FMS app, you'll never figure out what's happening otherwise)
=09
* adding trace() statements in the onStatus events for streams
as well as the new NetConnection handler.
=09
* cleaning up some really odd ActionScript (like the
ns.connect() call, an non-existing function)

* adding a "snapshottime" attribute to the file XML, as the
start frame of most videos is a pretty useless thumbnail (how many black
screens or copyright notices do you want to see?)

I think the overall concept of that example is good, but I have to admit
I was disappointed at the quality of the code, lack of testing and how
unreliable the app ran. Our examples and technical articles should work
better.

I sorry but I can't post the fixed source as it's morphed into another
project and would take too much time to extract.

- Dave Simmons
Adobe Engineering



-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of John
Rauchert
Sent: Monday, April 24, 2006 9:39 AM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] RE: Dynamic Playlist with XML generated thumnails

We have been trying to use it for a piece we are doing as well and have
run into some problems.

The first issue was that it was opening 5 connections automatically per
user and then fluctuated between 6 and 7 connections when playing back
the video.

After awhile the connections on the video clips would drop out
unexpectedly (similar to what someone was reporting earlier).

We removed the thumbnail functionality and that cleaned up our number of
connections, but we are still experiencing connections dropping suddenly
on vide clips.

Any suggestions on what might be happening would be appreciated. I have
not yet gotten around to checking the log files but will do so this
week.

The original article is here.

http://www.macromedia.com/devnet/fl..._player.html=20

Thanks in advance

-----Original Message-----
Message: 8
Date: Sun, 23 Apr 2006 19:31:52 -0700
From: Asai <Asai-GXSq7f5MMRaMoCwsdGbDa77nWZmokUtd@public.gmane.org>
Subject: [FlashComm] Dynamic Playlist with XML generated thumnails
To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Message-ID:
<6.2.3.4.2.20060423192016.03b0ceb0- C5v0Q9nL4ij58NQu0lqr2OOqBgL1YeyqHZ5vskTn
xNA@public.gmane.org>
Content-Type: text/plain; charset=3D"us-ascii"; format=3Dflowed




I've been working with the newly updated Lisa Larsen article in the=20
FMS Dev Center. She gives an example of generating a playlist=20
dynamically with and XML file and custom component. I'm trying to=20
take this and adapt it to a site I'm currently working on. The=20
problem is is that it only seems to work half the time. That is, the=20
thumbnails only render one out of every three four times and they're=20
all inconsistent. It also seems that the thing is causing FMS to=20
crash sometimes. When I point the XML file to my local streams, it=20
seems to jam up and stop delivering any stream, even though the=20
console says it's working fine. Does anyone have any experience with
this?

thanks guys

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Elliot Mebane

2006-04-27, 6:47 am

Is anyone on the list in Los Angeles? I run the Los Angeles Flash
Extension Adobe User Group, focused on Flash-enabled technologies like
Media Server/Breeze/Flex, etc... If you are a local developer doing
Flash-enabled work and are interested in giving a presentation about
your work or the technology, please contact me. We can also support
remote presentations using Breeze.

Look forward to hearing from you. Please contact me off-list -

Elliot Mebane
Manager, LAFX | Los Angeles Flash Extension Adobe User Group |
www.lafx.org
elliot-iAPh/i3NputAfugRpC6u6w@public.gmane.org

President, Roguish
Roguish.com
info-TzTj+L1upg9BDgjK7y7TUQ@public.gmane.org




________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Steve Krichten

2006-04-27, 6:48 am

Sorry I can't help with the dynamic thumbnail part. We opted to make thumbnails manually. However I might know what's happening with the video clips dropping out unexpectedly.

It took some digging into Macromeida's FLV Playback code to figure this out. Under the hood, the FLV Playback component creates an instance of a video player object each time you ask it to play a new video. It seams that the component does not do a good
job of making sure responses from the server only affect the associated video. So what happens is if you switch to a new video before it ends when that previous video stops playing it also stops playing any current video that might be playing. Maybe th
is is what is happening in your case. If it is here is how I fixed it...

// Note: I have a n instance of an FLVPlayback component named "player"
private function _playVideo(url:String) {
// Before we start playing a new video, first delete the current video object
// Note: you can't delete the default video object that resides at index 0
// Also I start the player using index 1 so that the one at 0 never interferes
if (player.activeVideoPlayerIndex > 0) {
player.closeVideoPlayer(player.activeVideoPlayerIndex);
delete player.getVideoPlayer(player.activeVideoPlayerIndex);
}
// Set a new video player index and make it the active and visible video player object
// Note: in my class i have a field to keep track of the index (nextVPIndex)
player.activeVideoPlayerIndex = ++nextVpIndex;
player.visibleVideoPlayerIndex = nextVpIndex;
//Now we can play the next video
player.play(url);
}

Hope that helps,
Steve

------------------------------------------------------------
We have been trying to use it for a piece we are doing as well and have
run into some problems.

The first issue was that it was opening 5 connections automatically per
user and then fluctuated between 6 and 7 connections when playing back
the video.

After awhile the connections on the video clips would drop out
unexpectedly (similar to what someone was reporting earlier).

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com