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

Rework app / webapp communication #165

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Conversation

Maxr1998
Copy link
Member

@Maxr1998 Maxr1998 commented Oct 4, 2020

Put Kotlin channel inside wrapper class, use channel for communication from NativeInterface, RemotePlayerService and ExternalPlayer.

@Maxr1998 Maxr1998 added the enhancement New feature or request label Oct 4, 2020
override fun onAdjustVolume(direction: Int) {
when (direction) {
AudioManager.ADJUST_RAISE -> {
webappFunctionChannel.triggerInputManagerAction(Constants.INPUT_MANAGER_COMMAND_VOL_UP)
Copy link
Member

Choose a reason for hiding this comment

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

Fix your TODO's

Copy link
Member Author

Choose a reason for hiding this comment

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

They were already there in master xD

Copy link
Member

Choose a reason for hiding this comment

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

Is it something we can fix or is it not possible without changing webui?

Copy link
Member Author

Choose a reason for hiding this comment

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

It needs changes to the web UI, unfortunately. But then again, we'll probably have a native UI before we get those changes, lol.

@Maxr1998 Maxr1998 force-pushed the rework-webapp-channel branch from 673efa9 to 2d19090 Compare October 5, 2020 21:26
Put Kotlin channel inside wrapper class, use channel for communication from NativeInterface, RemotePlayerService and ExternalPlayer.
@Maxr1998 Maxr1998 force-pushed the rework-webapp-channel branch from 2d19090 to b5019f2 Compare October 5, 2020 21:31
@nielsvanvelzen nielsvanvelzen merged commit e074b51 into master Oct 6, 2020
@nielsvanvelzen nielsvanvelzen deleted the rework-webapp-channel branch October 6, 2020 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants