1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Added support for Android TVB.

This commit is contained in:
Koen 2023-07-18 10:14:17 +02:00
parent 98bdeb5a88
commit 8f974898d1
2 changed files with 9 additions and 2 deletions

View file

@ -8,6 +8,9 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
@ -16,6 +19,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:banner="@drawable/banner"
tools:targetApi="31">
<activity
@ -27,6 +31,11 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity

View file

@ -95,8 +95,6 @@ class TcpListenerService : Service() {
Log.i(TAG, "Started ListenerService")
Toast.makeText(this, "Started FCast service", Toast.LENGTH_LONG).show()
onCastPlay(PlayMessage("video/mp4", "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"))
return START_STICKY
}