All Projects → jaychou2012 → flutter_tv

jaychou2012 / flutter_tv

Licence: BSD-3-Clause license
flutter_tv:Flutter TV电视应用开发实践

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to flutter tv

flutterTV
flutterTV:Flutter TV电视应用开发实践
Stars: ✭ 65 (-18.75%)
Mutual labels:  tv, fluttertv
lgtv2mqtt
Interface between LG WebOS Smart TVs and MQTT 📺
Stars: ✭ 90 (+12.5%)
Mutual labels:  tv
Amazon-Alexa-As-LG-TV-Remote
Control your LG WebOS 3.0+ TV with Amazon Alexa
Stars: ✭ 22 (-72.5%)
Mutual labels:  tv
megacubo
A intuitive, multi-language and cross-platform IPTV player. Available for Windows, Android, Linux & macOS.
Stars: ✭ 134 (+67.5%)
Mutual labels:  tv
homebridge-vieramatic
Homebridge plugin for Panasonic™ Viera™ TVs (includes support for 2018 and later models)
Stars: ✭ 39 (-51.25%)
Mutual labels:  tv
epg
Pre-built EPGs for Malaysian TV Providers, including Astro, unifi TV and MYTV Broadcasting - Currently generating on my own PC, updates every week
Stars: ✭ 51 (-36.25%)
Mutual labels:  tv
PlexMeetsHomeAssistant
Custom card which integrates plex into Home Assistant and makes it possible to launch movies or tv shows on TV with a simple click
Stars: ✭ 73 (-8.75%)
Mutual labels:  tv
P4S
Premieres for Sonarr - a small sonarr companion app to find all the new shows you've never known you're interested in!
Stars: ✭ 22 (-72.5%)
Mutual labels:  tv
bigscreen-player
Simplified media playback for bigscreen devices
Stars: ✭ 62 (-22.5%)
Mutual labels:  tv
popcorn-android
Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player ( Android / AndroidTV ) A Butter-Project Fork
Stars: ✭ 1,051 (+1213.75%)
Mutual labels:  tv
PicoVGA
VGA/TV display on Raspberry Pico
Stars: ✭ 119 (+48.75%)
Mutual labels:  tv
anime-streaming
📺 A curated list of worldwide legal anime streaming.
Stars: ✭ 49 (-38.75%)
Mutual labels:  tv
IPTV-Player
IPTV Player (Delphi, VLC)
Stars: ✭ 37 (-53.75%)
Mutual labels:  tv
NontonTV
Aplikasi android untuk menonton tv streaming. Cocok untuk android box/stb.
Stars: ✭ 42 (-47.5%)
Mutual labels:  tv
stremio-addons-list
A community curated list of Stremio Addons
Stars: ✭ 330 (+312.5%)
Mutual labels:  tv
torrent-indexer
Yet another node.js torrent scraper made especially for movie, series, anime and music (scrape from 1337x, eztv, limetorrents, rarbg, skytorrents, thepiratebay, torrentproject, yts and zooqle)
Stars: ✭ 50 (-37.5%)
Mutual labels:  tv
JioTV
🤩 JioTV Play is script for Streaming LiveTV on Indian Server or LocalHost
Stars: ✭ 132 (+65%)
Mutual labels:  tv
obplayer
📻 OBPlayer Streaming Automation Playout with CAP EAS Alerting
Stars: ✭ 93 (+16.25%)
Mutual labels:  tv
homebridge-bravia-tvos
Homebridge plugin for Sony Bravia Android TVs
Stars: ✭ 293 (+266.25%)
Mutual labels:  tv
dut-iptv
Github repo containing Kodi addons for CanalDigitaal IPTV, F1 TV, KPN/Telfort/XS4All iTV, NLZiet, Telenet, T-Mobile TV, Videoland and Ziggo Go
Stars: ✭ 26 (-67.5%)
Mutual labels:  tv

flutter_tv

flutter_tv

Flutter Dart技术交流QQ群:979966470

之前一直在进行Flutter在移动端的应用尝试,现在我们将拓展到TV应用的开发上来。我们知道目前的智能电视和机顶盒都是基于Android系统的,所以一般的TV应用开发都是采用Android原生进行开发,Google对Android TV的开发也进行了一些规范和库的制定。当然也有的是采用的B/S架构进行设计的。这里我们将进行尝试Flutter开发TV应用。虽然写出来了,效果也还可以,体验流畅,自动适配。不过开发成本还是挺高的,按键监听、焦点处理和焦点框处理比较麻烦,由于Google官方并没有推出Flutter TV应用的SDK,所以暂时还是不要用Flutter编写TV应用了,使用原生leanback等库进行开发或者B/S结构开发。

Flutter TV应用开发主要难点

由于Google Flutter官方并没有推出TV版Flutter SDK,所以用Flutter尝试编写TV应用,主要是焦点框和焦点移动、焦点顺序的处理,其他的和手机应用差别不大。按键监听、焦点框和焦点处理比较麻烦,所以Flutter的TV应用开发还不成熟,体验还不错,很流畅,开发成本比较高。所以这里我们只是作为研究拓展,实际开发还是要选择原生的TV支持库进行开发,如官方的Leanback,或者采用B/S架构进行开发TV应用。

原生Android的控件就默认有焦点的处理属性,直接配置使用即可。还支持指定下一个焦点的id。

//焦点处理
android:focusable="true"
//触摸模式下是否可以点击,可选可不选
android:focusableInTouchMode="true"

Flutter开发TV应用就要自己处理按键监听、焦点和焦点框、焦点移动顺序了,比较的麻烦,处理好了这几个问题,开发起来也就没太大难度了。

不过最新版的Flutter多了一个DefaultFocusTraversal这个类,我们可以进行指定方向自动移动焦点了,相对简单了一些。

APK下载体验地址:https://github.com/jaychou2012/flutter_tv/blob/master/app-release.apk?raw=true

运行在机顶盒上看效果。

我们先看下Flutter TV开发实现的效果图:

运行效果

运行效果

运行效果

运行效果

《从零开始学Flutter》已出版

新书涵盖Flutter最新的大部分的组件技术和内容,从零开始深入讲解其中涉及的技术点,包括:Dart基础 、Flutter基础组件、Flutter开发规范、路由与生命周期、Http网络请求、应用打包与发布等,值得购买阅读。

从零开始学Flutter

纸质书购买:

京东 天猫 当当

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].