mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-12 12:32:27 +00:00
casting: update to SDK v0.3.0
This commit is contained in:
parent
99813da435
commit
1470d5ac74
2 changed files with 8 additions and 6 deletions
|
@ -233,7 +233,7 @@ dependencies {
|
|||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
||||
|
||||
//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
|
||||
exclude group: 'net.java.dev.jna'
|
||||
}
|
||||
|
|
|
@ -306,12 +306,12 @@ class ExpStateCasting {
|
|||
);
|
||||
}
|
||||
|
||||
DeviceConnectionState.Connecting -> {
|
||||
device.connectionState = CastConnectionState.CONNECTING
|
||||
Logger.i(TAG, "Casting connecting to [${device.device.name()}]");
|
||||
UIDialogs.toast(it, "Connecting to device...")
|
||||
DeviceConnectionState.Connecting, DeviceConnectionState.Reconnecting -> {
|
||||
synchronized(_castingDialogLock) {
|
||||
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(
|
||||
context,
|
||||
R.drawable.ic_loader_animated,
|
||||
|
@ -393,7 +393,9 @@ class ExpStateCasting {
|
|||
"Grayjay Android",
|
||||
"${BuildConfig.VERSION_NAME}-${BuildConfig.FLAVOR}",
|
||||
"${Build.MANUFACTURER} ${Build.MODEL}"
|
||||
), device.eventHandler
|
||||
),
|
||||
device.eventHandler,
|
||||
1000.toULong()
|
||||
)
|
||||
Logger.i(TAG, "Requested manager to start device")
|
||||
} catch (e: Throwable) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue