ActionScript 3.0 :: Play Buffered Crypted Mp3?

Nov 4, 2009

i'm trying to build a mp3 player that plays a (for istance) base64 encoded mp3 file.my needs is to protect original files and decrypt them at runtime.now, i'm playing with new Sound apis and SampleDataEvent like this:

ActionScript Code:
public var s1:Sound;
public var s2:Sound;

[code].....

View 9 Replies


Similar Posts:


ActionScript 3.0 :: NetStream Detect Buffered And Not Already Buffered Places?

Sep 29, 2010

i have a video in which I can seek to unload parts (Pseudo-Streaming), the server return the video and it loads it from the requested second,the problem, i don't want to make a new request to the server if a part has already been buffered, here's what I have in mind, but can't achieve

Code:
if(netStream_has_been_download){
//Just run the seek() command

[code].....

View 1 Replies

ActionScript 3.0 :: Difference Between Fully Buffered (bytesloaded==bytes Total) And Play From Local?

Jun 9, 2011

I have 4 flv playback instances on a stage.

1. when i load 4 videos and ensure they are fully buffered from video progress event and bytesloaded==bytestotal . and then play them. I get sync issues for every other second.

2. when i download the vidoes and place them in my project folder and then load them ( no loading time) there are no sync issues. I cant understand why 1 is different from 2 as we are completely loading the videos in cache.

View 0 Replies

Professional :: Where Does Buffered Data Get Written To

Mar 12, 2010

When recording a video to FMIS if the stream is buffered, does this get buffered in memory or does it use up local storage?
 
I am developing an application that will use a web cam to record videos which will then be submitted to the server. Ideally I would have liked to write the video to disk first and then upload later however, I understand that I can't do this with flash (my solution has to be in browser AIR apps aren't an option). I am ultimately concerned about video quality so in order to ensure that I loose as few frames as possible I'm planning on setting NetStream.bufferTime to a large value. I am concerned however that someone with a poor internet connection and a good webcam will quickly use up local storage assuming that it is set to the default of 100K.
 
If this is the case then I potentially need to think again about my approach - maybe even look into Silverlight 4, or at the very least try and explain to my users how to go into flash settings and set local storage to be unlimited.

View 1 Replies

ActionScript 1/2 :: Any Way To Counteract Buffered KeyRepeat?

May 19, 2010

I'm moving an movieclip using the cursor keys. The device it has to run on, is too slow to process the keys realtime, so the keys are placed in a some sort of buffer and the object keeps on moving for a while when the key is released.The device places 8 keys in the buffer per second, but flash can only process 5 per second, so holding the key for a second, will look like I've pressed it almost twice as long. Any way to counteract this? I've tried using Key.isDown, but that returns true, even though they key is released, until the buffer is emptied.

I've tried using the onKeyDown event to start the movement and stop the movement using the onKeyUp event, but it seems like the onKeyUp event only occurs when the buffer becomes empty. Even when I remove the onKeyDown listener, it seems like the buffer only decreases 1 key per frame. It might have worked when there is no keyrepeat in the hardware, but that is not an option. It would be good if there was a timestamp indicating when the key was pressed, or some way to clear the buffer, but I've not found one.

View 7 Replies

Flash :: What Happens When A Youtube Swf File Is Buffered

Feb 5, 2010

Whenever a youtube or any other flash content is buffered on the browser, isn't it true that is downloaded to the client computer ? So my assumption is that, any completely buffered youtube file should be found on my client right ? For example, when i view this video on youtube, i see that it is actually referring to this swf location [URL] How does youtube actually buffer this video on my computer then ?

Note: My objective is NOT to download youtube videos as i know there are extensions available for it. I just want to know how it works :) .

View 1 Replies

Actionscript :: Events Is The Event Buffered And Ordered?

Feb 11, 2010

I found an interesting questions regarding the events in action script: is the event buffered and ordered?

Ie) In a swfloader example, I setup a timer(1 sec) to run a function, in the function I setup a listener to event INIT of the loaded swf. It depends on the network condition that whether the timer handler or the INIT event will be first executed. Imagine a case that the INIT event fired first but the handler to handle the INIT event be setup later, will the handler be invoked?

Another question, if the loaded swf fired several events very fast, will the events be kept ordered as the fire sequence?

View 2 Replies

Actionscript 3 :: Get How Many Video (in Seconds) Is Buffered From MP4 File

Jul 7, 2010

I can get which part of file in bytes is loaded using netstream.bytesLoaded,netstream.bytesTotal, I can get the current playing position using netstream.time. But I want to know how many seconds of video are already loaded (not the length of buffer, which remains constant).

View 1 Replies

Flash - Seeking Video Beyond Buffered Area?

Dec 23, 2011

Normally we use NetStream.Seek method but it will make the seek after the buffer area crossed the seek time length.(HTTP). Can we seek the video that is beyond the buffered area like youtube in red5. Will it start the buffer from the seek point.

View 1 Replies

ActionScript 2.0 :: Loading And Playing Buffered External FLV's

Jan 30, 2009

what I'm trying to put together is some code that will load in multiple flvs, buffer the vids and have them play one after the other in a loop. I have so far code that loads in an array of flvs but doesn't loop. Also the buffering stops the play back for a moment towards the end of the first video, not sure why but changing Flush into Full doesn't help. Anyone know how to add a buffer that plays after a % of the movie it buffered or will buffer movie one and then buffer movie two while the first movie is still playing? As for looping goes I need a listener waiting for the last video in the array to be completed, but not sure how to pull that off.

[Code]....

View 0 Replies

Media Server :: FMS 3.5.3 - Buffered Stream Regulatory Function

Feb 10, 2010

The upgrade version of FMS 3.5.3 append the new function about buffered stream, in order to resolve problem when the bandwidth no good caused the video getting more and more slow, but I can't find the configuration in which file.

View 2 Replies

ActionScript 2.0 :: Seek To Specific Point In Video Before It Buffered

May 22, 2010

I'd like to start playing a web-based video at a specific time, say 2 minutes in, even if the video hasn't been downloaded that far. I thought I could just "seek" to that time but that apparently only works when the video is buffered first.

So for example, this:
Code:
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.play("[URL]");
ns.seek(123);
video.attachVideo(ns);

Seems to work if you have the video cached or buffered or whatever, but if you don't it gives the "NetStream.Seek.InvalidTime" error, which makes sense. I want to know if it's possible to start playing a video at a specific time, even if the video hasn't loaded up to that point.

View 1 Replies

ActionScript 3.0 :: Make A New Request To The Server If The Seconds Parameter Specifies A Time Outside Of The Currently Buffered Video Data

Jul 14, 2011

when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time

View 3 Replies

ActionScript 3.0 :: Play Multiple Videos (all On Xml File) To Play On Button Action?

Jul 14, 2011

I am trying to make a swf with one FLV playback player and 6 buttons. I've got 6 different videofiles that I want to have linked to this swf. Some of the videos are quit large.When starting the Swf, the first video has to start, after playing it, it has to stop. Then you must be able to choose which video to play by clicking one of the buttons. I don't want to have small thumbnails of the video, just plain and simple buttons.I have to have all my files, both fla, swf and xml files in the same directory (I cannot have them stored in different folders, since I have to upload this to a cms system which has limited upload properties).
 
I've tried to find the right script on the internet, I'm not very good at scripting myselve, actually rather poor educated there.It seems to me that I have to make an xml file with a list of all my videos, I have my default swf ready, with a FLVplayback and buttons.Now there's just the coding part....

View 1 Replies

ActionScript 3.0 :: Play / Stop Button - Current Audio File To Play The Next One

Feb 27, 2012

I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?

[Code]...

View 1 Replies

Actionscript 2.0 :: Movie Clip Play, Stop And Play On Mouse Event?

Sep 1, 2010

I want a movie clip (let's call it homecontent_MC) with 100 frames play to frame 80 and stop.Then when someone clicks a button on the navigation bar (home, about, services, contact, etc...) homecontent_MC would then begin playing from it's position (frame 80) til it reaches 100, at which point it wouldn't be on screen, and the movie clip that corresponds to the navigation button press (say services_MC...) would start from frame 1 and continue til it stops at it's frame 80...

View 7 Replies

Media Server :: Stream.play (live_from_FMLE, -1, 4500, True) Got No NetStream.Play.Start?

Nov 5, 2010

I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".

On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.

With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:

info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.

View 3 Replies

Professional :: Can't Play Pogo's New Daily Hot Shots Game But Other Flash Games Play Fine?

Jan 22, 2011

I play games on Pogo and have never had a problem with their Flash Games until released Daily Hot Shots.  It doesn't load fully and I've done EVERYTHING I know to do to get it to play.  No errors show up.  I can play ALL the other flash games but this one.  When I right click, the name of the site's owners do not show up....I have the settings showing though Not all of the game loads and that's the problem.  I've tried uninstalling and reinstalling....tried a different browser and have the same exact problem.  THIS GAME WILL NOT PLAY.

View 2 Replies

ActionScript 1/2 :: Button Sounds In Play Scenes But Not In Play Movie

Oct 11, 2009

I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.

View 10 Replies

ActionScript 1/2 :: Makes Scene To Play When Called For And Not Play Automatically

Nov 7, 2009

So this is my code so far:
 
on (press) { // Gives your movie a button functionsgetUrl("http://www.astahost.com");}
on (rollOver) {this._alpha=100;gotoAndPlay("Scene 2"); }

[Code]....

when i play the movie, it plays scene 2, however, scene 2, which is in my flash document, plays automatically. how can i stop this? is there some code which only makes scene 2 play when called for and not play automatically.

View 1 Replies

Professional :: Play At Full Screen When Play .swf Files Using Web Browser

Jan 14, 2010

So i've made my .swf files. The only thing is they all play at full screen when i play them using my web browser. I need them to play at 548 x 408. when i open the .fla and go to properties it says the size IS at 548 x 410 but it can't be if its playing full screen.

View 2 Replies

ActionScript 3.0 :: Nested Movies To Play Consecutively With Play Pause?

Mar 8, 2010

I have several products I want to animate with graphics and text individualy then stack them on a time line for output with play and pause buttons. Is there a tutorial somwhere that shows you how to do this? and how do I stop the entire animation on a frame, I don't understand "not_set_yet"

View 4 Replies

ActionScript 2.0 :: Rollover Play Forward, Rollout Play Backward?

Jul 29, 2008

simple one this, or so i thought! basically, i want a mc to play from start to finish (11 frames) upon rollover and upon rollout i want it to play backwards to the first frame. Accurately.

ActionScript Code:
on (rollOver) {
if (activ.currentFrame <= 11)
{

[Code]....

Currently i JUST goes to the next frame. So i need something like currentFrame +1 or something?

View 7 Replies

ActionScript 2.0 :: CS3 - Modify From Just Play To Play/stop (toggle)?

Sep 21, 2009

I have modified the original to include more head shots accompanied by audio clips. I have worked out the playing of the clips on release. I realize now that people may not want to listen to entire clip. Each mug shot serves as the button to hear the person talk. I do not know how to modify the button code for it to be a toggle. I guess it would need to be some kind of "play if, stop if" The only part of concern is loading playing the the audio, no changes need to be made to the rollover functionality.

mugWidth = 60; //change these if you change the size of your mugshots
mugHeight = 60; //change to your mugshot height
//instantiate sound and textformat classes

[code]....

View 2 Replies

ActionScript 2.0 :: CS4 Play Check For Key / Play At End Execute Action

Apr 6, 2011

Root timeline: keyframe 1, keyframe 2, etc...

-keyframe 1 has a MC "frist MC"
-keyframe 2 has a MC "second MC", etc.
-the MCs are all duplicates containing different animation, but have the same AS inside them.

The construction of the MC is:Play intro animation -> Stop and wait for key stroke. If key is "space" set variable value to 1, if else set variable value to 0, then continue to play next frame. -> Complete the animation till the last frame.In the last frame check what is the value of the variable to check which key was been hit. If it was a space (var =1) go to root and play current frame +1 (go forward), Else, go to root and play current frame -1 (go back)Its a kind of slideshow.so heres the code in the middle, after the intro animation was played:[code] The problem with var reverse is, it works well in the first frame, its beign filled with value depending on what key is being hit, But in the last frame, when the time comes to check the value, trace says its "undefined".I have tried setting up a _global.variablename = reverse and it works in both frames (the check at the end is succesful, it detects the given value), but still the last frame only plays the currentframe -1 as if always executing the "else" command, no matter what the value of var reverse is.

View 1 Replies

ActionScript 3.0 :: Play Next 5 Frames And Stop The Play Head?

Jan 6, 2011

how would you play the next 5 frames if the space bar was clicked and then stop the playhead?

View 4 Replies

ActionScript 2.0 :: Release Play Frame Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 2.0 :: On Release, Play Frame, Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 3.0 :: Play An Mp3 File Using NetStream.play?

Mar 23, 2010

I have a "movie player" that plays flv files using the code below (videoToPlay is the name of the file to play and is just a string). I want to use the same setup to play an mp3 file also.I tried using mySound = new Sound(); and then mySound.attachNetStream(ns);, but it gives me this error: 1061: Call to a possibly undefined method attachNetStream through a reference with static type flash.media:Sound.

View 5 Replies

ActionScript 3.0 :: Different Between NetStream.play And VideoPlayer.play?

Nov 4, 2010

1) What is the recommended/best practice method for loading videos (flv, f4v, mp4, etc.) from a play list. Some of the files might be on the local file system, some might be on a streaming server and uses rtmp.
 
2) Does the VideoPlayer.play internally use NetStream/NetConnection objects? I could get the files to play using both these methods - not sure if one is better than the other. I didn't see any references about streaming in the VideoPlayer.play method - but it does work with rtmp URLs!
 
3) For a long running standalone application, how do I make sure the VideoPlayer/NetStream objects are properly released/garbage collected? Right now I am closing the netstream/netconnection after playing every file - mainly because I do not know which server/file system the next video is being loaded from.

View 6 Replies







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