Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Tv Samsung Player #777

Open
isnzenauz opened this issue Nov 21, 2024 · 6 comments
Open

Smart Tv Samsung Player #777

isnzenauz opened this issue Nov 21, 2024 · 6 comments

Comments

@isnzenauz
Copy link

isnzenauz commented Nov 21, 2024

Hey Flutter-Tizen Team,
Thanks for this a lot of support its a good job, thanks again.

Im build app of media player to display content of m3u8, not included channels its pure media player.
so i need to publish it to samsung store, the app already working stabel in android phones and android tv, web too.

In liste below my dependencies, i need to know if will work good in samsung tvs,
and what is good for me to display video lives and vods with good rendring no lags its vido_player_tizen or video_player_videohole, video_player_avplay

if its video_player_videohole or avplay can you please tell me how i will integrate it, and with videohole - avplay can i use just TV Emulator to test the player without Real Device

Thank you so mush <3.
Best regards

name: SAID Media TV PLAYER
description: A SUPER TV MEDIA PLAYER.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=3.3.0 <4.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
http: ^1.2.2
flutter_animate: ^4.5.0
youtube_player_flutter: ^9.0.3
flutter_native_splash: ^2.4.1
device_uuid: ^0.0.4
hive_flutter: ^1.1.0
intl: ^0.19.0
google_fonts: ^6.2.1
heroicons_flutter: ^0.4.0
wakelock_plus: ^1.2.8
connectivity_plus: ^5.0.1
url_launcher: ^6.3.0
dio: ^5.6.0
email_otp: ^2.1.2
font_awesome_flutter: ^10.7.0
video_player: ^2.9.2
fvp: ^0.27.0
flutter_bloc: ^8.1.6
equatable: ^2.0.5
cached_network_image: ^3.4.1
media_kit: ^1.1.11 # Primary package.
media_kit_video: ^1.2.5 # For video rendering.
media_kit_libs_video: ^1.0.5 # Native video dependencies.
dpad_container: ^2.0.4

dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^2.0.0

flutter_native_splash:
android: true
color: "#352A6E"
image: assets/images/splash_logo.png
fullscreen: true
android_12:
image: assets/images/splash_logo.png
flutter:
uses-material-design: true
assets:
- assets/images/
- assets/images/animated/

@JSUYA
Copy link
Member

JSUYA commented Nov 25, 2024

Hi, thank you for your interesting.

You may need to add *_tizen packages. like this..

  http: ^1.2.2
  flutter_animate: ^4.5.0
  youtube_player_flutter: ^9.0.3
  flutter_native_splash: ^2.4.1
  device_uuid: ^0.0.4
  hive_flutter: ^1.1.0
  intl: ^0.19.0
  google_fonts: ^6.2.1
  heroicons_flutter: ^0.4.0
  wakelock_plus: ^1.2.8
  # connectivity_plus: ^5.0.1
  connectivity_plus: ^6.1.0
  connectivity_plus_tizen: ^1.2.0
  # url_launcher: ^6.3.0
  url_launcher: ^6.1.0
  url_launcher_tizen: ^2.1.2
  dio: ^5.6.0
  email_otp: ^2.1.2
  font_awesome_flutter: ^10.7.0
  # video_player: ^2.9.2
  video_player_avplay: ^0.5.5
  fvp: ^0.27.0
  flutter_bloc: ^8.1.6
  equatable: ^2.0.5
  cached_network_image: ^3.4.1
  media_kit: ^1.1.11 # Primary package.
  media_kit_video: ^1.2.5 # For video rendering.
  media_kit_libs_video: ^1.0.5 # Native video dependencies.
  dpad_container: ^2.0.4

  # In use in above packages
  package_info_plus_tizen: ^1.0.4
  sqflite_tizen: ^0.1.3

But there seem to be some problems.

  • It depends on which video API you used, and there is no guide. APIs like DurationRage may have different usability, and there may be unimplemented APIs.
    +) If you have any API requirements or requests, we can review them.
  • It seems to use youtube_player_flutter, but this is not supported.
  • Since avplay is a player that supports DRM, it has hardware dependency. Therefore, it cannot be used on the emulator.

Thanks

@isnzenauz
Copy link
Author

isnzenauz commented Nov 25, 2024

thank you so mush sir for your helping:

****can you please tell me what is solution or alternative working with It seems to use youtube_player_flutter.
**** what about this lottie: ^3.1.3 its working in tizen
****so if i fixed the package youtube_player_flutter i can to publish it ?because for navigation and ux ui its perfect i test it already with emulator.

Best Reagards.

@JSUYA
Copy link
Member

JSUYA commented Nov 26, 2024

Hi

****can you please tell me what is solution or alternative working with It seems to use youtube_player_flutter.

****so if i fixed the package youtube_player_flutter i can to publish it ?because for navigation and ux ui its perfect i test it already with emulator.

youtube_player_flutter is implemented using flutter_inappwebview. We do not support flutter_inappwebview. Therefore, youtube_player_flutter does not work on tizen.

The only alternative is youtube_player_iframe. This plugin is implemented using flutter_webview, and since Tizen supports flutter_webview, if you change some of the internal code of youtube_player_iframe, it will work on Tizen TV.

However, there are some issues due to Tizen TV webview. In webview, youtube video rendering is drawn on the surface for video play, not the webview surface. Therefore, the backgroundColor of the player and the scaffold(container) containing the player must be transparent.
I have written a sample code for this. I hope it will help you.
JSUYA/youtube_player_flutter@03affeb
(This code does not guarantee correct behavior.)

**** what about this lottie: ^3.1.3 its working in tizen

The lottie package has no platform dependency, so there is no problem running it on tizen.

@isnzenauz
Copy link
Author

you are helpful <3 thank you so mush.

what about this please:

https://pub.dev/packages/pod_player
https://pub.dev/packages/y_player

@JSUYA
Copy link
Member

JSUYA commented Nov 27, 2024

https://pub.dev/packages/pod_player

If you add video_player_tizen and run the example, everything works fine except for youtube play and vimeo play.
The youtube example throws Exception: videoQuality cannot be empty, but I don't know about this part.

https://pub.dev/packages/y_player

y_player uses media_kit, and since the media_kit_video plugin has implementation code for each platform, it seems to be platform dependent, and the tizen does not support it because there is no implementation for this.

@isnzenauz
Copy link
Author

If i test youtube package in emulator and working good in emulator should be work good in real device?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants