ActionScript 3.0 :: Stop FLV Audio Playback On Navigation?

Jan 22, 2009

So my FLV videos play just fine, however when I click on any of the navigation buttons to visit another section of my website, the audio keeps on going. There must be some simple AS to stop the audio once a button is clicked. As it is now, the user has to stop the FLV video manually by clicking the stop button on the FLV playback component.

View 5 Replies


Similar Posts:


IDE :: Stop Flv Playback When User Clicks A Navigation Button?

Feb 6, 2008

I have a few flv component instances on different frames. When you click a navigation button the current flv should stop and it takes you to a new flv on a different frame. But the previous one keeps playing. How do I stop the current one playing when the button clicks?

View 6 Replies

Actionscript 3 :: How To Decoding Audio / Audio Playback

Jul 3, 2010

I'm interested in learning how to decode and playback audio in ActionScript 3. I understand how to write bytes to a Sound object using the SAMPLE_DATA event, so that's not really a problem. What I want to understand is how I could implement alternate audio formats for native playback inside of Flash Player. I guess what I'm asking is: how do I take something in X format and "convert/decode" it to WAV format and write the bytes to a Sound object, playing back the audio? I'm interested in writing a decoder for FLAC audio and possibly OGG audio, as these seem to be some of the most widely used open source audio formats

View 2 Replies

Flash :: Start And Stop Audio From The Middle Of Audio Track?

Apr 25, 2011

I have a single audio file, I'd like to avoid cutting it up.

I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.

View 2 Replies

ActionScript 3.0 :: Mic Audio Capture And Playback?

Jan 16, 2009

I've been developing in flash for a while now and now I have a job developing flash and actionscript 3.0. I have come across a project with a simple concept but I have found it difficult to implement.

What I want to do is allow the user to click a button and record their voice and then I want them to click another button and play it back. I don't need to save or store it and I don't have access to a flash media server or any alternative.

View 2 Replies

ActionScript 2.0 :: Way To Add Seeking Capability To Audio Playback?

Oct 15, 2007

I'm looking for a way to add seeking capability to audio playback. I can do it pretty easily for video, but I'm currently using a sound object which has no seek capabilities whatsoever.

Is there a different object or method I can use to direct audio playback to a particular point in the audio duration?[code]...

View 2 Replies

Professional :: Multi-channel Audio Playback?

Jul 11, 2009

I have an mp4 file that i made and i made it 7.1 surround sound, and i'm pretty sure that this 7.1 surround sound works, as it can be played in VLC. i'm using netstream to load my files now. How do i make it so that flash can playback all 8-channels of sound?

View 3 Replies

ActionScript 3.0 :: Flash Audio Playback Security?

Nov 9, 2010

mp3 playback security with Flash player. I am making a mp3 player and don't want to give user access to download the mp3 files from server. But according to Flash player functionality, it's getting downloaded in cache. Also with Firbug user can see the mp3 file path.I would like to have any good suggestion for this development, without streaming server. Is it really possible to secure mp3 files with Flash player? If yes then please let me know your feedback for the same.

View 3 Replies

Looking For Simple Flex Component For Audio Playback?

Jun 27, 2010

I want to add a simple audio control (play/pause/seek/volume) control to my flex application.

View 1 Replies

Flex :: Recorded Audio Playback Cuts At End

Aug 9, 2010

I'm writing a flex app, which must record an audio and then playback. It records just fine, I can hear the flv on the server, but when it comes to the playback it cuts the end a little bit, and each time I ask to reproduce again it cuts a little bit more. I guess it's something related to buffer management, but I don't know exactly.

Here's the code I'm using to playback. It is called from a mediator:
var streamPlayClient:Object = new Object();
this.stream.client = streamPlayClient;
streamPlayClient.onPlayStatus = function(infoObject:Object):void {
if (infoObject.code == "NetStream.Buffer.Flush") {
stopPlayback();
}} this.stream.play("flv:" + this.streamName);

View 1 Replies

Separate FLV Video And Audio Tracks In FLV Playback Component?

Jul 30, 2009

We're creating video that is destined for multiple countries - we've created a framework that has a video page (using the FLV playback component, w an external FLV w/ progressive download) for the given languages we're using, and subtitles for each, etc..  Until now, we've been using the same English video & audio for each, but the client is looking into having the videos dubbed into different languages.
 
We're hoping to avoid re-encoding the video for each language in order to accommodate for the different audio tracks.  Also, having different video files for each language would mean using more storage (since we're talking about a lot of video files, so it adds up). Is there a way to use FLV playback to progressive download an FLV file (video only) while playing a separate mp3 file?  Most inquiries into playing separate audio and video has led me to embedding video, which isn't feasible in our case.

View 4 Replies

ActionScript 3.0 :: FLV Playback Component - Audio Restarting Continuously

Dec 11, 2009

[URL]. Site works fine after a lot of experimentation but there's 1 problem. If you start the video and go to another tab the audio continues go back again and it starts again, this can happen multiple times. I am using a flv playback component.

View 0 Replies

Actionscript 3 :: Flash Player 10 Real-time Audio Playback?

Jul 13, 2009

I'm trying to playback some sample data through the new real-time audio capabilities of Flash Player 10. I started with the example given at the bottom of this page on livedocs, which seems to work fine and plays a crystal clear tone.I assume that the two writeFloat's in the example write to the left and right audio channels respectively and that the data being written is 32 bit (because of the float).

However. I seem to be having trouble converting my old 8 bit audio data to a format that is understood by this interface. When I playback my sample data I can vaguely hear the sound I'm expecting but it is massively distorted. My sample data consists of raw 8 bit samples that ranges from 0..255 where 127 is silence.

I've been trying different conversion formulas but I seem to be missing some vital information regarding this conversion.

UPDATE:The correct formula turns out to be:

f = (sample.data.readByte() - 127) / 255

View 2 Replies

Actionscript 3 :: Stream Playback From Wowza Has Audio Crackling On Flash Player

Feb 2, 2012

I have a custom Flash video player that uses the NetConnection and NetStream classes to stream mp4 files from a Wowza server. Lately the playback has been having audio problems. The sound is crackled and in some cases may cause the Flash player to crash. This is not consistent between files. Meaning that a file that was played once with bad audio could be fine 5 minutes later when played again from a new instance of the player , but 5 minutes later have the same problem.

My thought direct me to thinking this was an encoding problem, but that wouldn't explain how one second the playback is fine, and once refreshed messes up again.

I should note that the Wowza server does not stream the entire file but only a portion of it based on various parameters it gets.

View 1 Replies

Professional :: How To Stop Playback

Jul 7, 2011

I have an ad banner in which I am certain I touched nothing that would affect the lack of looping in the file and lo and behold some elemnts loop even though in the actionscript it says to stop looping it....The trace says it played out the function to stop looping but it still does. I am not an actionscript pro but could anyone PLEASE possibly look at the file and tell me how to make sure EVERYTHING stops looping? The looping is causing google to prevent us from putting up the banners

View 3 Replies

Actionscript 3.0 :: Can't Stop The FLV Playback?

Jul 23, 2009

I am near completing a basic website in AS3.0. I Have a portfolio section which loads in external swf's which contain a video with the FLV Playback Component. This is how I add the swf after it preloads:

Code: Select allfunction craDone(e:Event):void {
trace("LOAD");
TweenLite.to (portfolioBucket_mc,

[code].....

View 1 Replies

ActionScript 2.0 :: Code To Stop Flv Playback

Jan 10, 2010

i am having problems with the flv playback. i have an flv component and when i navigate away to second one it gets confused and the firrst one keeps playing... has anyone had this problem ? is there code to stop the flv playback when i leave it?

View 1 Replies

Sound Playback Doesn't Stop?

Oct 14, 2009

I'm experiencing difficulty when playing sound files. When I start the playback of the timelime using the enter/return button everything plays as it should. When I press it again to stop, the visuals stop but the sound file in the timeline just keeps playing until it reaches the end of the track- even if I have cut some out of the timeline. I used to use mx 2004 and never had the problem. Note: I am using this in college not on a personal computer.

View 1 Replies

Professional :: Unable To Stop Cropped Playback?

Jan 25, 2011

I have created a .fla with a stage that is 650px by 550px, and everything looks good.Problem is when I play it back in a browser of flash player it crops the movie and cuts off some of it.

View 1 Replies

ActionScript 3.0 :: Stop Multiple External Playback Flv That Are In The Same Swf

Dec 10, 2009

I have 4 videos (external playback flv) that can be play pressing 4 buttons. I noticed that when I decided to jump to another video the first video will still continue to load anyway. What can I write to tell the first video or even the 3 other videos to stop loading when I click to see 1 in particular. I found a code that I thought was working but it doesn't... here it is;

btn_1.addEventListener(MouseEvent.CLICK,btn1);
function btn1(event){
if ((root as MovieClip).vids.vid2) {
(root as MovieClip).vids.vid2.stop();

[Code].....

View 0 Replies

Flash 10 :: Stop A Video From Auto-playback?

Oct 12, 2010

I've created a new flash file, imported an mp4 video with a control panel clearOverAll.swf).how can I get it to stop autoplayback?

View 3 Replies

ActionScript 3.0 :: Unable To Stop FLV Playback (External SWF)?

Jul 23, 2009

I am near completing a basic website in AS3.0. I Have a portfolio section which loads in external swf's which contain a video with the FLV Playback Component. This is how I add the swf after it preloads:

Code:
function craDone(e:Event):void {
trace("LOAD");
TweenLite.to (portfolioBucket_mc, 0.5, {x:-831, alpha:0, ease:Back.easeIn});
var undergroundLoaded = emptyMovieClip_mc.addChild(loadUnderground);
back_btn.visible = true;
[Code] .....

The Problem here is the movie still keeps playing and nothing I have tried has been able to stop it. I was hoping to be able to continually addSWF's and removeSWF's out of my emptyMovieClip_mc. I read about the new .unloadAndStop function for Flash Player 10. Tried it and it still nothing. I wrote it like this, maybe it's wrong?

Code:
emptyMovieClip_mc.my_FLVPlybk.unloadAndStop();

View 1 Replies

ActionScript 3.0 :: Stop An FLV Upon Navigation?

Feb 1, 2009

I'm creating a portfolio site for myself and on my demo reel page I have an FLV of my reel that plays. My problem is when I navigate away from the reel page, the audio from the FLV continues to play. How can I fix this?

View 2 Replies

ActionScript 3.0 :: FLV Playback Wont Stop After The Page Has Changed?

Jul 2, 2009

i am trying to close a FLVPlayback component from a button in a parenting movieClipI have been successful in closing the video using a button from the same movieClip that the component resides.I did this using the following AS:

test_btn.addEventListener(MouseEvent.CLICK, test_btnClickHandler);
function test_btnClickHandler(event:MouseEvent):void {
showreel_flv.getVideoPlayer(showreel_flv.activeVid eoPlayerIndex).close();

[code].....

View 4 Replies

ActionScript 3.0 :: Stop Flv Playback When Exiting Current Frame?

Feb 10, 2010

I have searched countless forums (here and other sites) and still have yet to find the solution I am looking for (hopefully it exists).I have an flv file being loaded by the flv playback component. It all works except that the video (and audio) continues to play even after navigating away from the frame on which the component instance is located.I have found a solution that stops the audio by using:  SoundMixer.stopAll();But the video is still streaming and affects the site's performance.I want to stop both the audio and video, which means using: playbackInstance.stop();However, all the solutions I have come across basically say to add the stop function to all buttons that could potentially navigate from the frame with the playback instance.

This seems completely tedious and bulky, particularly because I have navigation buttons visible from my "main swf" and the MULTIPLE playback instances I have are located inside a loaded swf with its own navigation as well.  By nature of design, the playback instances will not always be on the stage so calling references will undoubtedly throw errors. Of course, there are ways to do all of this with conditional statements, etc. But it just seems like a waste of time.

View 9 Replies

ActionScript 3.0 :: Stop Playback Of An FLVPlayback Component When Navigate From Page

Apr 11, 2010

I have an movieclip playing as auto start on the first page of my website. The component continues to play when I navigate away from the page. How can I stop the playback of the movie if it has not completed when navigation away from the page is invoked. I have search and am unable to find such an event using an FLVPlayback component. Presently there is no code in actionscript to display here.

View 13 Replies

Media Server :: Got NetStream.play.stop Before It Reaches End Of Playback

May 23, 2011

i have application that streams videos from fms .i try to play video of 240 seconds, but when playback reaches 180 seconds i got NetStream. play. stop . it happens regularly at the same time.why does it happen? is it encoding of the video??

View 4 Replies

ActionScript 2.0 :: [Flash MX 2004] Stop Video Playback When Going To Next Frame?

Jul 8, 2007

I've put together a small website and have managed to teach myself quite a bit but there is one thing that I can't seem to find any info on,on the second page of the site I have a video, which progressively loads into the page, however I would like to make the video stop playing when you go to any of the other pages of the site. I'm sure this is a pretty straight forward piece of code but I can't work it out myself.This is the code I use to start my video playing.....

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[code].....

View 1 Replies

ActionScript 3.0 :: Navigation - FLV To Stop ON A Cue Point While At The Same Time

May 19, 2009

I have an FLV playing on my stage with a few Navigation cue points embedded inside and i am having some serious trouble of getting an FLV to stop ON a cue point while at the same time also turn some buttons and movieclips from invisible to visible :!:

[Code].....

View 1 Replies

ActionScript 3.0 :: Stop Movie Clip After Navigation?

Jun 30, 2009

It's been a long time since I've used Flash, never Actionscript 3.0, so I am having some trouble with some simple things. I've built an HTML site with a custom Flash video player in it. The player has a simple timeline navigation going on. There is a movie on each of 3 frames. There are 3 buttons, each goes to a frame. The problem is if you go to movie one, press play it starts. If you decide you want to go to the next movie, the navigation works, but movie one keeps going (you can hear the audio). How do I make this stop?

This is the timeline. btn actions layer is the script on the navigation buttons to make them function.actions layer is just a stop(); on each frame. mov menu are the navigation buttons.

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved