Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-945

Declarative video element - osition cannot be set twice to the same value when playback is ongoing.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 1.1.0
    • 1.1.1
    • Multimedia
    • None
    • Symbian^3 Hardware.
    • 62b43fcb10cfc6285c23d768501f98bdff01cd7b

      Position cannot be set twice to the same place when playback is ongoing.

      Steps to reproduce:

      1 Start Playback.
      2 Set position to value x (0 ms)
      3 Let playback run, position will increment every second. (position is already 10000 ms)
      4 Set position to value x (0 ms)

      Position is not changed, it remains at 10000 ms, and playback continues from there.

      After inspecting the code found this:

      void QDeclarativeMediaBase::setPosition(int position)
      {
          if (m_position == position)
              return;
      
          m_position = position;
          if (m_complete)
              m_playerControl->setPosition(m_position);
          else
              emit positionChanged();
      }
      

      Problem is solved when code is changed for this:

      void QDeclarativeMediaBase::setPosition(int position)
      {
          if (!m_complete ? m_position : m_playerControl->position() == position)
              return;
      
          m_position = position;
          if (m_complete)
              m_playerControl->setPosition(m_position);
          else
              emit positionChanged();
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ling.hu@nokia.com Ling Hu (closed Nokia identity) (Inactive)
            oscar.fernandez Oscar Fernandez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes