Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage #152

Open
NicolasSiver opened this issue Dec 11, 2014 · 7 comments
Open

Stage #152

NicolasSiver opened this issue Dec 11, 2014 · 7 comments

Comments

@NicolasSiver
Copy link
Contributor

Hello Guillaume,

First of all, thank you for your work.
I have question/proposition about Stage object. HLS class is very depended on Stage, but It's just a setter.
I recommend to move Stage initialization in more important method. Anyway, with current implementation, library doesn't work without Stage. Or check for Stage could be earlier, before HTTP request to manifest.

@mangui
Copy link
Owner

mangui commented Dec 12, 2014

yes, I was thinking of making Stage an arg of HLS constructor

@aydinkn
Copy link

aydinkn commented Jul 21, 2015

I got this error for VOD: Error: Playback failed,hls.stage not set, cannot parse TS data !!!,Playback failed

@mangui
Copy link
Owner

mangui commented Jul 23, 2015

@aydinkn this error has been fixed 3 months back
22127dd
I guess you are using an old release ?

@mangui
Copy link
Owner

mangui commented Jul 23, 2015

@NicolasSiver about moving Stage initialization in a more important method, like for example as arg of Hls constructor ...
unfortunately it is not always possible to retrieve Stage reference during HLS object instantiation.
for example if you look at flashlsOSMF:

HLS instantiation is performed here: https://github.com/mangui/flashls/blob/dev/src/org/mangui/osmf/plugins/loader/HLSLoaderBase.as#L79
whereas stage retrieval is done here: https://github.com/mangui/flashls/blob/dev/src/org/mangui/osmf/plugins/traits/HLSDisplayObjectTrait.as#L43

as you can see there is no reference to a DisplayObject available in HLSLoaderBase.

@aydinkn
Copy link

aydinkn commented Jul 24, 2015

@mangui I am using latest master (zip download) but I got this error.

@mangui
Copy link
Owner

mangui commented Jul 24, 2015

@aydink you should use dev branch instead, or any recent release

@NicolasSiver
Copy link
Contributor Author

unfortunately it is not always possible to retrieve Stage reference during HLS object instantiation.

Yes, from program architecture point of view.

I think you can easily throw Error if stage isn't set at some point? For example, when very first load is requested?

Also stage is a good source of ENTER_FRAME. I saw somewhere in sources timer with zero delay.
Perfectly, it should be 1000/fps ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants