1. Allow other software to adjust the player you write
1. Add the following intent in the feature manifest file
<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= "RTSP"/> </intent-filter> <intent-filter><action android:name= " Android.intent.action.VIEW "/><category android:name=" Android.intent.category.DEFAULT "/><data Android : mimetype= "video/*"/><data android:mimetype= "APPLICATION/SDP"/> </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= "http"/><data android:mimetype= "Video/mp4"/><data android:mimetype= "video/3gp"/> <data android:mimetype= "VIDEO/3GPP"/><data android:mimetype= "video/3gpp2"/> </intent-filter>
2. File or picture browser//1. Adjust all playback of the system-implicit intent Intent Intent = new Intent (); Intent.setdataandtype (Uri.parse ("Video playback Address"), "video/*"); Context.startactivity (Intent);
3. The video player will be tuned and played
URI = Getintent (). GetData ();//folder, picture browser, QQ space
4. Set the playback address
Videoview.setvideouri (URI);
Advanced features of mobile AV 8--video player (1)