libvlc-android | Unofficial ready-to-use libVLC for Android | Media library
kandi X-RAY | libvlc-android Summary
kandi X-RAY | libvlc-android Summary
Unofficial ready-to-use libVLC for Android
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Checks if the current device is a compatible CPU
- Read the attributes
- Read elf data from a file
- Read section information
- Invoked when an event is created
- Insert a media from an event
- Remove the media at the given index
- Create a callback for the audio device
- Sets the audio output device
- Called when the surface is created
- Initializes the media array
- Creates the broadcast receiver
- Force the current audio stream to be played
- Enable or disable or disable or disable audio output
- Called when the video layout is updated
- Gets a meta
- Called when the native release is released
- Sets the audio output module
- Set the callback that will be called when mediaRouter is loaded
- Sets the native callback handle
- Initializes the view
- Creates the secondary display presentation
- Create a Uri object from a String
- Delegates events to the listeners
- Invoked when event is changed
- Load the vlcj libraries
libvlc-android Key Features
libvlc-android Examples and Code Snippets
allprojects {
repositories {
[...]
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.josemmo:libvlc-android:X.X.X'
}
splits {
abi {
enable true
include "x86", "x86_64",
Community Discussions
Trending Discussions on libvlc-android
QUESTION
Consider using libVLC for Android, based on the official recommended way.
I went through the compilation process without problems (but took some time).
I'd like to have the snapshot functionality, but I've found some very old (2-3 years old) threads around which states that this feature is still not available (2016) at least "not out of the box' by this thread (2014).
Snapshot functionality is available on other platforms.
Also there are some solutions where they switch from SurfaceView to TextureView.
However I prefer sticking to SurfaceView as TextureView brings some performance drawbacks (according to this topic).
Also on an official android page it's stated:
In API 24 and higher, it's recommended to implement SurfaceView instead of TextureView.
In 2014 there were only 2 dependecies of the snapshot function based on the thread I've mentioned earlier:
- enabling sout module
- enabling png as encoder
When looking the "VLC-Android" repository of VideoLAN, there is a file responsible for building libVLC.
In line 396, sout module seems to be enabled by default.
Before compilation I've enabled png as encoder in vlc/contrib/src/ffmpeg/rules.mak as pointed out in the forum.
However there is still no function related to snapshot in either org.videolan.libvlc.MediaPlayer or in org.videolan.libvlc.VLCVideoLayout.
The question is how can I create a snapshot (either into file, or into buffer) on Android with libVLC, without using TextureView? Update1:Fact1: Found the reason on why it's unavailable on Android. In VLC's core source tree, in file lib/video.c on line 145 there is the snapshot function with a massive FIXME warning:
...ANSWER
Answered 2020-Jan-06 at 03:01A few ways to go about this...
Here's a crossplatform thumbnailer example using libvlc https://code.videolan.org/mfkl/libvlcsharp-samples/blob/master/PreviewThumbnailExtractor.Skia/Program.cs It should work on Android without much editing since it doesn't use any OS specific feature in the script. Should be able to translate it to Java/Kotlin as well I guess.
There is a libvlc function that allows to take snapshot. Just go the time you want and call it. https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__video.html#ga9b0a3870ce962aa0358050b2d5a59143
In VLC Android, the medialibrary now manages thumbnails.
LibVLC 4 now bundles a thumbnailer https://github.com/videolan/vlc/blob/d40eb012b10cc355ea9ad7a13eaf494b8e826d78/include/vlc/libvlc_media.h#L845
Good luck.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libvlc-android
You can use libvlc-android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the libvlc-android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page