Files
go-gst/examples
2020-10-05 07:26:30 +03:00
..
2020-10-04 14:05:40 +03:00
2020-10-04 14:05:40 +03:00
2020-10-04 14:12:14 +03:00
2020-10-04 15:01:14 +03:00
2020-10-04 19:14:05 +03:00
2020-10-04 15:30:45 +03:00
2020-10-05 07:21:38 +03:00
2020-10-03 21:34:39 +03:00
2020-10-05 07:26:30 +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:

``bash

For single-file examples

go run /main.go [..args]

For multiple-file examples (but would also work for single file examples)

cd && go build . ./ [..args]