Advanced features of mobile AV 8--video player (1)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.