-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03d9dfd
commit e3dbbcc
Showing
16 changed files
with
238 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
composeApp/src/commonMain/kotlin/com/corner/dlna/TvMAudioRenderingControlService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.corner.dlna | ||
|
||
import org.jupnp.model.types.UnsignedIntegerFourBytes | ||
import org.jupnp.model.types.UnsignedIntegerTwoBytes | ||
import org.jupnp.support.model.Channel | ||
import org.jupnp.support.renderingcontrol.AbstractAudioRenderingControl | ||
import org.slf4j.LoggerFactory | ||
|
||
|
||
class TvMAudioRenderingControlService:AbstractAudioRenderingControl() { | ||
private val log = LoggerFactory.getLogger(this::class.java) | ||
|
||
override fun getCurrentInstanceIds(): Array<UnsignedIntegerFourBytes> { | ||
log.debug("getCurrentInstanceIds not yet implemented") | ||
return emptyArray() | ||
} | ||
|
||
override fun getMute(instanceId: UnsignedIntegerFourBytes?, channelName: String?): Boolean { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun setMute(instanceId: UnsignedIntegerFourBytes?, channelName: String?, desiredMute: Boolean) { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getVolume(instanceId: UnsignedIntegerFourBytes?, channelName: String?): UnsignedIntegerTwoBytes { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun setVolume( | ||
instanceId: UnsignedIntegerFourBytes?, | ||
channelName: String?, | ||
desiredVolume: UnsignedIntegerTwoBytes? | ||
) { | ||
log.info("setVolume instanceId:{} channelName:{} desiredVolume:{}", instanceId, channelName, desiredVolume) | ||
} | ||
|
||
override fun getCurrentChannels(): Array<Channel> { | ||
TODO("Not yet implemented") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.