Compare commits
No commits in common. "40dec8832d94c588c8b51bb9283b3c3093748134" and "fe6cb68609a3ab3f87dbe8fa3247141b43ccd414" have entirely different histories.
40dec8832d
...
fe6cb68609
|
@ -8,8 +8,6 @@
|
|||
<entry key="../../../../../layout/compose-model-1633594045878.xml" value="1.0" />
|
||||
<entry key="../../../../../layout/compose-model-1633596772266.xml" value="0.18285472972972974" />
|
||||
<entry key="../../../../../layout/compose-model-1633601146222.xml" value="0.18285472972972974" />
|
||||
<entry key="../../../../../layout/compose-model-1633617799626.xml" value="0.3095439189189189" />
|
||||
<entry key="../../../../../layout/compose-model-1633617944748.xml" value="0.4962962962962963" />
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
|
@ -20,7 +18,7 @@
|
|||
<option name="HEAP_SIZE" value="256" />
|
||||
<option name="LOCALE" value="en" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_caster_logo"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@drawable/ic_caster_logo"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.Caster">
|
||||
<activity
|
||||
|
|
|
@ -56,13 +56,13 @@ class ChromecastManagerActivity : ComponentActivity() {
|
|||
|
||||
val streamInfo = _streamInfo as VideoInfo
|
||||
val status = chromeCast.status
|
||||
if (chromeCast.isAppAvailable(ChromeCastHelper.APP_MEDIA_RECEIVER) && !status.isAppRunning(
|
||||
ChromeCastHelper.APP_MEDIA_RECEIVER
|
||||
if (chromeCast.isAppAvailable("CC1AD845") && !status.isAppRunning(
|
||||
"CC1AD845"
|
||||
)
|
||||
) {
|
||||
val app: Application = chromeCast.launchApp(ChromeCastHelper.APP_MEDIA_RECEIVER)
|
||||
val app: Application = chromeCast.launchApp("CC1AD845")
|
||||
}
|
||||
while (!chromeCast.status.isAppRunning(ChromeCastHelper.APP_MEDIA_RECEIVER)) {
|
||||
while (!chromeCast.status.isAppRunning("CC1AD845")) {
|
||||
delay(100)
|
||||
}
|
||||
|
||||
|
@ -129,9 +129,6 @@ class ChromecastManagerActivity : ComponentActivity() {
|
|||
) {
|
||||
Text(text = "Cast")
|
||||
}
|
||||
if(castEnabled.not()){
|
||||
CircularProgressIndicator()
|
||||
}
|
||||
playBackControl()
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +162,7 @@ class ChromecastManagerActivity : ComponentActivity() {
|
|||
|
||||
@Composable
|
||||
fun playBackControl(){
|
||||
Row {
|
||||
Row() {
|
||||
|
||||
IconButton(onClick = {
|
||||
GlobalScope.launch(IO) {
|
||||
|
@ -217,7 +214,6 @@ class ChromecastManagerActivity : ComponentActivity() {
|
|||
}
|
||||
IconButton(onClick = {
|
||||
GlobalScope.launch(IO) {
|
||||
if(chromeCast.runningApp != null)
|
||||
chromeCast.stopApp()
|
||||
}
|
||||
}) {
|
||||
|
|
|
@ -19,7 +19,6 @@ import androidx.compose.material.icons.filled.Share
|
|||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.yausername.youtubedl_android.YoutubeDL
|
||||
|
@ -135,7 +134,7 @@ class ShareRecieverActivity : ComponentActivity() {
|
|||
fun MenuBar() {
|
||||
TopAppBar(
|
||||
title = {
|
||||
Text(stringResource(id = R.string.title_activity_share_reciever))
|
||||
Text("Caster")
|
||||
},
|
||||
navigationIcon = {
|
||||
IconButton(onClick = { }) {
|
||||
|
|
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.9 KiB |