summaryrefslogtreecommitdiff
path: root/recipes-multimedia
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-03-31 16:11:51 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-04-01 10:11:36 +0200
commit5d8cb2b6d9458cbc25776fca1d0dc6c0e88b0fc6 (patch)
tree10764f57cbeb44c4d87b4447d486c9486be1b3a1 /recipes-multimedia
parent9e0ce2b7dfac9659fd1293d6450ebe304cfa63e1 (diff)
mimetypes: add mimetypes for some basic multimedia types
Diffstat (limited to 'recipes-multimedia')
-rw-r--r--recipes-multimedia/mimetypes/files/COPYING5
-rw-r--r--recipes-multimedia/mimetypes/files/aplay.desktop5
-rw-r--r--recipes-multimedia/mimetypes/files/mimeapps.list10
-rw-r--r--recipes-multimedia/mimetypes/files/mx6/gst-launch.desktop13
-rw-r--r--recipes-multimedia/mimetypes/mimetypes.bb29
5 files changed, 62 insertions, 0 deletions
diff --git a/recipes-multimedia/mimetypes/files/COPYING b/recipes-multimedia/mimetypes/files/COPYING
new file mode 100644
index 0000000..040e990
--- /dev/null
+++ b/recipes-multimedia/mimetypes/files/COPYING
@@ -0,0 +1,5 @@
+This piece is software is provided by Toradex AG as sample code.
+There is no warranty for the program.
+Toradex AG put this program in public domain, uncopyrighted.
+
+Renens, Swizterland, 2008-10-23
diff --git a/recipes-multimedia/mimetypes/files/aplay.desktop b/recipes-multimedia/mimetypes/files/aplay.desktop
new file mode 100644
index 0000000..8f61848
--- /dev/null
+++ b/recipes-multimedia/mimetypes/files/aplay.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Name=aplay
+Exec=aplay "%f"
+NoDisplay=true
diff --git a/recipes-multimedia/mimetypes/files/mimeapps.list b/recipes-multimedia/mimetypes/files/mimeapps.list
new file mode 100644
index 0000000..e7c7dc4
--- /dev/null
+++ b/recipes-multimedia/mimetypes/files/mimeapps.list
@@ -0,0 +1,10 @@
+[Added Associations]
+video/mpeg=gst-launch.desktop;
+video/x-msvideo=gst-launch.desktop;
+video/mp4=gst-launch.desktop;
+video/quicktime=gst-launch.desktop;
+video/x-ms-wmv=gst-launch.desktop;
+video/x-matroska=cd gst-launch.desktop;
+audio/mpeg=gst-launch.desktop;
+audio/basic=aplay.desktop;
+audio/x-wav=aplay.desktop;
diff --git a/recipes-multimedia/mimetypes/files/mx6/gst-launch.desktop b/recipes-multimedia/mimetypes/files/mx6/gst-launch.desktop
new file mode 100644
index 0000000..caa3414
--- /dev/null
+++ b/recipes-multimedia/mimetypes/files/mx6/gst-launch.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Type=Application
+Name=gst-launch
+# on LVDS panel
+#Exec=gst-launch filesrc location= "%f" ! decodebin ! mfw_v4lsink device=/dev/video18
+# Fullscreen on the main window? or the only window?
+#Exec=gst-launch playbin2 uri=%u \"video_sink=mfw_v4lsink force-aspect-ratio=true\"
+# in a 640x360 overlay part of the main window
+#Exec=gst-launch playbin2 uri=%u \"video_sink=mfw_v4lsink force-aspect-ratio=true disp-width=640 disp-height=360 axis-top=10 axis-left=630\"
+# in a 1280x720 overlay part of the main window
+Exec=gst-launch playbin2 uri=%u \"video_sink=mfw_v4lsink force-aspect-ratio=true disp-width=1280 disp-height=720 axis-top=10 axis-left=630\"
+Terminal=true
+NoDisplay=true
diff --git a/recipes-multimedia/mimetypes/mimetypes.bb b/recipes-multimedia/mimetypes/mimetypes.bb
new file mode 100644
index 0000000..a879386
--- /dev/null
+++ b/recipes-multimedia/mimetypes/mimetypes.bb
@@ -0,0 +1,29 @@
+DESCRIPTION = "use mimetypes to start a videoplayer"
+LICENSE = "MIT"
+PR = "r2"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(mx6)"
+
+SRC_URI = " \
+ file://aplay.desktop \
+ file://gst-launch.desktop \
+ file://mimeapps.list \
+ file://COPYING \
+"
+
+LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING;md5=1c3a7fb45253c11c74434676d84fe7dd"
+
+FILES_${PN} += " \
+ /home/root/.local/share/applications/* \
+"
+
+do_compile () {
+}
+
+do_install () {
+ install -d ${D}/home/root/.local/share/applications/
+
+ install -m 0644 ${WORKDIR}/*.desktop ${D}/home/root/.local/share/applications/
+ install -m 0644 ${WORKDIR}/mimeapps.list ${D}//home/root/.local/share/applications/
+}