[libbluray-devel] JRE for Android part 3

Vitor Dall'Acqua veggav at gmail.com
Fri Jan 29 16:33:57 UTC 2021


I have a guess why it's sluggish now..

This is how kodi sets the temp dir:
#ifdef HAVE_LIBBLURAY_BDJ
  std::string cacheDir =
CSpecialProtocol::TranslatePath("special://userdata/cache/bluray/cache");
  std::string persistentDir =

CSpecialProtocol::TranslatePath("special://userdata/cache/bluray/persistent");
  bd_set_player_setting_str(m_bd, BLURAY_PLAYER_PERSISTENT_ROOT,
persistentDir.c_str());
  bd_set_player_setting_str(m_bd, BLURAY_PLAYER_CACHE_ROOT,
cacheDir.c_str());
#endif

but.. java doesn't honor it and tries to use /tmp/bdj-cache-dir
and that's why I had to use

    option[n++].optionString = str_dup
("-Djava.io.tmpdir=/storage/emulated/0/Android/");

Petri, you know libbluray better than anyone.

What is going on with this?


On Fri, Jan 29, 2021 at 11:18 AM Vitor Dall'Acqua <veggav at gmail.com> wrote:

> Playing on nvidia shield tv pro (2019)
>
> same for 2k movies.
> The problem is somewhere here:
>
> https://github.com/xbmc/xbmc/pull/19102/commits/c895ed9d7652f2345bfb0a347c85b77a81e944b1#diff-2dcdd81ad44e3f2f759d9e58cfb0dcbca6d7509c19a6521b29f8b760579c40cdR4693
>
> On Fri, Jan 29, 2021 at 11:05 AM Shaya Potter <spotter at gmail.com> wrote:
>
>> On Fri, Jan 29, 2021 at 4:02 PM Vitor Dall'Acqua <veggav at gmail.com>
>> wrote:
>>
>>> Java isn't installed system wide. It's just a library being loaded.
>>> if I use adb shell to do this there's nothing to be returned.
>>>
>>> I'll test it now while I test JIT disabled.. but I'm pretty sure it's
>>> how Kodi treats menu playback.
>>> I have fixed the chapter skipping and seeking in titles with popup menus
>>> so I know that is do some really weird things during menu playback, like
>>> stopping time and such.
>>>
>>
>> but I'm not sure why kodi should behave performantly on x86 and not on
>> android (unless the android device is severly underpowered relative to the
>> x86, which can be true).
>>
>> what device are you playing it on?  nvidia shield (generation?) or
>> something else?
>> _______________________________________________
>> libbluray-devel mailing list
>> libbluray-devel at videolan.org
>> https://mailman.videolan.org/listinfo/libbluray-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libbluray-devel/attachments/20210129/a2deebe0/attachment.html>


More information about the libbluray-devel mailing list