Skip to content

Conversation

@JSUYA
Copy link
Member

@JSUYA JSUYA commented Aug 28, 2025

#873

  • Updated the guide in the readme.
  • Modified exception messages that occurred based on the api-version and platform version. Going forward, compatibility is supported for OS versions 6.5 to 9.0, enabling distribution as a single package(6.0 and 10.0 should be distributed separately).

(This PR has been checked on TizenOS version 9.0.)

@JSUYA
Copy link
Member Author

JSUYA commented Aug 28, 2025

@xiaowei-guan @gin7773
Please review whether the README's guide is appropriate.
(https://github.com/JSUYA/plugins/tree/avplay_multios/packages/video_player_avplay)
I have verified this PR on Tizen 9.0 TV. If you have other versions of TV devices, please test them.

@gin7773
Copy link
Contributor

gin7773 commented Aug 29, 2025

I set api-version to 8.0 and 9.0,then compiled the tpk package and ran it, I got a same crash log:

root@localhost:~# --------- beginning of /dev/log_main
I/ConsoleMessage( 6170): eglGetDisplay [EGL_DBG]: eglGetDisplay:2195, Winsys [tizen] path
E/ConsoleMessage( 6170): FlutterApplication.cs: Run(106) > Unhandled exception: System.DllNotFoundException: Unable to load shared library 'flutter_plugins.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libflutter_plugins.so.so: cannot open shared object file: No such file or directory
E/ConsoleMessage( 6170):    at GeneratedPluginRegistrant.DeviceInfoPlusTizenPluginRegisterWithRegistrar(FlutterDesktopPluginRegistrar registrar)
E/ConsoleMessage( 6170):    at GeneratedPluginRegistrant.RegisterPlugins(IPluginRegistry registry) in Runner.dll:token 0x6000003+0x0
E/ConsoleMessage( 6170):    at Runner.App.OnCreate() in Runner.dll:token 0x6000005+0x6
E/ConsoleMessage( 6170):    at Tizen.Applications.CoreBackend.UICoreBackend.OnCreateNative(IntPtr data) in /home/abuild/rpmbuild/BUILD/csapi-tizenfx-12.0.0.18559+nui22351/src/Tizen.Applications.UI/Tizen.Applications.CoreBackend/UICoreBackend.cs:line 156
E/ConsoleMessage( 6170): DotNET onSigabrt called on org.tizen.video_player_avplay_example / DN_play_example(6170)
E/ConsoleMessage( 6170): onSigabrt called

@xiaowei-guan
Copy link
Contributor

I set api-version to 8.0 and 9.0,then compiled the tpk package and ran it, I got a same crash log:

root@localhost:~# --------- beginning of /dev/log_main
I/ConsoleMessage( 6170): eglGetDisplay [EGL_DBG]: eglGetDisplay:2195, Winsys [tizen] path
E/ConsoleMessage( 6170): FlutterApplication.cs: Run(106) > Unhandled exception: System.DllNotFoundException: Unable to load shared library 'flutter_plugins.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libflutter_plugins.so.so: cannot open shared object file: No such file or directory
E/ConsoleMessage( 6170):    at GeneratedPluginRegistrant.DeviceInfoPlusTizenPluginRegisterWithRegistrar(FlutterDesktopPluginRegistrar registrar)
E/ConsoleMessage( 6170):    at GeneratedPluginRegistrant.RegisterPlugins(IPluginRegistry registry) in Runner.dll:token 0x6000003+0x0
E/ConsoleMessage( 6170):    at Runner.App.OnCreate() in Runner.dll:token 0x6000005+0x6
E/ConsoleMessage( 6170):    at Tizen.Applications.CoreBackend.UICoreBackend.OnCreateNative(IntPtr data) in /home/abuild/rpmbuild/BUILD/csapi-tizenfx-12.0.0.18559+nui22351/src/Tizen.Applications.UI/Tizen.Applications.CoreBackend/UICoreBackend.cs:line 156
E/ConsoleMessage( 6170): DotNET onSigabrt called on org.tizen.video_player_avplay_example / DN_play_example(6170)
E/ConsoleMessage( 6170): onSigabrt called

Because the sample app doesn't include plusplayer libs

@JSUYA
Copy link
Member Author

JSUYA commented Aug 29, 2025

Oh... In my test, the so files were packaging correctly... I think I must have misunderstood something. I'll check.

@JSUYA
Copy link
Member Author

JSUYA commented Aug 29, 2025

Oh... In my test, the so files were packaging correctly... I think I must have misunderstood something. I'll check.

I found that only the so file under apiVersion is copied in flutter-tizen/lib/build_targets/plugins.dart:245.
I will find other way.

@JSUYA JSUYA marked this pull request as draft August 29, 2025 09:29
@JSUYA JSUYA closed this Aug 29, 2025
@JSUYA JSUYA reopened this Aug 29, 2025
@JSUYA
Copy link
Member Author

JSUYA commented Aug 29, 2025

I will find other way.

flutter-tizen/flutter-tizen#662
In native plugin builds, only the SO files in lib, lib/arch, and lib/arch/apiVersion are packaged together.
Therefore, I added a way that allows plugins to add user paths(USER_LIB_PATH).

However, I'm not sure if this is the best approach. If you have a better idea, please share it.

@JSUYA JSUYA marked this pull request as ready for review August 29, 2025 11:17
@JSUYA
Copy link
Member Author

JSUYA commented Sep 1, 2025

@xiaowei-guan @gin7773

6.5, 7.0, 8.0, 9.0 libs are all identical (libslive-jsoncpp.so appears to differ per version), so existing libs were not modified.
Only the exception condition in _checkPlatformAndApiVersion() was modified.

The task of removing duplicate libs is deferred to the next step.

@JSUYA JSUYA merged commit 1cfb5af into flutter-tizen:master Sep 2, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants