void
PlayerForm::OnPlayerEndOfClip(void)
{
- //Insert your code to operate after the player reached end of clip.
UpdateInfo();
OnMaxPercentComplete();
if (__isUrlContent == true)
GetFilePathFromConfig();
}
RefreshButtonTexts();
+ //slider reset to 0 is called as an event to
+ //avoid displaying the last value of the slider
+ SendUserEvent(SLIDER_RESET, null);
}
void
}
void
+PlayerForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ AppLog("PlayerForm::OnUserEventReceivedN : request id = %d", requestId);
+ switch (requestId)
+ {
+ case SLIDER_RESET:
+ {
+ if (__pSliderPos != null)
+ {
+ __pSliderPos->SetEnabled(false);
+ __pSliderPos->SetValue(0);
+ __pSliderPos->Invalidate(true);
+ }
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
PlayerForm::OnTimerExpired(Timer& timer)
{
TryReturn(__pPlayer != null, , "Player is NULL!!");
virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
//Adjustment listener
virtual void OnAdjustmentValueChanged(const Tizen::Ui::Control& source, int adjustment);
+
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
//Player callbacks
void OnPlayerOpened(result r);
void OnPlayerEndOfClip(void);
static const int ID_PREV = FOOTER_ITEM_BASE;
static const int ID_NEXT = FOOTER_ITEM_BASE + 1;
static const int ID_PLAY = FOOTER_ITEM_BASE + 2;
+ static const int SLIDER_RESET =101;
CONST_INT(ID_STOP);
CONST_INT(ID_BACK);
CONST_INT(ID_BUTTON_CLOSE_POPUP_MESSAGE);