Fixed 3510047: MediaPlayer ANR if play or seek past end of file.
Change-Id: I733dbf20dc67a5f2c49fbb994291f98e2dce650a
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -130,6 +130,8 @@ class WVSession;
|
|||||||
// direct function call push data model.
|
// direct function call push data model.
|
||||||
// Also buffer allocation routines for using an external allocator
|
// Also buffer allocation routines for using an external allocator
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef void (*WVDecryptCallback)(WVEsSelector esType, void* input, void* output, size_t length, int key);
|
||||||
struct WVCallbacks {
|
struct WVCallbacks {
|
||||||
void (*pushData)(unsigned short port, void *buffer, size_t length);
|
void (*pushData)(unsigned short port, void *buffer, size_t length);
|
||||||
void (*response)(WVSession *session, const std::string &response);
|
void (*response)(WVSession *session, const std::string &response);
|
||||||
@@ -140,6 +142,7 @@ struct WVCallbacks {
|
|||||||
int (*getDeviceID)(char *buffer, size_t size);
|
int (*getDeviceID)(char *buffer, size_t size);
|
||||||
|
|
||||||
int (*getKeyboxPath)(char* path, size_t size);
|
int (*getKeyboxPath)(char* path, size_t size);
|
||||||
|
WVDecryptCallback decrypt;
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -608,6 +611,20 @@ WV_Play(WVSession *session, float scale_requested, float *scale_used, const std:
|
|||||||
CLIENT_API WVStatus
|
CLIENT_API WVStatus
|
||||||
WV_Pause(WVSession *session, const std::string &time);
|
WV_Pause(WVSession *session, const std::string &time);
|
||||||
|
|
||||||
|
//
|
||||||
|
// METHOD: WV_Info_GetVersion
|
||||||
|
//
|
||||||
|
// Query the version number of the Widevine library
|
||||||
|
//
|
||||||
|
// Parameters:
|
||||||
|
// void
|
||||||
|
//
|
||||||
|
// Returns:
|
||||||
|
// Widevine library build version string
|
||||||
|
//
|
||||||
|
CLIENT_API const char *
|
||||||
|
WV_Info_GetVersion();
|
||||||
|
|
||||||
//
|
//
|
||||||
// METHOD: WV_Info_GetTime
|
// METHOD: WV_Info_GetTime
|
||||||
//
|
//
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user