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
Similar Posts:
Jun 27, 2010
I want to add a simple audio control (play/pause/seek/volume) control to my flex application.
View 1 Replies
Feb 25, 2010
my name is Göran and I know this is probably the wrong place to post my question but as far as I can see there´s no forum for FMLE here. I´m using the betaversion for mac. I was broadcasting to justin tv last night and decided to try out the record feature i FMLE. It looked like it worked ok and a 125 mb f4v landed on my harddrive. There´s no way I can play it back though or for that matter convert it mov etc etc. What am I doing wrong do I need another special app for playback or converting. Seem a bit strange if this feature is onboard the FMLE but you can´t use it.
View 3 Replies
Jan 17, 2012
I currently creating a standalone language learning application using Flash Professional 8. The application allow users to record and playback their own pronunciation, so that they can compare their own pronunciation with the pronunciation provided in the application for learning. how can I save and playback recorded voice on local computer
View 2 Replies
Jul 15, 2009
page 3 of his article "Working with metadata for live Flash video streaming" (http:url....) Jens Loeffler says the following...This code defines the function sendDataEvent on the server side, which utilizes the NetStream.send() function to inject the event, including the associated data synchronized with the current timecode of the video.
Note: If you record the video on the server side (a functionality of FMIS), the injected events are also being triggered by the recorded file.
Now, I've got both my own project and his sample project sending/receiving injected plain text data events via the whole "call ('sendDataEvent',data) -> send('onDataEvent',data) -> onDataEvent(data)" relationship just as expected and explained in his article.The Note that Jens makes, however, I cannot seem to validate and, unfortunately, that's linchpin piece in my project. Whenever I capture a stream with injected data events and play it back (via the same 'player' mechanism used with the live stream) the captured video plays back but I do not see the injected events being triggered by the recorded file.
View 2 Replies
Jan 15, 2012
What I'm trying to do is take a recording from the mic which is converted into bytearray. It will look something like this
ActionScript Code:
function startRecord():void{
mic.addEventListener(SampleDataEvent.SAMPLE_DATA, micSampleDataHandler);
}function stopRecord():void{
mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, micSampleDataHandler);
soundBytes.position = 0;
[Code] .....
View 2 Replies
Aug 20, 2010
In my tracking I records the voice, it generates the file (if i download I was able to listen to it), but if I try to play, it doesn´t play. If I use FP9 r124 it works, using FP10r53 or the latest 10.1.82.76 it fails !!! all with the same SWFhas anyone experienced the same? I can not ask everyone to downgrade the flash player.
View 8 Replies
Nov 20, 2009
I've been experimenting with the new Microphone API on the Flash Player 10.1 and I managed to do a microphone recorder/player. Pretty cool!
Now, the problem is that I don't know how to save/export the sound recorded into any common format like WAV, MP3 or anything else!
View 3 Replies
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
Oct 27, 2009
I'm new to Flash media server family. I need a server that can capture user recorded video/audio (through a flash recorder) and save it as a flv file on the server. which one of those server family is for me? I'm currently doing it using Red5, but would like to try out Flash media server as well.
View 1 Replies
May 24, 2010
I'm using the server Stream.play() method to playback a recorded stream, it plays back fine until it hits the buffer limit (Say I set the buffer to 5 seconds, it will playback fine for 5 seconds). But then it freezes and playback is very stuttery (1 frame every 2/3 seconds). Is this a know issue? I'm using windows 2008 server. I've tried a few things to resolve this but no luck. The server is running the dev license and has no load.
View 13 Replies
May 18, 2011
I have a problem with the TabNavigator. The labels of the tabs are getting truncated and once the user places their mouse over the tab it redraws again. Is there anyway to redraw the label of the tab programmatically?
View 2 Replies
Jun 16, 2011
got a little flex application where the content is zoomable.first of all some code
<s:Scroller verticalScrollPolicy="on" width="100%" height="100%">
<s:Group scaleX="{breite}" scaleY="{hoehe}"
id="mapView" > <!-- zum zoomen -->
[code]....
The zoom just works fine by changing the value from 1 up to 3 with a slider. Midpoint of the zoom is the center of the container (map).My problem: when i zoom, the scroller cuts a part of the groups. it zooms out of the window?!
View 1 Replies
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
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
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
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
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
Feb 16, 2011
For some reason, if you add an image to htmlText, like the following:
myText.htmlText = "<img src='"+dataProvider.bodyImage.getUrl('original')+"' align='left' />" + dataProvider.bodyText;
The image will be successfully added to the htmlText, but it seems to measure the sizes completely wrong. At times, the actual text (dataProvider.bodyText) will have part 'hidden' under the image. At other times, there are anywhere from 1 to 4 lines cut off at the bottom. However, if you select the text and drag your mouse down, you can see the bottom lines. It appears the text is all there, but the mx:Text component is not including the image in the textHeight, so it doesnt resize the componenet to the correct size.
View 1 Replies
Feb 16, 2011
My mx:Text's htmlText is the following:
mainText.htmlText = "<img src="breadmaker.png" width="339" height="275" vspace="0" hspace="0" />" + "Lorem Ipsum is simply dummy tex......(more here)"
However, the result looks like the following:ScreenshotAs you can tell, it cuts off the first few characters in the text after the image tag (Lorem Ipsum is sim), but it is only because the image is full width. If I change the img tag to width="200", it shows the text floating to the right.However, as you can tell with a full width image (because the Text component's width is 339), it seems the text is still floating to the right, but it's hidden off to the right side of the image.
View 2 Replies
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
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
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
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
May 25, 2009
As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?What I am trying to do, is to record a user's microphone's input and save it to the server.fterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?
View 1 Replies
Apr 26, 2011
I am trying save the recorded voice locally in my file system using flex and as3. I am successful in recording voice and playback again. I am using web application prospective in Flex. Here I noticed that if I used windowed application, I am successfully saving voice record in my system(using adobe air file system).
View 3 Replies
Aug 6, 2010
If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?
View 1 Replies
Jun 14, 2010
I'm trying to create a website for my wife. Everything is completed and it looks great. The only problem I'm having is that when my wife goes to view the websit on her computer (much smaller size). The page cuts off and there's no scroll bar feature which I thought was like a fixture on websites. I've been looking for hours on how to add a scroll bar to my entire website .. like the standard browser scroll bar but I can't seem to find it anywhere.
I have two files, one is the index.fla file which i used to create my page in using Flash CS5 and the other is the index.html file which I can edit in Dreamweaver.
View 9 Replies
Aug 11, 2009
I'm having this annoying proble with BitmapData. I try to turn a movieclip into a bitmap, but there is always white space to the right and bottom. At the top and left, it is obvious that part of the movieclip was cut off. However, the width and height of the bitmap are correct. In other words, white space takes up where the rest of my movieclip should go. About 30% of the bitmap is white.I have a method that creates a grid based on an array. The Wall class extends MovieClip. Each wall is a 70 x 70 movie clip that looks like a stone (its x and y are established within the class itself).[code]I have messed around with changing the registration using a class I found online, but it didn't fix anything. In fact, changing the registration made no difference. Also, I have called addChild(walls), and everything is displayed correctly. But for performance reasons, I need to make it a bitmap.
View 2 Replies
Mar 6, 2010
I just purchased and installed FMS for my music streaming service. I got the streaming set up fine so that it streams mp3s using the VOD application, but quite regularly the stream will just cut out and the VOD application in the administration section will just disappear and restart with 0 clients. It doesn't even happen when I have that many connected clients, at times it's happened with just 15 users, and i've had Red5 running over 200 clients at a time.
View 23 Replies