15 #ifndef SHAKA_EMBEDDED_PLAYER_H_ 16 #define SHAKA_EMBEDDED_PLAYER_H_ 22 #include <type_traits> 32 #include "player_externs.h" 67 virtual void OnError(
const Error& error);
73 virtual void OnBuffering(
bool is_buffering);
234 double start_time = NAN,
235 const std::string& mime_type =
"");
256 const std::string& value);
257 template <
typename T,
typename =
typename std::enable_if<
258 std::is_arithmetic<T>::value>
::type>
262 return Configure(name_path, static_cast<double>(value));
268 return Configure(name_path, std::string(value));
313 bool clear_buffer =
false);
341 const std::string& name_path);
352 const std::string& language,
353 const std::string& kind,
354 const std::string& mime,
355 const std::string& codec =
"",
356 const std::string& label =
"");
388 const std::vector<uint8_t>& data) {
389 return Configure(name_path, data.data(), data.size());
392 const uint8_t* data,
size_t data_size);
397 void* GetRawJsValue();
400 std::unique_ptr<Impl> impl_;
405 #endif // SHAKA_EMBEDDED_PLAYER_H_
AsyncResults< bool > Configure(const std::string &name_path, const std::vector< uint8_t > &data)
AsyncResults< bool > Configure(const std::string &name_path, const char *value)
#define SHAKA_NON_COPYABLE_TYPE(Type)
#define SHAKA_DECLARE_INTERFACE_METHODS(Type)
AsyncResults< bool > Configure(const std::string &name_path, T value)
const DefaultValueType DefaultValue