summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2012-11-06 10:49:43 +0100
committerXavi Artigas <xartigas@fluendo.com>2012-11-06 10:49:43 +0100
commitdeb87d4a23ed1d089c545bdca8cca08bda0b9193 (patch)
treeba84a21eb44722f5f55aeb9145e88c819e27c8a0
parent73ca70339cc0307303c84d06b91d052ddbbee7ef (diff)
Better integration for local files with unknown MIME types.
-rwxr-xr-xgst-sdk/tutorials/android-tutorial-5/AndroidManifest.xml34
1 files changed, 29 insertions, 5 deletions
diff --git a/gst-sdk/tutorials/android-tutorial-5/AndroidManifest.xml b/gst-sdk/tutorials/android-tutorial-5/AndroidManifest.xml
index 11b7f39..06c9e5d 100755
--- a/gst-sdk/tutorials/android-tutorial-5/AndroidManifest.xml
+++ b/gst-sdk/tutorials/android-tutorial-5/AndroidManifest.xml
@@ -26,7 +26,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
- <!-- Local files whose type is known to Android -->
+ <!-- Local files whose MIME type is known to Android -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@@ -38,8 +38,32 @@
<data android:mimeType="image/*" />
</intent-filter>
- <!-- Links from the browser. The list of extensions and supported
- protocols can certainly be extended. -->
+ <!-- Local files with unknown MIME type.
+ The list of extensions and supported protocols can certainly be extended. -->
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+
+ <data android:scheme="file" />
+ <data android:mimeType="*/*" />
+ <data android:pathPattern=".*\\.avi" />
+ <data android:pathPattern=".*\\.AVI" />
+ <data android:pathPattern=".*\\.mkv" />
+ <data android:pathPattern=".*\\.MKV" />
+ <data android:pathPattern=".*\\.webm" />
+ <data android:pathPattern=".*\\.WEBM" />
+ <data android:pathPattern=".*\\.ogv" />
+ <data android:pathPattern=".*\\.OGV" />
+ <data android:pathPattern=".*\\.mp4" />
+ <data android:pathPattern=".*\\.MP4" />
+ <data android:pathPattern=".*\\.mov" />
+ <data android:pathPattern=".*\\.MOV" />
+ </intent-filter>
+
+ <!-- Remote files. These typically have unknown MIME type.
+ The list of extensions and supported protocols can certainly be extended. -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@@ -57,8 +81,8 @@
<data android:pathPattern=".*\\.OGV" />
<data android:pathPattern=".*\\.mp4" />
<data android:pathPattern=".*\\.MP4" />
- <data android:pathPattern=".*\\.qt" />
- <data android:pathPattern=".*\\.QT" />
+ <data android:pathPattern=".*\\.mov" />
+ <data android:pathPattern=".*\\.MOV" />
</intent-filter>
</activity>
<activity