Skip to content

Commit

Permalink
do not idle before stream
Browse files Browse the repository at this point in the history
  • Loading branch information
5rahim committed May 20, 2024
1 parent f2cf4a0 commit 0e5f68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/mediaplayers/mpv/mpv.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (m *Mpv) OpenAndStream(filePath string, args ...string) error {
m.Playback = &Playback{}

// Launch player in idle or replace file
err := m.launchPlayer(true, filePath, args...)
err := m.launchPlayer(false, filePath, args...)
if err != nil {
return err
}
Expand All @@ -194,7 +194,7 @@ func (m *Mpv) OpenAndStream(filePath string, args ...string) error {
}

// Since MPV is launched with the "--idle" flag, we need to load the file
m.conn.Call("loadfile", filePath, "replace")
//m.conn.Call("loadfile", filePath, "replace")

m.isRunning = true
m.Logger.Debug().Msg("mpv: Connection established")
Expand Down

0 comments on commit 0e5f68d

Please sign in to comment.