On Mon, Jun 2, 2008 at 8:38 PM, Michael Dale <dale(a)ucsc.edu> wrote:
Stjepan Rajko wrote:
Eventually, the mediaElement will be able to
answer queries like
"getAllSourcesOfMIMEType(...)", and serve as a proxy to a chosen
source (either the default source, or specified source of certain
type...). I will get that functionality added as I modify the rest of
the code to use mediaElement rather than querying the information
directly.
cool this should tie into the plugin capabilities (will have to turn the
plugin list into a plugin array). So we can match plugin players to
supported MIME types. For example vlc and mplayer support flv video...
This gets a bit more complicated once we include client side seeking per
player but should be doable.
Yep - I'm now working on the selection of the stream (some default
strategy + the ability for user to change), and am modifying&borrowing
the code for the download page. Then I'll tackle the player
abstraction.
Also, I started playing with constructing docs. JSDocs seems to work OK:
http://urbanstew.org/js_docs_out (or
http://www.dancinghacker.com/js_docs_out/ - the other server seems to
be down now :-( )
great! documentation ... it does not seem to grab all the methods but
maybe that can be fixed somehow:)
It only grabs documented methods / classes - I'll add docs to the
existing code as I touch it. With all the verboseness, eventually we
should probably provide a minified version of the script.
One question: I couldn't find where
$j.each(...) is coming from
(where is it coming from?). It's a cool way of iterating through a
node.
that is a jQuery based iterator
http://jquery.bassistance.de/api-browser/#eachObjectFunction
It seems to be one of the few good ways for cross browser iterating over
xml nodes. There is probably more opportunities to streamline other code
with jquery functions. You should take a look at jquery its fun :)
fun indeed - thanks for the reference!
Stjepan