Skip to content

Commit

Permalink
Merge pull request #130 from anarcat/debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Apr 14, 2023
2 parents 37e78f0 + d6c249a commit 440dee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions player/player.go
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"log"
"strconv"

"github.com/dweymouth/go-mpv"
Expand Down Expand Up @@ -156,6 +157,7 @@ func (p *Player) Init(maxCacheMB int) error {
// Note that the Player API does not provide methods to read
// the play queue. Clients are expected to maintain their own play queue model.
func (p *Player) AppendFile(url string) error {
log.Printf("Adding playback URL: %s", url)
if !p.initialized {
return ErrUnitialized
}
Expand All @@ -164,6 +166,7 @@ func (p *Player) AppendFile(url string) error {

// Plays the specified file, clearing the previous play queue, if any.
func (p *Player) PlayFile(url string) error {
log.Printf("Adding playback URL: %s", url)
if !p.initialized {
return ErrUnitialized
}
Expand Down

0 comments on commit 440dee1

Please sign in to comment.