casting: update to SDK v0.3.0

This commit is contained in:
Marcus Hanestad 2025-09-02 10:46:25 +02:00
commit 1470d5ac74
2 changed files with 8 additions and 6 deletions

View file

@ -233,7 +233,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
//Rust casting SDK //Rust casting SDK
implementation('org.futo.gitlab.videostreaming.fcast-sdk-jitpack:sender-sdk-minimal:0.2.1') { implementation('org.futo.gitlab.videostreaming.fcast-sdk-jitpack:sender-sdk-minimal:0.3.0') {
// Polycentricandroid includes this // Polycentricandroid includes this
exclude group: 'net.java.dev.jna' exclude group: 'net.java.dev.jna'
} }

View file

@ -306,12 +306,12 @@ class ExpStateCasting {
); );
} }
DeviceConnectionState.Connecting -> { DeviceConnectionState.Connecting, DeviceConnectionState.Reconnecting -> {
device.connectionState = CastConnectionState.CONNECTING
Logger.i(TAG, "Casting connecting to [${device.device.name()}]");
UIDialogs.toast(it, "Connecting to device...")
synchronized(_castingDialogLock) { synchronized(_castingDialogLock) {
if (_currentDialog == null) { if (_currentDialog == null) {
device.connectionState = CastConnectionState.CONNECTING
Logger.i(TAG, "Casting connecting to [${device.device.name()}]");
UIDialogs.toast(it, "Connecting to device...")
_currentDialog = UIDialogs.showDialog( _currentDialog = UIDialogs.showDialog(
context, context,
R.drawable.ic_loader_animated, R.drawable.ic_loader_animated,
@ -393,7 +393,9 @@ class ExpStateCasting {
"Grayjay Android", "Grayjay Android",
"${BuildConfig.VERSION_NAME}-${BuildConfig.FLAVOR}", "${BuildConfig.VERSION_NAME}-${BuildConfig.FLAVOR}",
"${Build.MANUFACTURER} ${Build.MODEL}" "${Build.MANUFACTURER} ${Build.MODEL}"
), device.eventHandler ),
device.eventHandler,
1000.toULong()
) )
Logger.i(TAG, "Requested manager to start device") Logger.i(TAG, "Requested manager to start device")
} catch (e: Throwable) { } catch (e: Throwable) {