There doesn't seem to be any obvious trigger for initialising Rialto in Cobalt/Gst environment so do so on first API call that needs to use Rialto.
init() API is not currently implemented. Rialto client currently automatically establishes IPC connection automatically during initialisation
Terminating Rialto has an even less obvious trigger than initialisation, for the purposes of being able to test suggest that when player & CDM count reaches 0 that we terminate - this could possibly be improved by waiting, say, 10 seconds to see if another API call occurs. If app calls another API after termination then Rialto will be re-initialised.
term() API is not currently implemented and there is no mechanism to shut down IPC connection other than terminating the process