Jump to content

Search the Community

Showing results for tags 'NetStream'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


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

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge


  • Learning Center
  • Blog


  • Products
  • Plugins


  • Examples
  • Showcase


  • FAQ


  • ScrollTrigger Demos


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Personal Website



Company Website



Found 3 results

  1. I have a slideshow where each slide can be a video, swf, image ect. Each video slide is a VideoLoader instance and has its own video player. So I am running into this issue where if I watch one video slide and then navigate to another video slide when I hit the play pause button it stops the current video and starts playing the previous slide's video. So its like there are 2 streams currently in memory. So I thought that what I needed to do was on transition out of a slide I should close the netstream for the video slide I am navigating away from. Like this public function disableMedia():void { _player.playPause(); _player.videoLoader.gotoVideoTime(0); _player.videoLoader.netStream.close(); } But because (I think) I am taking a bitmapdata snapshot of each slide to handle some transition effects between slides netStream.close() causes a Sandbox Violation error. SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///D|/Media%20Prime/Gaia/deploy/swf/intro.swf cannot access null. No policy files granted access. at flash.display::BitmapData/draw() at com.jammin.slideshow.view::SlideshowView/updateMedia() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.jammin.slideshow.model::SlideshowModel/changeMedia() at com.jammin.slideshow.controller::SlideshowController/mediaLoaded() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.jammin.services::LoaderMaxService/mediaLoaded() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_passThroughEvent() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::VideoLoader/_enterFrameHandler() NetStatusEvent. code: NetStream.Seek.Notify Now I only get the error when I try to close the stream. Otherwise I am able to take a snapshot of the video on transition out with no problem. So maybe I am not approaching this problem the right way. And I am not sure if it is an issue with Greensock Loading classes or Flash video classes.
  2. Hello. I've been searching for an answer to this problem but to no avail. I'm simply testing the LoaderMax and I haven't customized anything to fit my stage. I only want to load a video (flv file) and see that it plays. import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; import com.greensock.loading.*; import com.greensock.loading.display.*; import com.greensock.events.LoaderEvent; ... var video:VideoLoader = new VideoLoader("flv/loader.flv", {name:"myVideo", container:this, width:400, height:300, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0, requireWithRoot:this.root, estimatedBytes:75000}); var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); queue.append( video ); queue.load(); I've imported all of these and used the code correctly as far as I know how to but it gives me the error Error on VideoLoader 'myVideo' (flv/loader.flv): NetStream.Play.StreamNotFound Edit: I have not put the flv in my Library, nor is it on the stage. Is that needed? I would like to load it from a location within the directory: flv/loader.flv
  3. 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