Files
go-gst/examples
Bruce Kim 5c34c72da6 gst: add get request pad function (#16)
* gst: add get request pad function

* gst: add an example of GetReuqestPad()

* gst: remove pad=nil on ReleaseRequestPad
2021-06-26 17:21:39 +03:00
..
2021-01-19 00:18:30 +02:00
2021-01-21 10:02:18 +02:00
2021-01-23 12:43:17 +02:00
2021-01-19 00:18:30 +02:00
2021-01-19 00:18:30 +02:00
2020-10-05 07:27:04 +03:00

Go-gst Examples

This directory contains examples of some common use cases of gstreamer using the go bindings.

The common package provided to each example exports two methods.

  • Run(f) - This wraps the given function in a goroutine and wraps a GMainLoop around it.
  • RunLoop(f(loop)) - This simply creates (but does not start) a GMainLoop and passes it to the example to manage.

Each example can be run in one of two ways:

# For single-file examples
go run <example>/main.go [..args]

# For multiple-file examples (but would also work for single file examples)
cd <example> && go build .
./<example> [..args]