ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers baidu_media_data_manager.h Source File

baidu_media_data_manager.h

00001 // Copyright 2017 Baidu Inc. All Rights Reserved.
00002 // Author: Chen Xihao (chenxihao@baidu.com)
00003 //
00004 // Description: Media data Manager
00005 
00006 #ifndef BAIDU_TINYDU_IOT_OS_SRC_MEDIA_DATA_MANAGER_BAIDU_MEDIA_DATA_MANAGER_H
00007 #define BAIDU_TINYDU_IOT_OS_SRC_MEDIA_DATA_MANAGER_BAIDU_MEDIA_DATA_MANAGER_H
00008 
00009 #include "baidu_media_play_type.h"
00010 
00011 namespace duer {
00012 
00013 struct MediaReport {
00014     unsigned int play_url_count;
00015     unsigned int invalid_url_count;
00016     unsigned int play_url_failed_count;
00017 };
00018 
00019 void mdm_send_media_file_path(const char* media_file_path);
00020 
00021 void mdm_send_media_url(const char* media_url);
00022 
00023 MediaPlayerStatus mdm_notify_to_stop();
00024 
00025 void mdm_reset_stop_flag();
00026 
00027 int mdm_check_need_to_stop();
00028 
00029 const MediaReport& get_media_report();
00030 
00031 void start_media_data_mgr_thread();
00032 
00033 void mdm_speed_get_statistic(float* speed);
00034 
00035 } // namespace duer
00036 
00037 #endif // BAIDU_TINYDU_IOT_OS_SRC_MEDIA_DATA_MANAGER_BAIDU_MEDIA_DATA_MANAGER_H