Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Video playback on dynamically populated list of video widgets
Forum Updated to NodeBB v4.3 + New Features

Video playback on dynamically populated list of video widgets

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 721 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • understatementOfTheYearU Offline
    understatementOfTheYearU Offline
    understatementOfTheYear
    wrote on last edited by
    #1

    Hi,

    I've been trying to sort out a crash issue I've been having.
    I'm populating a QScrollArea with dynamically generated widgets that all have their own QVideoWidget.
    The idea is that when you're hovering over one of the widgets with your cursor, the thumbnail video will play. This seems to work to a certain degree for a while and then crashes with
    an 'interrupted by signal 11: SIGSEGV' error.

    My thought was that since only one video will play at any given time, I would create a single QMediaPlayer object and bind a widget's QVideoPlayer object to that. I would then unbind and rebind as one hovers over the next widget.

    I can only guess why I get this error. I figured it was because I was trying to rebind another QvideoWidget without successfully unbinding or somehow severing the connection to the last one the QMediaPlayer was set to.

    I'm not terribly familiar with the inner workings of video playback with PyQt so if anyone out there has had some experience I would appreciate hearing from you.

    Best,
    -Mark

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should show the code you are using as well as the backtrace of the crash otherwise it's pretty much Crystal Ball debugging.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved