28 #ifndef NATIVE_PLAYER_INC_COMMUNICATOR_MESSAGE_RECEIVER_H_ 29 #define NATIVE_PLAYER_INC_COMMUNICATOR_MESSAGE_RECEIVER_H_ 31 #include "ppapi/cpp/var.h" 32 #include "ppapi/cpp/instance_handle.h" 33 #include "ppapi/cpp/message_handler.h" 67 : player_provider_(std::move(player_provider)) {}
86 const pp::Var& message_data)
override;
97 const pp::Var& message_data)
override;
148 void LoadMedia(
const pp::Var& type,
const pp::Var& url,
149 const pp::Var& subtitle,
const pp::Var& encoding);
175 void Seek(
const pp::Var& time);
192 void ChangeViewRect(
const pp::Var& x_position,
const pp::Var& y_position,
193 const pp::Var& width,
const pp::Var& height);
214 std::shared_ptr<PlayerController> player_controller_;
215 std::shared_ptr<PlayerProvider> player_provider_;
216 Samsung::NaClPlayer::Rect view_rect_;
221 #endif // NATIVE_PLAYER_INC_COMMUNICATOR_MESSAGE_RECEIVER_H_ void ChangeSubtitlesVisibility()
void ChangeSubtitlesRepresentation(const pp::Var &id)
This file defines the PlayerController class.
void Seek(const pp::Var &time)
MessageReceiver(std::shared_ptr< PlayerProvider > player_provider)
pp::Var HandleBlockingMessage(pp::InstanceHandle instance, const pp::Var &message_data) override
void HandleMessage(pp::InstanceHandle instance, const pp::Var &message_data) override
Main class responsible for handling messages from the communication channel and controlling player li...
void ChangeViewRect(const pp::Var &x_position, const pp::Var &y_position, const pp::Var &width, const pp::Var &height)
void LoadMedia(const pp::Var &type, const pp::Var &url, const pp::Var &subtitle, const pp::Var &encoding)
void ChangeRepresentation(const pp::Var &type, const pp::Var &id)
This file defines PlayerProvider class.
void WasUnregistered(pp::InstanceHandle instance) override