, public Tizen::Base::Runtime::ITimerEventListener
, public Tizen::Media::IPlayerEventListener
, public Tizen::Graphics::Opengl::IVideoTextureUpdateListener
- , public Tizen::Ui::Controls::IFormBackEventListener
{
public:
static Tizen::App::Application* CreateInstance(void);
virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
- virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
-
bool Draw(void);
void Update(void);
virtual void OnTextureUpdated(Tizen::Graphics::Opengl::VideoTexture* pVideoTexture);
};
#endif // _GLES_VIDEO_TEXTURE_H_
+
r = GetAppFrame()->GetFrame()->AddControl(__pForm);
TryCatch(!IsFailed(r), delete __pForm, "GetAppFrame()->GetFrame()->AddControl(__pForm) failed.");
- __pForm->SetFormBackEventListener(this);
+ __pForm->AddKeyEventListener(*this);
TryCatch(InitEGL(), , "InitEGL() failed.");
void
GlesVideoTexture::OnKeyReleased(const Control& source, KeyCode keyCode)
{
+ if (keyCode == Tizen::Ui::KEY_BACK)
+ {
+ Terminate();
+ }
}
}
}
-void
-GlesVideoTexture::OnFormBackRequested(Form& source)
-{
- Terminate();
-}
-
bool
GlesVideoTexture::InitEGL(void)
{
{
__isVideoTextureReady = true;
}
+