Giter Site home page Giter Site logo

multiple hls instance support about flashls HOT 5 CLOSED

mangui avatar mangui commented on July 29, 2024
multiple hls instance support

from flashls.

Comments (5)

mangui avatar mangui commented on July 29, 2024

it should work now, all static variables should have been removed

from flashls.

zuzzurro avatar zuzzurro commented on July 29, 2024

Hi Guillaume
So, behind the scenes we tested both your suggested improvment (removal of the statics from TS.as) and now also your new version with your fix.
First of all thanks for doing it. Unfortunately our player crashes in the same way when we try two scenarios where we create a player within the main instance.
Here's the trace we get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.mangui.hls::HLS/get levels()[C:\Users\stefano.deamici\DivaWorkspaces\DivaWhiteLabel\Develop\Video OSMF HLSmangui\src\org\mangui\hls\HLS.as:93]
at org.mangui.osmf.plugins.traits::HLSDynamicStreamTrait/getBitrateForIndex()[C:\Users\stefano.deamici\DivaWorkspaces\DivaWhiteLabel\Develop\Video OSMF HLSmangui\src\org\mangui\osmf\plugins\traits\HLSDynamicStreamTrait.as:35]
at org.osmf.media::MediaPlayer/getBitrateForDynamicStreamIndex()

Of course I will do my best to try to provide you the info you need in order to investigate further.
Ciao and thanks

from flashls.

mangui avatar mangui commented on July 29, 2024

ah, you are using OSMF ... in that case you might try to remove the static keyword from this line, it should be useless : https://github.com/mangui/flashls/blob/master/src/org/mangui/osmf/plugins/loader/HLSLoaderBase.as#L33

and recheck. in any case please report the status, and also logs if still broken

from flashls.

zuzzurro avatar zuzzurro commented on July 29, 2024

Well done. That seems to have fixed it!

from flashls.

mangui avatar mangui commented on July 29, 2024

Great ! Will commit the fix tomorrow

from flashls.

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.