fix for b/4126624 Widevine DRM client not sending heartbeats
Added some missing parameters to the heartbeat message, found in end-to-end testing with youtube. Also enabled heartbeats on client builds. Change-Id: I445fb0cb168e63a041f0ecf828eaad493143a648
This commit is contained in:
@@ -31,19 +31,28 @@ namespace android {
|
||||
class WVMInfoListener : public DrmManagerClient::OnInfoListener {
|
||||
enum MessageType {
|
||||
MessageType_HeartbeatServer = 4000,
|
||||
MessageType_HeartbeatPeriod = 4001
|
||||
MessageType_HeartbeatPeriod = 4001,
|
||||
MessageType_AssetId = 4002,
|
||||
MessageType_DeviceId = 4003,
|
||||
MessageType_StreamId = 4004,
|
||||
MessageType_UserData = 4005
|
||||
};
|
||||
|
||||
public:
|
||||
WVMInfoListener() : mPeriod(-1) {};
|
||||
WVMInfoListener() : mSession(NULL), mHaveInfo(false){};
|
||||
virtual void onInfo(const DrmInfoEvent &event);
|
||||
void setSession(WVSession *session);
|
||||
void configureHeartbeat();
|
||||
|
||||
private:
|
||||
WVSession *mSession;
|
||||
uint32_t mAssetId;
|
||||
std::string mServerUrl;
|
||||
std::string mStreamId;
|
||||
std::string mDeviceId;
|
||||
std::string mUserData;
|
||||
int mPeriod;
|
||||
bool mHaveInfo;
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
|
||||
Reference in New Issue
Block a user