Pepper_31_C_interfaces
pp_media_control_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_control_samsung.idl,
7  * modified Wed Dec 11 11:44:44 2013.
8  */
9 
10 #ifndef PPAPI_C_SAMSUNG_PP_MEDIA_CONTROL_SAMSUNG_H_
11 #define PPAPI_C_SAMSUNG_PP_MEDIA_CONTROL_SAMSUNG_H_
12 
13 #include "ppapi/c/pp_macros.h"
14 
15 /**
16  * @file
17  * This file defines structures used to decribe Media Player related enums
18  * like ones describing player states, erros, etc.
19  */
20 
21 
22 /**
23  * @addtogroup Enums
24  * @{
25  */
26 /** Enumeration representing possible states of the player (Media Control) */
27 typedef enum {
28  /** Invalid state represents error during processing requests */
30  /**
31  * Initial Media Control state, in this state no resources
32  * are allocated to the player.
33  */
35  /**
36  * State in which resources are allocated (stream/clip is located and can
37  * be accessed by the application) to the player and playback can be started.
38  */
40  /**
41  * Playback was running, but is has been paused by the user.
42  * In this state player has still all its resources allocated,
43  * so playback can be immediately resumed from point in which it was paused.
44  * In paused state video is freezed but visible.
45  */
47  /** In this state content playback is running (media time is advancing). */
51 
52 /** Enum representing types of error when accessing to the stream/clip data */
53 typedef enum {
54  /** No error occured */
56  /** Not autorized to access given resource */
58  /** Given path is invalid */
60  /** Network error during downloading file */
62  /** Error during decoding stream/clip */
66 /**
67  * @}
68  */
69 
70 #endif /* PPAPI_C_SAMSUNG_PP_MEDIA_CONTROL_SAMSUNG_H_ */
71 
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MediaState, 4)