summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/client_api_examples/README.md10
-rw-r--r--DOCS/client_api_examples/cocoa/cocoabasic.m2
-rw-r--r--DOCS/client_api_examples/simple/simple.c2
3 files changed, 9 insertions, 5 deletions
diff --git a/DOCS/client_api_examples/README.md b/DOCS/client_api_examples/README.md
index 9de90a6748..1b6b40b082 100644
--- a/DOCS/client_api_examples/README.md
+++ b/DOCS/client_api_examples/README.md
@@ -8,6 +8,11 @@ cocoa
Shows how to embed the mpv video window in Objective-C/Cocoa.
+qt
+--
+
+Shows how to embed the mpv video window in Qt (using normal desktop widgets).
+
qml
---
@@ -19,11 +24,6 @@ qml_direct
Alternative example, which typically avoids a FBO indirection. Might be
slightly faster, but is less flexible and harder to use.
-qt
---
-
-Shows how to embed the mpv video window in Qt (using normal desktop widgets).
-
simple
------
diff --git a/DOCS/client_api_examples/cocoa/cocoabasic.m b/DOCS/client_api_examples/cocoa/cocoabasic.m
index ea3e9c69d5..08c9b18e14 100644
--- a/DOCS/client_api_examples/cocoa/cocoabasic.m
+++ b/DOCS/client_api_examples/cocoa/cocoabasic.m
@@ -3,6 +3,8 @@
// but that's not quite ready yet.
// You may need a basic Info.plist and MainMenu.xib to make this work.
+// Build with: clang -o cocoabasic cocoabasic.m `pkg-config --libs --cflags mpv`
+
#include <mpv/client.h>
#include <stdio.h>
diff --git a/DOCS/client_api_examples/simple/simple.c b/DOCS/client_api_examples/simple/simple.c
index ca8699a076..d18003dc2d 100644
--- a/DOCS/client_api_examples/simple/simple.c
+++ b/DOCS/client_api_examples/simple/simple.c
@@ -1,3 +1,5 @@
+// Build with: gcc -o simple simple.c `pkg-config --libs --cflags mpv`
+
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>