-
Notifications
You must be signed in to change notification settings - Fork 22
Enable fullscreen for videos #116
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
Enable fullscreen for videos #116
Conversation
rtibbles
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not tested, but a naming tweak and a question.
| @@ -0,0 +1,87 @@ | |||
| package org.endlessos; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| package org.endlessos; | |
| package org.learningequality; |
Could we rename the file as well?
src/main.py
Outdated
|
|
||
| PythonActivity = autoclass("org.kivy.android.PythonActivity") | ||
|
|
||
| FullScreen = autoclass("org.endlessos.FullScreen") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| FullScreen = autoclass("org.endlessos.FullScreen") | |
| FullScreen = autoclass("org.learningequality.FullScreen") |
| } | ||
|
|
||
| // Configure the WebView to allow fullscreen based on: | ||
| // https://stackoverflow.com/questions/15768837/playing-html5-video-on-fullscreen-in-android-webview/56186877#56186877 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This suggests that we need updates to the AndroidManifest.xml as well, or does the P4A generated manifest already include the appropriate keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my tests the fullscreen was working correctly with just this java class, I didn't need to do anything else to have the fullscreen working for videos.
3189c09 to
8e34edf
Compare
Fix #86