FULL SUBJECT from above:

Malsup Media Plugin: hoping to click ul/li and have NEW video start
and old stop - PLUS FLV-player.net tests




Hi... should be asleep though this is the last thing I need to figure
out.. and it's really been a JQuery december... 100's and 100's of
hours... hehehe, you know that one!

So...

OBJECTIVE: I wish to click on menu ul/li's (see 2-below) and have any
already playing video in the ONE video-play location STOP and then a
new video start, (see 1-below) which would obviously pertain to the
subject of the nav ul/li. Geez, hope that's celar enough.

1- I have a div location, upper right corner on my ONE html and ONE
css page localhost running test site. This is for videos and I have
the wondrous malsup media plugin working there.

2- I have newbie-ish infested code as a left side mid-page MENU that
does  scrollto coda-slider like stuff. It works.... (recalling
hundreds of hours:--)

I figure there's a lot of ways to do the stop one video swap to new
video and then start it thing.
Thing is, I think it's actually kinda tricky.... is it may I ask?


So... anyone know a cool way when clicking on a Li to get one video to
stop and another to load an play IN the same location???


AN ASIDE BELOW: relating to only being able to use JW player and not
flv-player.net  nice player. almost works. (code at bottom)

I have had to use JW's player as even though the override works fine
(good tips around here for ordering the events I found)

I THINK I would much rather use the nice little www.flv-player.net
PLAYER.... it's very cool  I think (?) and even has a javascript
version. Yes, there's flowplayer etc. etc. though this flv-player.net
really works well...

I used this code (see bottom please) and all the features popped into
view on the media player (maxi full version) when I called them with
the params....though the video did NOT play.... it would even go full
screen...just no visuals...

I swapped out the override forcing it to use JW's player and it
works.... so I figure there's something about   flv-player.net  player
that malsup media plug doesn't get along with...

Maybe the javascript version WOULD work??? Kinda doubt it.
The following code calls the features in the flv-player.net player..
(using the maxi full version of the player)

REALLY though I'd like to get the swap out the video thing going.....
I can change players later.

The big last fn.media.defaults.flashvars below invokes all the
features in flvplayer  (from flv-player.net)  maybe that's it or
something.... I mean it's a similar code that I have to use for the
embedded stock flash/flv call to work. which I will put at the very
bottom here.

THIS IS WHAT I USE to try to get it to work with malsup media plugin.
I turned lines on and off with '//' obviously.

<script type="text/javascript">
// $.fn.media.defaults.flvPlayer = 'flvplayer.swf';
// $.fn.media.defaults.mp3Player = 'flvplayer.swf';
// $.fn.media.defaults.params = { allowFullScreen: 'true', wmode:
'opaque' };
// $.fn.media.defaults.flashvars = { value: 'flv', showvolume: '1',
showstop: '1', showtime: '1', startimage: '1', showfullscreen: '1',
bgcolor1: '456234', bgcolor2: '236545', playercolor: 'ca45d2'};
$(document).ready(function(){
$('a.media').media();
       });
</script>


<div class="video">

<a class="media {width:150, height:180}" href="test.flv"</a>

</div>

----------------- BELOW is the stock flash/flv embed code that does
work to bring up and run flv-player.net  player.... I like this little
player...!  think... I seemed to need the '&amp' to be left in
there.... -----------


<object class="playerpreview" type="application/x-shockwave-flash"
data="flvmax.swf" width="180" height="160">
                <param name="movie" value="flvplayer.swf" />
                <param name="allowFullScreen" value="true" />
                 <param name="wmode" value="opaque" />

                <param name="FlashVars"
value="flv=test.flv&amp;width=320&amp;height=240&amp;showstop=1&amp;showvolume=1&amp;showtime=1&amp;startimage=test.gif&amp;showfullscreen=1&amp;bgcolor1=cccccc&amp;bgcolor2=000000&amp;playercolor=aaaaaa"
 /
>

            </object>

----------------------

my biggest thanks for reading.....!  THANK YOU! :-))

Reply via email to