Pepper_31_C_interfaces
pp_media_source_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From samsung/pp_media_source_samsung.idl,
7  * modified Wed Dec 11 11:35:05 2013.
8  */
9 
10 #ifndef PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_
11 #define PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_
12 
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
15 #include "ppapi/c/samsung/pp_media_common_samsung.h"
16 
17 /**
18  * @file
19  * This file defines structures used to decribe Time Ranges and Media Source
20  * states.
21  */
22 
23 
24 /**
25  * @addtogroup Structs
26  * @{
27  */
28 /**
29  * The <code>PP_TimeRange</code> struct contains information about buffered
30  * time range - it's start and end.
31  */
32 struct PP_TimeRange {
33  /**
34  * Time in microseconds of begining of buffered data
35  */
37  /**
38  * Time in microseconds of ending of buffered data
39  */
41 };
43 /**
44  * @}
45  */
46 
47 /**
48  * @addtogroup Enums
49  * @{
50  */
51 /** Enum representing types of ReadyStates of MediaSource */
52 typedef enum {
53  /**Source is not attached to a media element. */
55  /**Ready for data to be appended. */
57  /**Source is still attached to a media element, but endOfStream(
58  ) has been called. */
62 
63 /** Enum representing types of state returned after adding media source */
64 typedef enum {
65  /**Ok - source added. */
67  /**Player do not support type or codecs. */
69  /**Player reached limit of possible sources or source IDs. */
71  /**ReadyState is not PP_MEDIAREADYSTATE_OPEN. */
73  /**Type or codecs are not specified (empty strings). */
75  /**Status unknown error. */
79 
80 /** Enum representing types of possible returned errors */
81 typedef enum {
82  /** Source unknown error */
84  /** No buffer with such id attached to source */
86  /** No resource */
88  /** Append failed */
90  /** signaled when trying to add new buffer to closed source. */
94 /**
95  * @}
96  */
97 
98 #endif /* PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_ */
99 
int64_t PP_MicrosecondsDelta
PP_MicrosecondsDelta start
PP_MicrosecondsDelta end
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TimeRange, 16)
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MediaReadyState, 4)