Jump to content
GreenSock

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

Search the Community

Showing results for tags 'VideoLoader'.

  • 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

  1. Hi, I seem to have found a bug... I'm currently working on a custom video player based on VideoLoader, and up till today everything was OK. I understand the limitations of progressive loading and all that, but... I thought I'd do a 'connection lost' test while the video file was still loading (disable/enable the ethernet connection on my PC). What I was hopping to see was the loading progress bar stop when I disable, and resume when I enable the connection, or at least get some king of a load error (fail, error, cancel, ioError). But that wasn't the case. In fact, atfer some digging around, I found that the bytesTotal were set to bytesLoaded when connection was lost (not the other way around, it's not a typo), which in my case were a lot less, thus giving me a progress of 1 and a completly full loading progress bar. Also, a loadComplete event was dispatched. So, when the playProgress reached that last loaded frame, instead of staying there and showing me that the videoBuffer was empty, it just triggerd a VIDEO_COMPLETE event. I can't seem to figure out any work around this, since the bytesTotal is read-only, right? Also, as mentioned before, no events are dispatched other then LoaderEvent.COMPLETE.
  2. Hi, I'm trying to find a solution for my loading concept: I have several pages, each loading a video. When I leave a page I call dispose() on the VideoLoader to stop the loading process. The problem is, when I call dispose without "true" my network analyser shows that the video is still loading data from the server. When I pass in true, the loading stops but also removes the video from cache. Is it possible to really stop the loading and at the same time don't clear it from cache ? Thanks, Oliver
  3. Hi All I am having an issue with a app that loads video from the app document directory. Its working great with flv format videos. It loads and plays fine. When I try to load mp4 or f4v it appears and acts as though it has loaded. My scrubber moves, time counts down but there is no audio or video. The video is just black. I am using gpu acceleration but have tried with it off and same result. Any help would be great. This is running on an ipad. I have the same app running on an adroid working fine. _videoProperties = new VideoLoaderVars(); _videoProperties.width(747); _videoProperties.height(419); //_videoProperties.bgColor(0x000000); _videoProperties.autoPlay(autoPlay); _videoProperties.container(_container); _videoLoader = new VideoLoader("file:////var/mobile/Applications/F601234555A-D27F-48D5-A484-675F7E84839F/Documents/myvideo.mp4", _videoProperties); _videoLoader.addEventListener(LoaderEvent.COMPLETE, _onLoadComplete, false, 0, true); _videoLoader.addEventListener(LoaderEvent.ERROR, _onLoadError, false, 0, true); _videoLoader.netStream _videoLoader.load(true); private function _onLoadComplete(e:Event):void{ _videoLoader.addEventListener(VideoLoader.PLAY_PROGRESS, updatePlayProgress); _videoLoader.addEventListener(VideoLoader.VIDEO_COMPLETE, VideoComplete); _videoScrubber.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownScrubber); _videoScrubber.addEventListener(MouseEvent.MOUSE_UP, mouseUpScrubber); _videoScrubber.addEventListener(MouseEvent.MOUSE_OUT, mouseUpScrubber); _playButton.addEventListener(MouseEvent.MOUSE_DOWN, playClick); _pauseButton.addEventListener(MouseEvent.MOUSE_DOWN, pauseClick); _muteButton.addEventListener(MouseEvent.MOUSE_DOWN, muteClick); _soundButton.addEventListener(MouseEvent.MOUSE_DOWN, soundClick); _volumeScrubber.addEventListener(MouseEvent.MOUSE_DOWN, volumeClick); _volumeScrubber.mouseChildren = false; _videoScrubber.mouseChildren = false; }
  4. Hello and thanks for this great library. I have a little problem with the video repeat function of videoloader. I load multiple video and I had set repeat:-1. The video loops to infinity but between the loops I have a freeze time about 2 seconds. This is the code I use: Any Ideas? I had tried both with gsap 12 and Tweening platform 11. Thanks in advance for your time!
  5. I am having trouble with a screensaver file that I am creating. The basic idea is that a f4v will be loaded in with videoLoader and then it will play seemless until a specified amount of time when the videos will be paused, and a swf will play over the top. The first problem I am having is with the seemless aspect of the video. I have tried several options including setting repeat:-1, but as the file repeats, it pauses for half a second and you can see the background. To fix this I have two video loaders that listen for the end of one video, then switches to the other. This works fine on its own, but when I try to add in the swf after so many rotations it breaks the system after about 30 minutes depending on the computer. Could it be a problem with how large the stage size is? The stage is 5464x768.
  6. Hi there, First off I would like to say the work you have done thus far is awesome! I'm really hoping you can help me as I feel ive been banging my head against the wall the last couple of days. I have a project that will be running a video playlist, I want to remove a video once it has finished playing but the loaders, contentDisplay, video etc are still kept in memory when it try disposing of them. So over time the project maxes the memory and I am left with the big "!". I have gone through and stripped event listeners, and everything i can think of that may keep it in memory. I really hope you can point out what is going wrong. Attached are simplified versions of what im trying to do. Main.txt VideoPlayer.txt
  7. Thank you in advance. Great VideoLoader, love its features. I am having a sound issue though. I have three MCs in my FLA linked to the Main document. I load each video player into a dummy container on a mouse click event and am able to remove the content from the container. However, the sound keeps playing. I tried creating a dummy function with the Main class to pauseVideo but it comes back as undefined. i can trace (myMC.showVideo and return the fact that it is a function function {} so i know i can get into the class.) So, simply how would i stop the sound using multiple loaders within the same project? Thank you.
  8. 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 }
  9. Here's an easy one: How do I update the url that a conditional statement determines? What I have so far does not work: var video:VideoLoader = new VideoLoader('', {name:"weatherVideo", container:mc_video, width:756, height:672, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0, estimatedBytes:75000}); if( condition == "Cloudy.png" ){ getVideos( 'video' ); } function getVideos( url:String ):void { video.getLoader( 'weatherVideo' ).url = url; video.load(); video.playVideo(); }
  10. 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.
  11. Hi I want to make a simple video player with VideoLoader. But when I try to "fast forward" my video, addEventListener(Event.ENTER_FRAME, onFrame); private function onFrame(e:Event):void { if (videoLoader.duration - videoLoader.videoTime < 1) { removeEventListener(Event.ENTER_FRAME, onFrame); }else { videoLoader.videoTime += someSpeed; } } I found "videoTime" it never change, then in http://www.greensock...loadermax/#bugs If you seek() to a certain time in a NetStream and then immediately check its “time” property, it is often incorrect (reflects the previous time, not the new one) so, I change my code, just skip some frames do videoLoader.videoTime += someSpeed; not every frame. it works! But not smooth enough. If there has a better solution? Thanks.
  12. Hi, I'm using Flash Builder. I load videos from an xml and after that i add video content to application. Code is like that: Application.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="application1_creationCompleteHandler(event)"> <fx:Script> <![CDATA[ import com.greensock.TweenLite; import com.greensock.events.LoaderEvent; import com.greensock.layout.AlignMode; import com.greensock.loading.LoaderMax; import com.greensock.loading.VideoLoader; import com.greensock.loading.XMLLoader; import com.greensock.loading.display.ContentDisplay; import com.greensock.loading.display.FlexContentDisplay; import mx.collections.ArrayCollection; import mx.events.FlexEvent; import spark.components.Button; import spark.components.HGroup; import spark.components.VideoPlayer; protected var videosPath:String = "assets/videos.xml"; [bindable] protected var videos:ArrayCollection = new ArrayCollection(); protected var video1:FlexContentDisplay; protected function application1_creationCompleteHandler(event:FlexEvent):void { // TODO Auto-generated method stub LoaderMax.activate([xmlLoader, VideoLoader]); LoaderMax.contentDisplayClass = FlexContentDisplay; loadVideos2(); } protected function loadVideos2():void { var loader:XMLLoader = new XMLLoader(videosPath, {name:"xmlDoc", onComplete:completeHandler}); loader.load(); } private function completeHandler(event:LoaderEvent):void { var queue:XMLLoader = LoaderMax.getLoader("xmlDoc"); videos = new ArrayCollection(queue.getChildren()); var vl:VideoLoader = videos.getItemAt(0) as VideoLoader; video1 = vl.content; video1.horizontalCenter = 0; video1.verticalCenter = 0; addElement(video1); } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> </s:Application> videos.xml: <?xml version="1.0" encoding="utf-8" ?> <data> <item> <VideoLoader url="assets/vid/magicfall1.flv" name="video4" autoPlay="false" load="true" width="400" height="300" crop="false" scaleMode="proportionalOutside" /> </item> <!-- Some other videos, not posted for simplicity, but their properties exactly same except names --> </data> If i run the program from Flash Builder, I've no problem, it is visible immediately. But if I Export Release Build and put that build to server, when i go to that web page i wait for 3-4 minutes until video content seen on the browser. The size of the video is 24.2 MB. Is that normal? By the way I'm using Version: 1.9.
  13. Hello, and thanks for reading. I'm making a video player that continuos play clips from a playlist and I would like to dispose the video after playing it. I can't configure autoDispose:true because I still need it for some seconds when the next video is playing, this is the code I'm trying: //add cuepoint var oldVideo:Number = _videos.indexOf(_currentVideo) - 1; _currentVideo.addASCuePoint(1, "removeVideoCP", {n:oldVideo}); //..... // get message from cue point if (event.data.name == "removeVideoCP") { var _videoID:Number = event.data.parameters.n; //_videos:Array of VideoLoaders _videos[_videoID].dispose(); trace(_videos[_videoID].name); // this still traces "clip1" } Any idea? Thanks a lot for your help.
  14. Alright, I'm 100% stuck, and I really need some help with my project. Below is a link to the FULL project so you can see everything that's there and test it yourself. It's 180MB, sorry for the filesize, but its like 78MB of video and some sound and other things. http://www.mediafire.com/?5eox4gderare717 The project is one frame, on the frame there is a movie clip called rewinder. inside rewinder theres about 24 frames that left and right arrows on screen navigate between, and plays different videos. I'm loading videos 2 in front and 2 behind the current frame, and unloading any videos outside that threshold, but it's not helping. Further details but not super relevant I dont think: the swf is referencing a php file every 2.5 seconds that has a variable I'm using. The problem: Run the swf, and you'll see your RAM usage and CPU usage skyrocket. I've compressed the videos as much as I can, I'm using Loadermax, loading the videos when needed, unloading them when they're not needed, but it's just detrimental to the computer. It literally starts to crash other programs and slow the computer down because it's too intense on it. I don't know what the problem is or how to fix it. Furthermore, when you navigate pages, the RAM usage endlessly goes up well beyond 1GB. Is there a way that I can test where a memory leak is occuring? Does this seem like a LoaderMax issue? I'm a designer primarily and trying to work with AS3 and greensock, so I apologize that the code isn't refactored well or optimized. Any help would be TREMENDOUSLY appreciated, please let me know if I can supply with anything else thats needed for testing. The project is up and online at www.helpg.us. Please don't post that link around right now, just saying that so you can see the full file online running.
  15. When I show a video on start, the last frame of that video displays for a split second since that is the current data until the Video refreshes. Normally, Video.clear() would be the fix for that, but... ...there is a known bug with Video.clear(), logged in the Adobe system & never getting fixed: https://bugs.adobe.com/jira/browse/FP-178 The workaround seems to be either: show & hide video (which doesn't help since showing the video on start still displays the last frame) or: when clear() is called, destroy & reinstantiate the Video instance. It would be great if the VideoLoader had a clear() method which did the second point above.
×