Search found 7 matches

Go to advanced search

by someusername
16 Apr 2021 01:20
Forum: Development around libVLC
Topic: TS duration is always 0 if use libvlc_new_media_callbacks
Replies: 4
Views: 1140

Re: TS duration is always 0 if use libvlc_new_media_callbacks

TS need to read some data from start and from end. There's no stored information like MP4 or MKV. Yes, that is right. In my implementation, libvlc_new_media_callbacks has direct access to the file and should also find the duration quickly as if I were opening the file using the path. I tried to fin...
by someusername
14 Apr 2021 21:27
Forum: Development around libVLC
Topic: TS duration is always 0 if use libvlc_new_media_callbacks
Replies: 4
Views: 1140

Re: TS duration is always 0 if use libvlc_new_media_callbacks

TS duration is just a rough estimate from file size. Using callbacks, the file size is unknown. but libvlc_media_t* libvlc_media_new_callbacks ( libvlc_instance_t * instance, libvlc_media_open_cb open_cb, //<-- libvlc_media_read_cb read_cb, libvlc_media_seek_cb seek_cb, libvlc_media_close_cb close_...
by someusername
14 Apr 2021 12:59
Forum: Development around libVLC
Topic: TS duration is always 0 if use libvlc_new_media_callbacks
Replies: 4
Views: 1140

TS duration is always 0 if use libvlc_new_media_callbacks

Hi! I would like to know if this is a bug or by design. libvlc_new_media_callbacks : TS duration - 0 (why?) mp4 duration - perfectly mkv duration - perfectly avi duration - perfectly libvlc_media_new_path , libvlc_media_new_fd : TS duration - perfectly mp4 duration - perfectly mkv duration - perfect...
by someusername
15 Feb 2020 19:11
Forum: Development around libVLC
Topic: libVLC and android
Replies: 1
Views: 295

Re: libVLC and android

works for me

~
VLCVideoLayout vlcVideoLayout = //findViewById VLCVideoLayout

MediaPlayer mediaPlayer = new MediaPlayer(new Media(new LibVLC(context, args), /*url path etc*/ ));

mediaPlayer.attachViews(vlcVideoLayout, null, false, false);
mediaPlayer.play();
by someusername
06 Jan 2020 00:24
Forum: VLC for Android and Chrome OS
Topic: Compiled APK file size over 80 MB
Replies: 1
Views: 145

Re: Compiled APK file size over 80 MB

Hi
https://developer.android.com/guide/app-bundle/
https://developer.android.com/google/play/publishing/multiple-apks
Maybe help you

org.videolan.android:libvlc-all:3.2.3
You compiled for all arm arm64 x86 x86-64 = (libc++_shared.so, libvlc.so, libvlcjni.so)x4 = 12 .so files in 1 apk
by someusername
05 Nov 2019 10:45
Forum: Development around libVLC
Topic: Own DataSource
Replies: 2
Views: 512

Re: Own DataSource

It seems that the developers did not provide such an interface. :(
by someusername
31 Oct 2019 18:51
Forum: Development around libVLC
Topic: Own DataSource
Replies: 2
Views: 512

Own DataSource

Hi everyone! I would like to play encrypted audio using libVLC But I did not find how I can make my data source implementation public void play(@NonNull AssetFileDescriptor afd) { Media media = new Media(this.mLibVLC, afd); this.play(media); } public void play(@NonNull String path) { Media media = n...

Go to advanced search