Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvlcjni
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Huber
libvlcjni
Commits
69ea0ab9
Commit
69ea0ab9
authored
11 months ago
by
Fabian Huber
Browse files
Options
Downloads
Patches
Plain Diff
jni: set teletext page/transparency
parent
6337b790
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#467398
failed with stage
Stage:
in 11 minutes and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libvlc/jni/libvlcjni-mediaplayer.c
+42
-0
42 additions, 0 deletions
libvlc/jni/libvlcjni-mediaplayer.c
libvlc/src/main/java/org/videolan/libvlc/MediaPlayer.java
+4
-0
4 additions, 0 deletions
libvlc/src/main/java/org/videolan/libvlc/MediaPlayer.java
with
46 additions
and
0 deletions
libvlc/jni/libvlcjni-mediaplayer.c
+
42
−
0
View file @
69ea0ab9
...
...
@@ -1197,3 +1197,45 @@ Java_org_videolan_libvlc_MediaPlayer_00024Equalizer_nativeSetAmp(JNIEnv *env,
return
libvlc_audio_equalizer_set_amp_at_index
(
p_eq
,
amp
,
index
)
==
0
?
true
:
false
;
}
void
Java_org_videolan_libvlc_MediaPlayer_nativeSetTeletext
(
JNIEnv
*
env
,
jobject
thiz
,
jint
page
)
{
vlcjni_object
*
p_obj
=
VLCJniObject_getInstance
(
env
,
thiz
);
if
(
!
p_obj
)
return
;
libvlc_video_set_teletext
(
p_obj
->
u
.
p_mp
,
page
);
}
jint
Java_org_videolan_libvlc_MediaPlayer_nativeGetTeletext
(
JNIEnv
*
env
,
jobject
thiz
)
{
vlcjni_object
*
p_obj
=
VLCJniObject_getInstance
(
env
,
thiz
);
if
(
!
p_obj
)
return
-
2
;
return
libvlc_video_get_teletext
(
p_obj
->
u
.
p_mp
);
}
void
Java_org_videolan_libvlc_MediaPlayer_nativeSetTeletextTransparency
(
JNIEnv
*
env
,
jobject
thiz
,
jboolean
transparent
)
{
vlcjni_object
*
p_obj
=
VLCJniObject_getInstance
(
env
,
thiz
);
if
(
!
p_obj
)
return
;
libvlc_video_set_teletext_transparency
(
p_obj
->
u
.
p_mp
,
!!
transparent
);
}
void
Java_org_videolan_libvlc_MediaPlayer_nativeToggleTeletextTransparency
(
JNIEnv
*
env
,
jobject
thiz
)
{
vlcjni_object
*
p_obj
=
VLCJniObject_getInstance
(
env
,
thiz
);
if
(
!
p_obj
)
return
;
libvlc_video_toggle_teletext_transparency
(
p_obj
->
u
.
p_mp
);
}
This diff is collapsed.
Click to expand it.
libvlc/src/main/java/org/videolan/libvlc/MediaPlayer.java
+
4
−
0
View file @
69ea0ab9
...
...
@@ -1436,4 +1436,8 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
private
native
boolean
nativeAddSlave
(
int
type
,
String
location
,
boolean
select
);
private
native
boolean
nativeRecord
(
String
directory
);
private
native
boolean
nativeSetEqualizer
(
Equalizer
equalizer
);
public
native
void
nativeSetTeletext
(
int
page
);
public
native
int
nativeGetTeletext
();
public
native
void
nativeSetTeletextTransparency
(
boolean
transparent
);
public
native
void
nativeToggleTeletextTransparency
();
}
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