summaryrefslogtreecommitdiff
path: root/android/app/src/main/AndroidManifest.xml
blob: 6de668cec0960318f1e253723c9fb8458a337107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="utf-8"?>
<manifest
    package="org.freedesktop.gstreamer.play"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="1"
    android:versionName="1.0">

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>

    <uses-feature android:glEsVersion="0x00020000"/>

    <application
        android:allowBackup="false"
        android:label="@string/app_name"
        android:theme="@style/GstPlayTheme">
        <activity
            android:name=".Play"
            android:label="@string/app_name">

            <!-- Local files whose MIME type is known to Android -->
            <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:mimeType="audio/*"/>
                <data android:mimeType="video/*"/>
                <data android:mimeType="image/*"/>
            </intent-filter>

            <!--
                 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"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>

                <data android:scheme="http"/>
                <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>
        </activity>

        <activity
            android:name=".VideoSelector"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>

</manifest>