Skip to content

Commit

Permalink
Intent handler improved
Browse files Browse the repository at this point in the history
  • Loading branch information
husudosu committed Nov 23, 2021
1 parent 0297e53 commit 0e7b233
Show file tree
Hide file tree
Showing 4 changed files with 352 additions and 37 deletions.
18 changes: 0 additions & 18 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@
<action android:name="com.darryncampbell.cordova.plugin.intent.ACTION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<!-- This filter captures protocols without type info -->
<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="rtmp" />
<data android:scheme="rtmpe" />
<data android:scheme="rtmps" />
Expand All @@ -34,13 +31,10 @@
<data android:scheme="udp" />
<data android:scheme="vlc" />
</intent-filter>
<!-- This filter captures protocols with type info -->
<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="video/*" />
<data android:mimeType="audio/*" />
<data android:scheme="rtmp" />
Expand All @@ -56,10 +50,8 @@
</intent-filter>
<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="" />
<data android:scheme="file" />
<data android:scheme="ftp" />
Expand Down Expand Up @@ -94,20 +86,15 @@
</intent-filter>
<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="" />
<data android:scheme="file" />
<data android:scheme="ftp" />
<data android:scheme="content" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*" />

<!-- video -->

<data android:pathPattern=".*\\.3g2" />
<data android:pathPattern=".*\\.3gp" />
<data android:pathPattern=".*\\.3gp2" />
Expand All @@ -128,7 +115,6 @@
<data android:pathPattern=".*\\.m2v" />
<data android:pathPattern=".*\\.m2t" />
<data android:pathPattern=".*\\.m2ts" />
<!-- <data android:pathPattern=".*\\.m3u" /> -->
<data android:pathPattern=".*\\.m3u8" />
<data android:pathPattern=".*\\.mkv" />
<data android:pathPattern=".*\\.mov" />
Expand Down Expand Up @@ -187,7 +173,6 @@
<data android:pathPattern=".*\\.M2V" />
<data android:pathPattern=".*\\.M2T" />
<data android:pathPattern=".*\\.M2TS" />
<!-- <data android:pathPattern=".*\\.M3U" /> -->
<data android:pathPattern=".*\\.M3U8" />
<data android:pathPattern=".*\\.MKV" />
<data android:pathPattern=".*\\.MOV" />
Expand Down Expand Up @@ -226,9 +211,6 @@
<data android:pathPattern=".*\\.WMV" />
<data android:pathPattern=".*\\.WTV" />
<data android:pathPattern=".*\\.XESC" />

<!-- audio -->

<data android:pathPattern=".*\\.3ga" />
<data android:pathPattern=".*\\.a52" />
<data android:pathPattern=".*\\.aac" />
Expand Down
Loading

0 comments on commit 0e7b233

Please sign in to comment.