Skip to content

Instantly share code, notes, and snippets.

@SJRyu
SJRyu / wsd.cs
Last active November 7, 2024 07:15
how to wsd ipcams on client side
//#define DEBUG_WSD
//#define DEBUG_CONSOLE
#define STUPIDCAM
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.ServiceModel;
using System.ServiceModel.Discovery;
@SJRyu
SJRyu / rtspsrc.c
Last active August 30, 2023 16:48
Gst RtspSrc example
/*
from the answer,
https://stackoverflow.com/questions/8093967/rtsp-pipeline-implemented-via-c-code-not-working
*/
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <gst/gstpad.h>
#include <gst/rtsp/gstrtsp.h>
@SJRyu
SJRyu / rtspsrc2.c
Last active September 2, 2021 03:21
GST rtspsrc example, bug on windows
/***
https://bugzilla.gnome.org/show_bug.cgi?id=756818
***/
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <gst/gstpad.h>
#include <gst/rtsp/gstrtsp.h>
typedef struct myDataTag {