uint32_t previous,
uint32_t current) {}
virtual bool IsHighBitRate() const { return false; }
+ virtual void UpdateEventData(void* data) {}
virtual void NotifyParentalRatingInfo(const std::string& info,
const std::string& url) {}
virtual void NotifyDownloadableFontInfo(const std::string& scheme_id_uri,
}
media_player_->SetPreferTextLanguage(lang);
}
+
+void TizenRendererImpl::UpdateEventData(std::string data) {
+ content::WebContentsDelegate* web_contents_delegate =
+ GetWebContentsDelegate();
+ if (!web_contents_delegate) {
+ LOG_ID(ERROR, player_id_) << "web_contents_delegate is null";
+ return;
+ }
+
+ web_contents_delegate->UpdateEventData(
+ static_cast<void*>(const_cast<char*>(data.c_str())));
+}
+
content::WebContentsDelegate* TizenRendererImpl::GetWebContentsDelegate()
const {
content::WebContents* web_contents = GetWebContents();
void SetActiveAudioTrack(int index) override;
void SetActiveVideoTrack(int index) override;
void SetPreferTextLanguage(const std::string& lang) override;
+ void UpdateEventData(std::string data);
#endif
content::WebContents* GetWebContents() const;
LOG_ID(INFO, player_id_) << "not supported scheme id uri,uri:" << uri;
return;
}
-#if !defined(EWK_BRINGUP)
+
if (!uri.compare("urn:dvb:css")) {
LOG_ID(INFO, player_id_) << "event->value:" << eventstream->value
<< " evalue " << value.c_str();
weak_factory_.GetWeakPtr(), value));
return;
}
-#endif
+
const std::string info = uri + " " + value;
task_runner_->PostTask(
FROM_HERE,
virtual void SetActiveAudioTrack(int index) {}
virtual void SetActiveVideoTrack(int index) {}
virtual void SetPreferTextLanguage(const std::string& lang) {}
+ virtual void UpdateEventData(std::string data) {}
};
} // namespace media
current_time_ = current_time;
}
+void EWebView::UpdateEventData(void* data) {
+ LOG(INFO) << "EWebView::UpdateEventData data:" << (char*)data;
+ SmartCallback<EWebViewCallbacks::EVENTData>().call(data);
+}
+
void EWebView::NotifyParentalRatingInfo(const char* info, const char* url) {
LOG(INFO) << "info:" << info << ",url:" << url;
Ewk_Media_Parental_Rating_Info* data =
const std::string& data,
unsigned int size);
void UpdateCurrentTime(double current_time);
+ void UpdateEventData(void* data);
double GetCurrentTime() { return current_time_; }
void GetMediaDeviceList(Ewk_Media_Device_List_Get_Callback callback,
void* userData);
SubtitleNotifyData,
FirstTimestamp,
PESData,
+ EVENTData,
#endif
OverscrolledLeft,
OverscrolledRight,
DECLARE_EWK_VIEW_CALLBACK(SubtitleNotifyData, "on,subtitle,data", void*);
DECLARE_EWK_VIEW_CALLBACK(FirstTimestamp, "on,dvb,subtitle,timestamp", void*);
DECLARE_EWK_VIEW_CALLBACK(PESData, "on,dvb,subtitle,data", void*);
+DECLARE_EWK_VIEW_CALLBACK(EVENTData, "update,event,data", void*);
#endif
DECLARE_EWK_VIEW_CALLBACK(OverscrolledLeft, "overscrolled,left", void);
DECLARE_EWK_VIEW_CALLBACK(OverscrolledRight, "overscrolled,right", void);
web_view_->UpdateCurrentTime(current_time);
}
+void WebContentsDelegateEfl::UpdateEventData(void* data) {
+ web_view_->UpdateEventData(data);
+}
+
void WebContentsDelegateEfl::NotifySubtitleState(int state, double time_stamp) {
web_view_->NotifySubtitleState(state, time_stamp);
}
unsigned int len,
int media_position) override;
void UpdateCurrentTime(double current_time) override;
+ void UpdateEventData(void* data) override;
void NotifySubtitleState(int state, double time_stamp) override;
void NotifySubtitlePlay(int active_track_id,
const std::string& url,