HTMLElement::insertedInto(insertionPoint);
if (insertionPoint->inDocument() && !getAttribute(srcAttr).isEmpty() && m_networkState == NETWORK_EMPTY)
scheduleLoad(MediaResource);
+
+#if ENABLE(TIZEN_GSTREAMER_VIDEO)
+ resume();
+#endif
configureMediaControls();
return InsertionDone;
}
LOG(Media, "HTMLMediaElement::removedFromDocument");
configureMediaControls();
if (m_networkState > NETWORK_EMPTY)
+#if ENABLE(TIZEN_GSTREAMER_VIDEO)
+ suspend(PageWillBeSuspended);
+#else
pause();
+#endif
if (m_isFullscreen)
exitFullscreen();
}
stopPeriodicTimers();
cancelPendingEventsAndCallbacks();
#if ENABLE(TIZEN_GSTREAMER_VIDEO)
+ if (m_player)
+ m_player->suspend();
if (isVideo())
power_unlock_state(POWER_STATE_NORMAL);
#endif
if (isVideo())
return true;
+ if (m_player->hasVideo())
+ return true;
+
#if ENABLE(TIZEN_EXTENSIBLE_API)
if (!TizenExtensibleAPI::extensibleAPI().backgroundMusic())
return true;