我想创建一个intent-filter,它可以检测像这样的url:
我到目前为止已经尝试了这个,但是没有成功。
http://192.168.0.xx/playlist/_definst_/iphone.smil/list.m3u8?token=XXXXXXX
我到目前为止已经尝试了这个,但是没有成功。
<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:host="*"
android:pathPattern=".*\\*.m3u8.*"
android:scheme="http" />
</intent-filter>
我错过了什么吗?
需要你的帮助。
这对我有用。希望也能帮到其他人。
<data android:scheme="http" android:host="*"
android:pathPattern=".*\\.m3u8" />
<data android:scheme="http" android:host="*"
android:pathPattern=".*\\..*\\.m3u8" />
<data android:scheme="http" android:host="*"
android:pathPattern=".*\\..*\\..*\\..m3u8" />
<data android:scheme="http" android:host="*"
android:pathPattern=".*\\..*\\..*\\..*\\.m3u8" />