- Posts: 3
- Joined: Mon Aug 31, 2020 6:55 pm
- Real Name: Daniel Li
Hi Daniel,
You can check device temperature by calling IDeckLinkStatus::GetInt[1] with status item bmdDeckLinkStatusDeviceTemperature [2]. You can query the IDeckLinkStatus interface from IDeckLink, by calling IDeckLink::QueryInterface.
Further you can subscribe to notifications by creating a class that implements IDeckLinkNotificationCallback interface to get callback when device temperature changes. In IDeckLinkNotificationCallback::Notify [3], filter for topic = bmdStatusChanged and param1 = bmdDeckLinkStatusDeviceTemperature.
The SDK has the StatusMonitor example and the DeviceStatus(C++)/DeviceStatusCSharp(C#) samples that demonstrate use of IDeckLinkStatus and IDeckLinkNotificationCallback.
Regards
Cameron
References (DeckLink SDK Manual):
[1] 2.5.42.2 IDeckLinkStatus::GetInt method
[2] 3.59 DeckLink Status ID
[3] 2.5.34.1 IDeckLinkNotificationCallback::Notify