Fix for sound not played after resuming widget
authorPiotr Grad <p.grad@samsung.com>
Mon, 30 Sep 2013 15:08:25 +0000 (17:08 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 11 Oct 2013 05:12:41 +0000 (05:12 +0000)
commite8023ad3c5c19cba1c5c9b231f64a6833c8254b4
tree4c4e444f0cd780bf3ce0261f6c8d732375c23c07
parent21f5a5d57409c66b69dfa326b13429a534660d35
Fix for sound not played after resuming widget

[Title] Sound not played after resuming application when clicking play, just after resume.
[Issue] N_SE-51493
[Problem] Suspend method from HTMLMediaElement was causing gstreamer state change to NULL, so that further play trigger was not working
[Solution] Prevent from changing network and ready states when player is suspended, fixed paused method (paused means "not playing" for HTMLMediaElement).
           Add guard for seek method (seek can be performed only when GStreamer is in playing or paused state. Updated suspend time when seeking. When in suspend state suspendTime is returned.

Change-Id: I318221b351ae1b93701ff07200b8d5524831e92f
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h