get_code_example
Get a code example for a common VisioForge SDK scenario. Returns complete, working C# code snippets that demonstrate how to use the SDK for tasks like video capture, RTSP streaming, media playback, and more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario | Yes | Scenario name. Available: 'webcam-capture' (capture from webcam to MP4), 'rtsp-playback' (play RTSP stream), 'rtsp-to-mp4' (record RTSP to MP4 file), 'webcam-to-rtmp' (stream webcam to RTMP/YouTube/Facebook), 'file-playback' (play a media file), 'video-editing' (basic video editing), 'screen-capture' (capture screen to file), 'media-info' (read media file information), 'pipeline-basic' (build a basic media block pipeline), 'virtual-source' (generate test video/audio), 'hls-streaming' (stream to HLS), 'audio-capture' (capture audio only) |