Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'Buffer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Hi, I'm trying to use the VideoLoader to pseudo stream some of my content. I'm loading the new content using ?start=#. It works perfectly only I don't get a event dispatched when the buffer runs out which is pretty annoying. I just can't get it to work (I'm using server software for pseudo streaming: http://h264.code-shop.com/trac ) VideoLoader init/settings settings.width = this._width; settings.height = this._height; settings.autoPlay = false; settings.scaleMode = 'proportionalInside'; settings.volume = _savedSettings.data.videoVolume; settings.allowMalformedURL = true; settings.checkPolicyFile = true; settings.bgColor = 0X000000; settings.alpha = 1; settings.autoAdjustBuffer = true; settings.noCache = true; settings.name = 'videoPlayer'; if( _streamMode == VideoPlayer.PSEUDO_STREAM ) { _videoLoaderSettings.bufferMode = true; url_ = url_ +'?start=0'; } else { _videoLoaderSettings.bufferMode = false; } _videoLoader = new VideoLoader( url_, _videoLoaderSettings ); _videoLoader.addEventListener( VideoLoader.VIDEO_PLAY, handleVideoLoaderStatus ); _videoLoader.addEventListener( VideoLoader.VIDEO_PAUSE, handleVideoLoaderStatus ); _videoLoader.addEventListener( VideoLoader.VIDEO_COMPLETE, handleVideoLoaderStatus ); _videoLoader.addEventListener( VideoLoader.VIDEO_BUFFER_EMPTY, handleVideoLoaderStatus ); _videoLoader.addEventListener( VideoLoader.VIDEO_BUFFER_FULL, handleVideoLoaderStatus ); VideoLoader seek code _videoLoader.url = _videoData.video +'?start='+ _time; _videoLoader.load(true); _videoLoader.playVideo(); This works perfectly but when the buffer gets emptied no LoaderEvent gets dispatched. Or in some cases when bufferMode set to false bufferEmpty get dispatched and like 100ms later bufferFull get's dispatched (video hangs until truely buffered). What i've tried and didn't work: - setting bufferMode to false - autoAdjustBuffer set to false - without flushing the content - without the noCache parameter - calling auditSize() manually
  2. Hello and thank you so much for the most useful AS3 Library I've ever used! I'm currently using a VideoLoader to playback external MP4 on a client website. I've set bufferMode=true and all goes well on short videos. However, on larger videos (about 100MB) when I try to seek the video immediately after the first bufferFull event: - bufferEmpty is displached properly - I display a 0% buffer progress info and wait for buffer progress - It stays at 0% for about 20 seconds! -> My problem - It then starts to show progress and quickly gets to 100% - bufferFull is dispached, all is good. I can't quite explain to my client why does this happen on our website and it doesn't happen on youtube. On youtube it starts re-buffering immediately after seeking to a further frame I'll post the essential parts of my code and I hope you can give me some insight on this subject, thank you very much in advance. Here is how initialize the loader: // Estimated Bytes are provided on each video video = new VideoLoader(url, {container:this, x:bkg.x, y:bkg.y, width:bkg.width, height:bkg.height, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:1, auditSize:false, estimatedBytes:this.estimatedBytes, bufferMode:true, onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); video.load(); video.gotoVideoTime(0); video.addEventListener(VideoLoader.PLAY_PROGRESS, updatePlayProgress); video.addEventListener(VideoLoader.VIDEO_COMPLETE, videoComplete); video.addEventListener(VideoLoader.VIDEO_BUFFER_EMPTY, bufferEmptyHandler); video.addEventListener(VideoLoader.VIDEO_BUFFER_FULL, bufferFullHandler); video.content.addEventListener(MouseEvent.DOUBLE_CLICK, toogleFullScreenMode); Here are the listener functions: public function progressHandler(event:LoaderEvent):void { trace("progressHandler",(Math.round(event.target.progress*100))+"%"); // custom code to display progress text } public function completeHandler(event:LoaderEvent):void { // custom code to hide buffer progress text } public function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); } public function bufferEmptyHandler(evt:LoaderEvent):void { // custom code to show buffer progress text, starting with "0%" addEventListener(Event.ENTER_FRAME, reportBufferProgress); } public function bufferFullHandler(evt:LoaderEvent):void { trace("bufferFullHandler"); removeEventListener(Event.ENTER_FRAME, reportBufferProgress); completeHandler(null); } public function reportBufferProgress(evt:Event):void { // ISSUE: it stays at 0% for about 20 seconds on large movies and then evolves super fast to 100% trace("buffer progress:",video.bufferProgress); } public function updatePlayProgress(evt:LoaderEvent=null) { // custom code to show play progress bar } public function videoComplete(evt:LoaderEvent=null) { // custom code for when the video is done playing }
×