Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
6fd9a0d4
Commit
6fd9a0d4
authored
8 years ago
by
Thomas Guillem
Browse files
Options
Downloads
Patches
Plain Diff
LibVLC: AWindow: declare native methods in the subclass
Otherwise, old Android versions fail to register them.
parent
30c43c1a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libvlc/src/org/videolan/libvlc/AWindow.java
+7
-0
7 additions, 0 deletions
libvlc/src/org/videolan/libvlc/AWindow.java
libvlc/src/org/videolan/libvlc/AWindowNativeHandler.java
+2
-3
2 additions, 3 deletions
libvlc/src/org/videolan/libvlc/AWindowNativeHandler.java
with
9 additions
and
3 deletions
libvlc/src/org/videolan/libvlc/AWindow.java
+
7
−
0
View file @
6fd9a0d4
...
...
@@ -437,7 +437,14 @@ public class AWindow implements IVLCVout {
return
mAWindowNativeHandler
;
}
@SuppressWarnings
(
"unused, JniMissingFunction"
)
private
final
AWindowNativeHandler
mAWindowNativeHandler
=
new
AWindowNativeHandler
()
{
@Override
protected
native
void
nativeOnMouseEvent
(
long
nativeHandle
,
int
action
,
int
button
,
int
x
,
int
y
);
@Override
protected
native
void
nativeOnWindowSize
(
long
nativeHandle
,
int
width
,
int
height
);
@Override
public
Surface
getVideoSurface
()
{
return
getNativeSurface
(
ID_VIDEO
);
...
...
This diff is collapsed.
Click to expand it.
libvlc/src/org/videolan/libvlc/AWindowNativeHandler.java
+
2
−
3
View file @
6fd9a0d4
...
...
@@ -22,7 +22,6 @@ package org.videolan.libvlc;
import
android.view.Surface
;
@SuppressWarnings
(
"unused, JniMissingFunction"
)
public
abstract
class
AWindowNativeHandler
{
/**
* Callback called from {@link IVLCVout#sendMouseEvent}.
...
...
@@ -33,7 +32,7 @@ public abstract class AWindowNativeHandler {
* @param x x coordinate.
* @param y y coordinate.
*/
protected
native
void
nativeOnMouseEvent
(
long
nativeHandle
,
int
action
,
int
button
,
int
x
,
int
y
);
protected
abstract
void
nativeOnMouseEvent
(
long
nativeHandle
,
int
action
,
int
button
,
int
x
,
int
y
);
/**
* Callback called from {@link IVLCVout#setWindowSize}.
...
...
@@ -42,7 +41,7 @@ public abstract class AWindowNativeHandler {
* @param width width of the window.
* @param height height of the window.
*/
protected
native
void
nativeOnWindowSize
(
long
nativeHandle
,
int
width
,
int
height
);
protected
abstract
void
nativeOnWindowSize
(
long
nativeHandle
,
int
width
,
int
height
);
/**
* Get the valid Video surface.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment