Skip to content

Which way is a proper way to init subssupport classes? #84

@piniya

Description

@piniya

Hi,
i made some small player with classic method self.session.playService(), and now i am trying to init subssupport classes into my player to download and load downloaded subtitles. Everything is great if the movie has no embedded subtitles. Subtitles are downloaded and loaded. But if the movie has embedded subtitles then the issue is that embedded stays on, downloaded are not loaded at all. Even if i change embeddedSupport=True args to False.
Any idea why?

my example code:

from Plugins.Extensions.SubsSupport import SubsSupport, SubsSupportStatus, initSubsSettings

class my_player(Screen, SubsSupportStatus, SubsSupport):
    def __init__(self, session, player):
        Screen.__init__(self, session)

        initSubsSettings()
        SubsSupport.__init__(self, embeddedSupport=True, searchSupport=True)
        SubsSupportStatus.__init__(self)

        sref = eServiceReference(player, 0, "/path/.../)
       # etc ....
       # code for playing ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions