API (python)#

Module Summary:

omni.kit.livestream.core

Python bindings for creating and controlling livestream servers.

Module Details::

omni.kit.livestream.core:

Python bindings for creating and controlling livestream servers.

Example usage:

from omni.kit.livestream.core import Server, ServerConfig, VideoCodec

server = Server("rtsp")
server.start(ServerConfig(width=1920, height=1080, video_pre_encode=VideoCodec.H264))

# In your render/capture loop:
server.stream_video_cuda_buffer(cuda_ptr, pitch, width, height)

# When done:
server.stop()
server.close()