So if you want to change the video via menu/js etc there are a few ways to
go about it:

1) rewrite/re-embed the flash file with new flashvars etc. Check out
Philip's great tut on swapping flash files via JS here (read from " Using an
'onclick' event to replace a loaded SWF with another SWF"):
http://www.pipwerks.com/lab/swfobject/load-onclick/2.0/index.html


2) find a FLV player that can take commands from javascript directly like JW
media player (http://www.longtailvideo.com/players/jw-flv-player/ ). It has
a JS API which you can use to swap videos etc:
http://developer.longtailvideo.com/trac/wiki/FlashAPI



Cheers,
Aran


-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of yvonne
Sent: Monday, 29 December 2008 10:32 AM
To: SWFObject
Subject: FlashVars etc. possible in HTML (not script area?) [or?] My
objective: multi-video stop/start in one 'other' DIV location


Hi everyone....great to be here....! I'll try to be concise and not
write too long.

OBJECTIVE: When I click on nav menu items, to have a different video
play in another div on the single page site.

ATTEMPT ONE (just to get videos to play):

There's a lot of JQuery stuff on this test page so I tried and tried
to get malsup media plugin to work with my player of choice:  Neolao
flv-player (http://flv-player.net)  No luck other than to get all the
variables, buttons to show up in the player. Only JWplayer would
actually run the videos. I need to use NeoLao player...

Basic embedding works fine with NeoLao player... this is the exact
code that worked. And there's some very cool options on the site fot
the player. This the options page for the maxi player which is the one
that get's updated. There's also a JS driven one though I'd like to
keep it simple for me at this point. And anyways, I will only need to
STOP and START the videos automatically when I get to the 'switiching
them' point.
http://flv-player.net/players/maxi/documentation/

MOVING TO SWFOBJECT:
It looks like I can use a player with SWFobject! Cool. um, I didn't
know that. Though I'm relentless with problems and would love to get
this going.


SO: in the script portion I guess I do NOT way to have just ONE video
stated...as I need them to change.... So how do I put the video
desired in the HTML as a FlashVar Param etc..... ???

I'm quite in the dark on this.

My step one.... get the videos working with ONE script instance if
possible. (I have the entire site on ONE page with JQuery doing
scrolling stuff etc.  I guess I would need to have the HTML part hold
the varables/params/FashVars...... is the possible/sensible??

Then after I get a bunch of divs on the page each with a different
video in them.  (right?)   Then I need to call these to STOP and START
(only one at a time - gulp!:--) at another div location on the
page....


Well, that's it... Looking for an elegant way to do this.... is
SWFobject what I need?

Big thanks for sure for reading.... I'll never give up.... though help
kinda needed... it's Sunday! Day 3!




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to