|
@@ -69,20 +69,6 @@ const playerVolumeControlIcon = computed(() => {
|
|
|
|
|
|
const soundcloudTrackId = computed(() => props.song.mediaSource.split(":")[1]);
|
|
|
|
|
|
-const playerSetTrackPosition = event => {
|
|
|
- console.debug(TAG, "PLAYER SET TRACK POSITION");
|
|
|
-
|
|
|
- soundcloudGetDuration(duration => {
|
|
|
- soundcloudSeekTo(
|
|
|
- Number(
|
|
|
- Number(duration / 1000) *
|
|
|
- ((event.pageX - event.target.getBoundingClientRect().left) /
|
|
|
- canvasWidth.value)
|
|
|
- ) * 1000
|
|
|
- );
|
|
|
- });
|
|
|
-};
|
|
|
-
|
|
|
const playerPlay = () => {
|
|
|
console.debug(TAG, "PLAYER PLAY");
|
|
|
|
|
@@ -108,6 +94,21 @@ const playerHardStop = () => {
|
|
|
playerStop();
|
|
|
};
|
|
|
|
|
|
+const playerSetTrackPosition = event => {
|
|
|
+ console.debug(TAG, "PLAYER SET TRACK POSITION");
|
|
|
+
|
|
|
+ playerPlay();
|
|
|
+ soundcloudGetDuration(duration => {
|
|
|
+ soundcloudSeekTo(
|
|
|
+ Number(
|
|
|
+ Number(duration / 1000) *
|
|
|
+ ((event.pageX - event.target.getBoundingClientRect().left) /
|
|
|
+ canvasWidth.value)
|
|
|
+ ) * 1000
|
|
|
+ );
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
const playerToggleMute = () => {
|
|
|
console.debug(TAG, "PLAYER TOGGLE MUTE");
|
|
|
|