-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/482 http video #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
log.d("PlayerCommand.Load: $_currentVideoId != ${command.platformId} start:${command.startPosition}") | ||
if (_currentVideoId != command.platformId) { | ||
_player?.loadVideo(command.platformId, command.startPosition / 1000f) | ||
log.d("PlayerCommand.Load: $_currentVideoId != ${command.item.media.platformId} start:${command.startPosition}") |
Check warning
Code scanning / detekt
Line detected that is longer than the defined maximum line length in the code style. Warning
_player?.loadVideo(command.platformId, command.startPosition / 1000f) | ||
log.d("PlayerCommand.Load: $_currentVideoId != ${command.item.media.platformId} start:${command.startPosition}") | ||
if (_currentVideoId != command.item.media.platformId) { | ||
_player?.loadVideo(command.item.media.platformId, command.startPosition / 1000f) |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
hub/src/main/kotlin/uk/co/sentinelweb/cuer/hub/ui/player/vlc/VlcPlayerSwingWindow.kt
Fixed
Show fixed
Hide fixed
import io.ktor.server.request.* | ||
import io.ktor.server.response.* | ||
import io.ktor.server.routing.* | ||
import io.ktor.utils.io.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
remote/src/jvmAndAndroid/kotlin/uk/co/sentinelweb/cuer/remote/server/JvmRemoteWebServer.kt
Fixed
Show fixed
Hide fixed
is CuerSelectSendTo -> | ||
remotesDialogLauncher.launchRemotesDialog( | ||
{ remoteNodeDomain, screen -> | ||
remotesMviView.dispatch(Event.OnActionSendToSelected(value.sendNode, remoteNodeDomain)) |
Check warning
Code scanning / detekt
Line detected that is longer than the defined maximum line length in the code style. Warning
NetResult.Data(true) | ||
} catch (e: RequestFailureException) { | ||
NetResult.HttpError(e) | ||
} catch (e: Exception) { |
Check warning
Code scanning / detekt
Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled. Warning
import uk.co.sentinelweb.cuer.remote.server.message.AvailableMessage.MsgType.Ping | ||
|
||
class RemotesStoreFactory constructor( | ||
class RemotesStoreFactory( |
Check warning
Code scanning / detekt
The more parameters a function has the more complex it is. Long parameter lists are often used to control complex algorithms and violate the Single Responsibility Principle. Prefer functions with short parameter lists. Warning
Dialog(onDismissRequest = { remotesDialogLauncher.hideRemotesDialog() }) { | ||
Surface( | ||
shape = MaterialTheme.shapes.medium, | ||
elevation = 24.dp |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning
import org.koin.core.component.inject | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.LOCAL | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.LOCAL | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.MEMORY | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
hub/src/main/kotlin/uk/co/sentinelweb/cuer/hub/ui/player/vlc/VlcPlayerSwingWindow.kt
Fixed
Show fixed
Hide fixed
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Identifier.Locator | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.REMOTE | ||
import uk.co.sentinelweb.cuer.domain.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Identifier.Locator | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source | ||
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.REMOTE | ||
import uk.co.sentinelweb.cuer.domain.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
import uk.co.sentinelweb.cuer.app.usecase.GetFolderListUseCase | ||
import uk.co.sentinelweb.cuer.core.providers.PlayerConfigProvider | ||
import uk.co.sentinelweb.cuer.core.wrapper.LogWrapper | ||
import uk.co.sentinelweb.cuer.domain.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
domain/src/commonMain/kotlin/uk/co/sentinelweb/cuer/remote/server/RemoteWebServerContract.kt
Fixed
Show fixed
Hide fixed
domain/src/commonMain/kotlin/uk/co/sentinelweb/cuer/remote/server/RemoteWebServerContract.kt
Fixed
Show fixed
Hide fixed
domain/src/commonMain/kotlin/uk/co/sentinelweb/cuer/remote/server/RemoteWebServerContract.kt
Fixed
Show fixed
Hide fixed
@@ -0,0 +1,15 @@ | |||
package uk.co.sentinelweb.cuer.core.wrapper | |||
|
|||
import platform.Foundation.* |
Check warning
Code scanning / detekt
Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning
implements #482