Daniel -
For the scheduler part, look at Quartz
(http://www.opensymphony.com/quartz). Based upon the scheduler
firing... you could load/create different playlists for users to select
at custom time intervals.
I do something similar where the scheduler fires and creates an xml
based playlist based upon some rules. The playlist xml is generated via
the Java XMLEncoder/XMLDecoder classes
(http://java.sun.com/products/jfc/tsc/articles/persistence4) which get
built via business rules to produce a bean containing playlist
attributes. The encoder/decoder class are nice and simple. You create
a bean and pass it to the Java XMLEncoder method which takes the content
to generate an XML file on the fly. Then when you need data (i.e
playlist request) you can fetch as native XML or simply return the
content back to its' original bean state via the decoder for further
processing. This easily provides a dynamic "state" on the server
managed by a scheduler without the need of a database for handling
transient data.
.j
Paul Dhaliwal said the following:
Daniel,
I can provide some direction on how to do it using playlists. This
might not be the best way. You should be able to just add all of your
items to the playlist and play them. From what I can see, each person
who connects gets a new playlist. You can add whatever you want to the
playlist.
For example, if someone asks for a web-tv stream, your logic can add
remaining programs of the day, and start the current one at whatever
time it shoudl start at.
Here is more information about how you can implement your own playlist
and plug it in.
http://mirror1.cvsdude.com/trac/osflash/red5/ticket/223
HTH,
Paul Dhaliwal
On 11/21/06, * Daniel Dupont* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Another "Hi" to Red5 team,
I'm working on a WebTV project.
I want to provide a pseudo-live stream based on a list of FLV.
Each FLV
must be play at a defined time in a day to produce a continuous
program.
Example of the program for 1 day:
00:00 FLV-1 duration 52mn
00:52 FLV-2 duration 3mn
00:55 FLV-3 duration 2mn
00:57 FLV-4 duration 3mn
01:00 FLV-5 duration 13mn
01:13 FLV-6 duration 26mn
01:29 FLV-7 duration 1mn
...
23:55 FLV-100 duration 3mn
23:58 FLV-101 duration 2mn
All videao files are already in FLV format.
I suppose I have to make a playlist and play it according to the
timeline (how?).
Then I think I have to make a connection to this stream?
Is it the right direction?
How can I do that?
I there another way to do that?
Thanks in advance.
--
Daniel Dupont
_______________________________________________
Red5 mailing list
[email protected] <mailto:[email protected]>
http://osflash.org/mailman/listinfo/red5_osflash.org
------------------------------------------------------------------------
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
/Whether you think that you can, or that you can't, you are usually right./
- Henry Ford
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org