FLV player - replay button at the end of video

How to get a button to work at the end of FLV player

Page 1 of 1

2 Replies - 13966 Views - Last Post: 01 October 2007 - 11:48 AM

#1 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

FLV player - replay button at the end of video

Posted 20 September 2007 - 12:29 PM

Hi,

I've got these FLV's that I want to add a replay button at the end of them. So that once the screen goes black the replay button shows up and then you can replay them. So it would look something like this;

Posted Image

Does anyone have any ideas on what I should do to achieve this?

Thanks,
Is This A Good Question/Topic? 0
  • +

Replies To: FLV player - replay button at the end of video

#2 reyco1  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 20-March 05

Re: FLV player - replay button at the end of video

Posted 24 September 2007 - 09:31 PM

There are a couple of ways of playing an flv file. Post the code you are using to play your file to see which may be the best solution.
Was This Post Helpful? 0
  • +
  • -

#3 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

Re: FLV player - replay button at the end of video

Posted 01 October 2007 - 11:48 AM

This seems to work, but when I go to replay I only hear the sound and not the video. There must be something I'm doing wrong. Is it because I'm loading the flv onto a wrong layer or something I'm not seeing.

Please help, cause I'm stuck,

P.S. I also attache dthe file so that anyone could take a look

Thanks
http://www.webinkgra...oot/flv/flv.zip



trailerPreview.attachVideo(_root.stream_ns);
_root.stream_ns.play(_root.prefix+"videos/"+_root.currentTinVideo);

_root.stream_ns.onStatus = function(infoObject) {
		
	if (infoObject.code == "NetStream.Play.Stop") {
		_root.SoundPlayer._visible=false;
	}
	if (infoObject.code == "NetStream.Play.Start") {
		_root.SoundPlayer._visible=true;
	}
};

// on stage ...  nsMov - Video object ...  replay - Button 
// w50s.flv in folder named -  video

replay._visible = false; // hide the button

var ns:NetConnection = new NetConnection (); 
ns.connect (null); 
var nsStream:NetStream = new NetStream (ns);
 
nsStream.onStatus = function (infoObject){ 
trace (infoObject.code); 
if (infoObject.code == "NetStream.Play.Stop"){
replay._visible = true;
}
};
 
nsMov.attachVideo (nsStream); 
nsStream.setBufferTime(1); 
nsStream.play(_root.prefix+"videos/"+_root.currentTinVideo); 

replay.onRelease = function(){
nsStream.play(_root.prefix+"videos/"+_root.currentTinVideo); 
replay._visible = false;
};




View Postreyco1, on 24 Sep, 2007 - 09:31 PM, said:

There are a couple of ways of playing an flv file. Post the code you are using to play your file to see which may be the best solution.

This post has been edited by bmcc81: 01 October 2007 - 11:49 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1