Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vlc-rs
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
6
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
VideoLAN
vlc-rs
Merge requests
!15
Bind libvlc_media_player_set_android_context()
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Bind libvlc_media_player_set_android_context()
rofferom/vlc-rs:android-support
into
master
Overview
0
Commits
1
Pipelines
4
Changes
1
Open
Romain Roffé
requested to merge
rofferom/vlc-rs:android-support
into
master
2 years ago
Overview
0
Commits
1
Pipelines
4
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 3
a8df243a
2 years ago
version 2
6af579f1
2 years ago
version 1
4683de04
2 years ago
master (HEAD)
and
latest version
latest version
55e2d7ad
1 commit,
2 years ago
version 3
a8df243a
1 commit,
2 years ago
version 2
6af579f1
1 commit,
2 years ago
version 1
4683de04
1 commit,
2 years ago
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/media_player.rs
+
7
−
0
Options
@@ -147,6 +147,13 @@ impl MediaPlayer {
unsafe
{
sys
::
libvlc_media_player_set_hwnd
(
self
.ptr
,
drawable
)
};
}
/// Set an Android surface where the media player should render its video output.
///
/// drawable is a org.videolan.libvlc.AWindow jobject from the libvlcjni project
pub
fn
set_android_context
(
&
self
,
drawable
:
*
mut
c_void
)
{
unsafe
{
sys
::
libvlc_media_player_set_android_context
(
self
.ptr
,
drawable
)
};
}
/// Get the Windows API window handle (HWND) previously set with set_hwnd().
pub
fn
get_hwnd
(
&
self
)
->
Option
<*
mut
c_void
>
{
let
hwnd
=
unsafe
{
sys
::
libvlc_media_player_get_hwnd
(
self
.ptr
)
};
Loading