Ok,
I have an existing video application that has few distinct peices:
- the Video Player
- Channel List
- Videos
The app loads all its data from a database, which is constantly changing.
Here is a breakdown of some of the events fired off in my application:
start app
load remotingProxy
establish rtmp connection
load channel list (loads channel thumbs, titles, etcs)
load first channel (creates horizontal list of video thumbs offstage, with titles, video frames)
show first channel (list moves on stage)
show first video
load videoplayer (sits ontop of video window, attaches videostream)
vp events (play, pause, stop, seek, mute, volume, fullscreen)
close videostream
next video
prev video
next channel
prev channel
..
.
etc.
This is just a few pieces of the main functionality.
First Question:
Do all these get listed in the ApplicationFacade class as notification names? What if my app was much bigger than this, would I list all 100+ notifications here? If not, where would I list them? In my existing (very mediochre) architecture, the main pieces of fuctionality all have their own facade which lists notifications specific to that component. I just need a straight answer, what is best practice for this scenario?
Second Question:
I'm trying to better understand the controller functionality in the PureMVC architecture. Other than at startup, where and when would I need to register new commands?
Third Question:
In my application, would it be best to have one mediator for a set of components (such as the video boxes)? ... and if not, would I instaniate a new mediator for each videobox component after each one loads? Same kinda goes for the channel list ...
If I manage to finish this application, I would be more than willing to provide a much simpler version (using xml sheets, and progressive video) as a demo.
I really do appreciate this new framework, and have spread the word to my fellow colleagues. Thanks much Cliff!