Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
99450534
Commit
99450534
authored
Oct 23, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: add libvlc_media_player_set_evas_object
Used to pass an Evas_Object * for the future Evas video_output.
parent
e8566831
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
include/vlc/libvlc_media_player.h
include/vlc/libvlc_media_player.h
+13
-0
lib/libvlc.sym
lib/libvlc.sym
+1
-0
lib/media_player.c
lib/media_player.c
+21
-0
No files found.
include/vlc/libvlc_media_player.h
View file @
99450534
...
...
@@ -551,6 +551,19 @@ LIBVLC_API void libvlc_media_player_set_android_context( libvlc_media_player_t *
void
*
p_jvm
,
void
*
p_awindow_handler
);
/**
* Set the EFL Evas Object.
*
* \version LibVLC 3.0.0 and later.
*
* \param p_mi the media player
* \param p_evas_object a valid EFL Evas Object (Evas_Object)
* \return -1 if an error was detected, 0 otherwise.
*/
LIBVLC_API
int
libvlc_media_player_set_evas_object
(
libvlc_media_player_t
*
p_mi
,
void
*
p_evas_object
);
/**
* Callback prototype for audio playback.
* \param data data pointer as passed to libvlc_audio_set_callbacks() [IN]
...
...
lib/libvlc.sym
View file @
99450534
...
...
@@ -177,6 +177,7 @@ libvlc_media_player_set_agl
libvlc_media_player_set_android_context
libvlc_media_player_set_chapter
libvlc_media_player_set_equalizer
libvlc_media_player_set_evas_object
libvlc_media_player_set_hwnd
libvlc_media_player_set_media
libvlc_media_player_set_nsobject
...
...
lib/media_player.c
View file @
99450534
...
...
@@ -584,6 +584,9 @@ libvlc_media_player_new( libvlc_instance_t *instance )
var_Create
(
mp
,
"android-jvm"
,
VLC_VAR_ADDRESS
);
var_Create
(
mp
,
"drawable-androidwindow"
,
VLC_VAR_ADDRESS
);
#endif
#ifdef HAVE_EVAS
var_Create
(
mp
,
"drawable-evasobject"
,
VLC_VAR_ADDRESS
);
#endif
var_Create
(
mp
,
"keyboard-events"
,
VLC_VAR_BOOL
);
var_SetBool
(
mp
,
"keyboard-events"
,
true
);
...
...
@@ -1173,6 +1176,24 @@ void libvlc_media_player_set_android_context( libvlc_media_player_t *p_mi,
#endif
}
/**************************************************************************
* set_evas_object
**************************************************************************/
int
libvlc_media_player_set_evas_object
(
libvlc_media_player_t
*
p_mi
,
void
*
p_evas_object
)
{
assert
(
p_mi
!=
NULL
);
#ifdef HAVE_EVAS
var_SetString
(
p_mi
,
"vout"
,
"evas"
);
var_SetString
(
p_mi
,
"window"
,
"none"
);
var_SetAddress
(
p_mi
,
"drawable-evasobject"
,
p_evas_object
);
return
0
;
#else
(
void
)
p_mi
;
(
void
)
p_evas_object
;
return
-
1
;
#endif
}
void
libvlc_audio_set_callbacks
(
libvlc_media_player_t
*
mp
,
libvlc_audio_play_cb
play_cb
,
libvlc_audio_pause_cb
pause_cb
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment