Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Want FLV file to play on a web page without a player.  See my example

Posted on 2009-05-18
13
Medium Priority
?
294 Views
Last Modified: 2013-11-12
Hello  

I need to play a FLV file on a web page, but I don't want it playing in a visible player.  That is I don't want there to be the usual Play button and no frame.  I want it to work and look much like this link:

http://www.personal-injury-attorney-los-angeles.com/

Requests:
1. Ideally it would work just the same way as above: the video playing automatically after the page loads.

2. My second request, if possible, as per the above example, when the video finishes, there is a "Play Video" button near the bottom of the page to replay the video.

3. Also importantly (and I realize this may be difficult) the video needs to disappear once the video is finished playing.  That is, instead of how it is playing on the right side of the content area on the above example website,, I want it playing Over some HTML content, then when the video is finished, I want the video to disappear, revealing the html content under it.  In other words, I would like (if possible) for the instance of flash to completely disappear (except, perhaps, for a replay button -- Note if it simplifies things, there does not have to be a replay button, but it would be nice!)

Need clarification?  Just let me know!

Thanks

Rowby



0
Comment
Question by:Rowby Goren
13 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 24414317
So how far have you gotten on your own?  Or do you expect us to deliver the complete code for you?
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 24414403
Well, all I've done so far is look at the site and the underlying code.  


My flash ability in this area is limited. (I'm a Joomla pro but not a flash pro.)

I see various swf controller file links, and some javascript, I think.  I have no idea what is in the swf files that may or may not be getting this thing working.

First of all I don't even know if it is possible for a FLV flile to play above html and then disappear revealing the html when it is finished playing.  I assume with the swf and javascript and divs this is possible, but am not sure.

So to answer you questioni, yes, I would love the complete code if possible.  Or links to where I can find out how to do it.

Thanks

Rowby
0
 
LVL 37

Assisted Solution

by:CyanBlue
CyanBlue earned 800 total points
ID: 24414493
Just to clarify, that page embeds the SWF file that loads FLV which has wmode set to transparent...  So, your goal is to create a FLV Player that has no controller but plays the given FLV file when it is loaded...

You might want to take a look at this page to learn how to create your own FLV Player... and there are more if you google for it...
     http://theflashblog.com/?p=233

CyanBlue
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 9

Author Comment

by:Rowby Goren
ID: 24414641
Thanks CyanBlue,

In my case, the video, instead of being transparent would have the same background color as the html page, thus "covering up" the html that is behind it -- until the video finishes, then the video would disappear and the HTML behind it would be "revealed".
 
And yes, the player would have no controller but would play the flv file when loaded. (There could be a player elsewhere on the page, like it does in the example, but the player is not essential if that complicates things.)
I will look at your link.

Thanks

Rowby
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 24414649
Note:  I think I have seen a similar effect used for the infamous "Mac vs PC" videos (featuring the PC Nerd and the Mac Kid) on Nytimes.com

Rowby
0
 
LVL 22

Accepted Solution

by:
rascalpants earned 1200 total points
ID: 24414830
What you need is to put your SWF embed code (i recommend googling SWFObject) into a DIV, and have your javascript control the placement of the DIV.

your SWF will use code that will call the javascript once the video has completed playing...


if you need an AS 3 solution, take a look at this page...


http://www.experts-exchange.com/Web_Development/WebApplications/Q_24413821.html


this question is basically the same as yours, but you need to have your javascript move the DIV



rp / ZA



0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 24415130
Thanks , rascalpoants, I will check it out.
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 24452896
Hi

I am reviewing everyone's suggestions this weekend and will report on Monday or Tuesday.

Stay tuned!
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 24453600
Question for CyanBlue.

"Just to clarify, that page embeds the SWF file that loads FLV which has wmode set to transparent.."

I have the actress on a green screen.  I assume that will be fine when wmmode is set to transparent?  (There is no other green in the shot - no clothing green, etc.)

Rowby



0
 
LVL 22

Expert Comment

by:rascalpants
ID: 24454560
yeah, that means there will be no background in the SWF... so you will get the effect you want...

rp / ZA
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 24455516
Hi rascalpants.

I assume, when creating the swf,  I will use an eyedropper to select the green and that will become the "no background"?

Rowby
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 24455663
no...  u dont worry about the bg color...  the wmode set to transparent just makes the background not there.  the only thing u worry about is your video having the alpha channel so that the actor is the only thing u see.

rp / ZA
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 31582685
Thanks all.  Your responses helped me troubleshoot this.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a Synology DS212+ NAS.  These are not only great for backup and normal NAS stuff, but also for delivering media throughout your home or LAN via DLNA.  I copied my whole audio collection from iTunes over to the box, but couldn't figure out how…
You may or may not be familiar with Kodi (http://www.kodi.tv) the open source software media player and entertainment hub that can be installed on Linux, OSX, Windows, iOS, and Android.  Kodi which started off as X-Box Media Center (XBMC) many years…
Viewers will learn how to create burn videos onto a DVD using Nero Suite including creating a DVD menu and chapters.
Viewers will learn how to create and use Simpler instruments in Ableton Live. Load new Simpler into an empty MIDI track: Select a sample and drop it into sample window in Simpler: If sample is not pitched at C3, adjust tuning with Transpose para…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question