DenisovAV / flutter_tv

232 stars 40 forks source link

Please help Compilation error.. #14

Closed michalss closed 9 months ago

michalss commented 1 year ago

I cannot build and run your example. Im pretty new to this can you help?

`Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

FAILURE: Build failed with an exception.

michalss commented 1 year ago

trying to run it on ATV..

DenisovAV commented 1 year ago

Looks like you tried to run on Android, there is a package custom_shared_preferences that doesn't work on Android. iOS and AppleTV only. I'm going to update it later to use normal shared_preferences for Android. But now the example is running in Apple ecosystem only

michalss commented 1 year ago

Yeah i do care only about Android TV. Im looking for days some good working example of dpad/atv controller application. Its very had to make some good navigation in flutter. My goal is sidebar navigation and so on.. Can your sample do it pls? Thx a lot

DenisovAV commented 1 year ago

Nope, the purpose of an example is to show that Futter apps can be launched on AppleTV. Navigation is very primitive there. You can check yourself, just change custom_shared_preferences in pubspec.yaml to shared_preferences

michalss commented 1 year ago

ahh ok, is there anything i could use https://downloads.ctfassets.net/2grufn031spf/4nPNbHCr80hiXpZTxWeELi/66a85865b78b744d0e4e65b0190c560c/Aleksandr_Denisov_Flutter_for_TV_ili_Kak_zapilit_prilozheniye_dlya_televizora_2021_04_13_20_32_24.pdf something like this ?

DenisovAV commented 1 year ago

Could you tell me what you exactly need? Dpad/atv works like a keyboard, you need just control focus. My simple example will support it as well, like usual RCU

michalss commented 1 year ago

Thank you, what is RCU(remote control unit) pls ?

I would like to replace our plugin for Kodi. My goal is to make similar Netflix like application with Sidebar and content area where i can focus on all elements by DPAD (move to element and select it). But also i would like to make of use an Media Buttons for video player, if that is even possible. To be hones none ever made some complete example with navigation like a whole thing(i have been searhing, testing for days :( ). All i have seen only partial working containers with index focus(usefull only in some list or wrap component, but not for menu) and thats all. To be honest i picked Flutter because it has a truly multiplatform videoplayer call media_kit, but im stuck on start since i cannot even dpad navigation work with side menu, for example :(...

Thx a lot

BTW flutter is very new to me, but i can do a few other languages, so im not new to dev field..

DenisovAV commented 11 months ago

Sorry for the delayed answer. I'm going to add the player interface to my example soon.

PS: This is an example of RCU

image