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

Media key support #15

Closed
djyde opened this issue Dec 23, 2015 · 3 comments
Closed

Media key support #15

djyde opened this issue Dec 23, 2015 · 3 comments
Milestone

Comments

@djyde
Copy link
Owner

djyde commented Dec 23, 2015

Considering support media key(previous, next, play/pause)

@0xWDG
Copy link
Collaborator

0xWDG commented Apr 23, 2016

I don't know exactly how you want to use it, but it is supported see: https://github.com/djyde/WebShell/blob/master/WebShell/WebShellMediaKeysSupport.swift#L20

@djyde
Copy link
Owner Author

djyde commented Apr 24, 2016

Actually, what i want is explosing an event listener API which let WebShell can tell the website what media key the user press. It is a very useful feature for the video web application.

0xWDG added a commit that referenced this issue Apr 24, 2016
@0xWDG 0xWDG added this to the v0.2.0 milestone Apr 24, 2016
@0xWDG
Copy link
Collaborator

0xWDG commented Apr 24, 2016

I got (for now)

        "MediaKeys": [
                    // Enable "Back" & "Forward" (for browsing)
                    "BackAndForward": true,

                    // Media Player support (experimental)
                    "MediaPlayers": false
                ],

i'll make a event trigger API later.


the thing what makes the media keys support hard, is that via the media keys interface we can't communicate directly to the view controller unfortunately.

https://github.com/djyde/WebShell/blob/master/WebShell/WebShellMediaKeysSupport.swift

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

2 participants