Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
M
medialibrary
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 70
    • Issues 70
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLAN
  • medialibrary
  • Issues
  • #267

Closed
Open
Created Sep 17, 2020 by Pierre Lamot@chub

playcount is not properly incremented when playing stream media

  • media is inserted in the medialib as a stream, then played.
  • the media playback starts correctly and I played it from the beginning til the end
ml_unique_ptr<vlc_ml_media_t> s{vlc_ml_get_media_by_mrl( m_ml, qtu( url ))};
if (!s){
    reset(vlc_ml_new_stream( m_ml, qtu( url ) ));
}
if (!s)
    return;
vlc::playlist::InputItemPtr item(vlc_ml_get_input_item( m_ml, s->i_id ), false);
QVector<vlc::playlist::Media> medias = { vlc::playlist::Media(item.get()) };
m_intf->p_sys->p_mainPlaylistController->append(medias, true);
  • the media play_count and last_played_date is not updated when the media ends.
sqlite3 ~/.local/share/vlc/ml/ml.db "SELECT filename, import_type, play_count, last_played_date  FROM Media order by id_media desc  LIMIT 1;"
ped1080p.webm|2||

tested with https://streams.videolan.org/streams/mkv/ped1080p.webm

Edited Sep 17, 2020 by Pierre Lamot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None