GithubHelp home page GithubHelp logo

Comments (23)

danrossi avatar danrossi commented on July 20, 2024

bum, it could be related to the screen fixes for the stagevideo fixes :(

from flash.

anssip avatar anssip commented on July 20, 2024

i was guessing it was about events, like some event missing to fire. I think you made changes to those?

from flash.

danrossi avatar danrossi commented on July 20, 2024

i moved the display adding out of the bufferfull event to the start event as it was removing it from the stage and adding back to the stage after each seek.

from flash.

danrossi avatar danrossi commented on July 20, 2024

better video to use perhaps ? Its preloading the video before playback.

from flash.

danrossi avatar danrossi commented on July 20, 2024

ok i see the issue , well start events arent dispatched so thats why it's not displaying, its trying to play the resolving stream wierd.

from flash.

danrossi avatar danrossi commented on July 20, 2024

I worked it out, the http files being checked need to be cached busted, its hard to explain but will start the resolved clip once it's being checked to work properly. Ive now just realised I probably need to clean up this fix in the screen. but on further discovery there is duplicated init code on the display as its already happening in the handleStart method

https://github.com/flowplayer/flash/blob/master/core/src/actionscript/org/flowplayer/view/Screen.as#L358

same as

https://github.com/flowplayer/flash/blob/master/core/src/actionscript/org/flowplayer/view/Screen.as#L392

I don't quite get that bit sorry but I'll put it within the onStart method perhaps so there is just one start listener.

https://github.com/flowplayer/flash/blob/master/core/src/actionscript/org/flowplayer/view/Screen.as#L314

from flash.

danrossi avatar danrossi commented on July 20, 2024

How about this is it still doing the same thing

private function onStart(event:ClipEvent):void {
var clip:Clip = event.target as Clip;
if (clip.metaData == false) return;
handleStart(clip, event.info as Boolean);

        if (clip.type == ClipType.IMAGE) {
            showDisplay(event);
        }
        if (clip.type == ClipType.VIDEO) {
            var disp:MediaDisplay = _displays[clip];
            if (! disp) return;
            disp.init(clip);

            if (clip.live) {
                showDisplay(event);
            }
        }
    }

from flash.

danrossi avatar danrossi commented on July 20, 2024

It's in just lemme know what works best. The cluster changes are in I suspect it's a new flash player quirk attempting to replay the same file partially in the cache on a different stream.

from flash.

anssip avatar anssip commented on July 20, 2024

Do you think that cache busting is needed, or would your Screen class changes fix this alone?

Just worried about side effects caused by that cache busting param... Will test without a new cluster plugin first.

from flash.

anssip avatar anssip commented on July 20, 2024

Works for me every time now: http://ec2-50-16-32-151.compute-1.amazonaws.com/plugins/streaming/cluster.html
Did not update the cluster plugin yet.

@bbbo please also check, i think it was audio-only for you every time

from flash.

bbbo avatar bbbo commented on July 20, 2024

no luck so far, audio only in Firefox 15, Chrome 22 and IE9 (didn't test
that before, so it's not in the browser cache)

from flash.

anssip avatar anssip commented on July 20, 2024

Now updated the cluster plugin also, but it does not work yet.

from flash.

danrossi avatar danrossi commented on July 20, 2024

No well it wasn't dispatching start events hence why the display doesn't get added. It's needed because it will try to play the resolving file instead, and will just sit there downloading it and then buggering events up. You can see it in the resource monitor. The actual file being requested to play is sitting there pending. My main question is the code i've now moved to clean it up even needed as the other code in the start event is also hiding other displays and adding the current display. It causes more chaos with the stagevideo otherwise because its adding and removing the video object from the stage after each seek if its in a bufferfull event.

from flash.

danrossi avatar danrossi commented on July 20, 2024

its working for me.

from flash.

anssip avatar anssip commented on July 20, 2024

Yeah it looks like the Screen class would need some cleaning up. I will test this a bit locally.

For me the 2nd demo has the problem after following sequence:

  1. start player in the 1st demo
  2. start player in the 2nd demo
  3. start player in the 1st demo
  4. start player in the 2nd demo ---> now there is no video

from flash.

anssip avatar anssip commented on July 20, 2024

Which resource monitor you are referring to?

from flash.

anssip avatar anssip commented on July 20, 2024

Should be fixed now. The workaround for the missing onBegin event is in the StreamProviderController class.

@danrossi any ideas why onBegin is not fired here?

from flash.

danrossi avatar danrossi commented on July 20, 2024

Sorry guys I was down with the flu, is this still a problem ? The screen changes cleaner now ? Was the listener also required in the streamprovider for a reason ? Do you now not see onBegin being dispatched ?

from flash.

danrossi avatar danrossi commented on July 20, 2024

Hmm there was some changes to the begin dispatching but it seems they were lost hmmm, it's to prevent begin being dispatched many times and to dispatch if the player is in paused mode.

http://code.google.com/p/flowplayer-core/issues/detail?id=629
http://code.google.com/p/flowplayer-core/issues/detail?id=615

I'll put them through to have a look thanks.

from flash.

danrossi avatar danrossi commented on July 20, 2024

And in terms of this problem, if you can see, it's using the netstream in the cluster plugin from the looks of it for playback but downloading the file for a very long time therefore no events are being dispatched from the main netstream. The cache buster works around that if its due to play back the same file. I think it's a flash player bug if loading up multiple connections / streams at once.

from flash.

anssip avatar anssip commented on July 20, 2024

we just made a new release :-) Right now it works around the missing onBegin event, see the change in StreamProviderController.

from flash.

danrossi avatar danrossi commented on July 20, 2024

//#15 add cache busting to the file being checked for availability to play back correctly once resolving has completed.
_netStream.play(_clip.getResolvedUrl(this));

looks like it didn't merge properly or didn't go in, it's still a problem on my end without it. Is that correct ?

from flash.

danrossi avatar danrossi commented on July 20, 2024

https://dl.dropbox.com/u/3394987/clusterissue.png

from flash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.