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

server: python createMediaManager func #1574

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

bjia56
Copy link
Collaborator

@bjia56 bjia56 commented Sep 12, 2024

Enables connectScryptedClient in the browser to access the API on behalf of Python plugins

@@ -1043,6 +1043,11 @@ async def plugin_async_main(
peer, api, pluginId, hostInfo, loop
)

async def createMediaManager():
return MediaManager(await peer.getParam("getMediaManager"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should likely return the object as is, without the wrapper class. the caller will wrap it.

@koush koush merged commit d01fe43 into koush:main Sep 12, 2024
@bjia56 bjia56 deleted the server-python-engineio branch September 12, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants