Add replay API initialisation/shutdown to python examples

This commit is contained in:
baldurk
2020-03-05 13:32:06 +00:00
parent bc56fd091d
commit 4e4ef40612
12 changed files with 65 additions and 2 deletions
@@ -9,6 +9,8 @@ import time
# the executable and trigger the capture at the desired time
raise RuntimeError("This sample should not be run directly, read the source")
rd.InitialiseReplay(rd.GlobalEnvironment(), [])
protocols = rd.GetSupportedDeviceProtocols()
print(f"Supported device protocols: {protocols}")
@@ -194,3 +196,5 @@ controller.Shutdown()
# save the capture, etc
remote.ShutdownServerAndConnection()
rd.ShutdownReplay()