API (python)#
Module Summary:
Python bindings for creating and controlling livestream servers. |
Module Details::
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()