rsked/vlcplayer.cc
/// Returns true if VLC is done playing, or the connection to the
/// process is broken. Will also return false if the player is paused.
///
/// * Will NOT throw.
///
Returns true if VLC is done playing, or the connection to the
process is broken. Will also return false if the player is paused.

Will NOT throw.
Returns true if VLC is done playing or the connection to the process is broken . Will also return false if the player is paused . Will NOT throw .
bool Vlc_player::completed()
{
    try {
        do_command("is_playing",false);
        return (m_last_resp.npos == m_last_resp.find("0\n"));
    }
    catch (const std::exception &err) {
        LOG_ERROR(Lgr) << m_name << " completed check failed: " << err.what();
    }
    return true;
}
bool Vlc_player :: completed ( ) { try { do_command ( " " , false ) ; return ( m_last_resp . npos == m_last_resp . find ( " \n " ) ) ; } catch ( const std :: exception & err ) { LOG_ERROR ( Lgr ) << m_name << " " << err . what ( ) ; } return true ; }
Returns true if VLC is done playing, or the connection to the
process is broken.
Returns true if VLC is done playing or the connection to the process is broken .
// command returns '0\n' if not playing, '1\n' if playing. // also: is_playing will return 1 if the player is paused