Video Frame Vitamio Learning

Source: Internet
Author: User

Overview

When the company was developing a live project, it had a function of playing video ads, and ended up in the end. Although I didn't make a request in the project, the idea stirred my curiosity to study multimedia. Just in the back of a favorite video app Magic box, the above video playback experience and the entire product design is my favorite type, so anti-compile a bit, found that it used a video frame Vitamio, (there is a very smooth drop-down refresh frame Hardmark), and then, Baidu Google, found incredibly is a domestic team development framework, and the application has been very extensive. So the study, I wrote a demo.


Data Summary

Vitamio Official website: https://www.vitamio.org

Source Address: Https://github.com/yixia/VitamioBundle

Best Tutorial: The famous peasant Uncle blog http://www.cnblogs.com/over140/category/409230.html, peasant uncle should be a member of this development team.

Vplayer seems to be the best product of this framework, but to see some partners on the official website, if it is actually used this framework, it seems very good (can be anti-compilation to see, Learning ~)

The following is the agricultural name of the development of the curriculum to achieve the source of the product (download test, you can run, scan the local video seems to have not found the file, carefully find the reason should be solved, the content of the project is more conventional bar, there is no more difficult to understand the place, it may be I did not study so fine):

Project Address:Http://code.taobao.org/p/oplayer
SVN address: http://code.taobao.org/svn/oplayer/

Overall feeling, the first contact will be more difficult to understand, take some time to study, or relatively understood, the framework has developed so long, is now more mature. It is also free for individual developers. If necessary, you can refer to it.

Data References

"Android" OPlayer upgrade Vitamio to 4.1 Summary: Long time no update oplayer, or use the old version of Vitamio 3.0 version (the new version has been to 4.1), this update. Read the full text posted @ 2013-09-20 11:00  farmer Uncle Reading (5970) |  Comments (  edit "Android" Vitamio 4.0 official release/Vitamio IOS Beta release (2013-07-16) Summary: Vitamio 4.0 official Release! Read the full text posted @ 2013-07-16 16:05  farmer Uncle Reading (5520) |  comment (+)   edit "Android" Vitamio 4.0 public beta release (2013-05-28) Summary: "Android" Vitamio 4.0 public beta release (2013-05-28) read the full posted @ 2013-05-28 15:09  peasant Uncle Reading (4662) |  review ( ) Edit Vitamio does not support the feature list (this article will continue to update 2013-03-13) Summary: Always say the advantages of Vitamio, here also listed the shortcomings, on the one hand to remind developers to pay attention to, on the other hand is also better for the Vitamio team reference, as a follow-up version of the reference to upgrade. Read the full text posted @ 2013-03-13 10:18  farmer Uncle Reading (3700) |  review (+)   Edit use Vitamio to build your own Android Universal player (12)-- Play network Video Buffer processing Summary: Limited by the speed and other reasons, the network video playback generally will have to add buffer processing, generally can be set to increase the buffer and show the progress bar is buffering to improve the experience. Read the full text posted @ 2013-03-12 13:20  peasant Uncle Reading (10028) |  Comments (one)   Edit Vitamio 3.0 Beginner Tutorial Summary: The VITAMIO project is developing rapidly, The official group topped 400 developers, Vitamio-based projects topped 1000, and more than 50 million users were using Vitamio to deliver premium playback experiences. Document is short board, also welcome to share your Vitamio experience, this article will further introduce Vitamio simple use method. Read the full posted @  2013-01-15 10:58  Peasant Uncle Reading (22644) |  comment (+)   Edit use Vitamio to build your own Android Universal player (11)--Local scan background Service summary: Vitamio and OPlayer series of articles get the attention and support of the majority of peers, thank you very much! From the series of articles in the last few months, a variety of busy suspended this series of articles, very sorry! From OPlayer official online still have distance, there are a lot of things to do, continue to move forward! Read the full text posted @ 2012-11-07 17:49  peasant Uncle Reading (5985) |  Comment (  edit Vitamio Chinese API documentation (5)--mediaplayer Summary: MediaPlayer is the core class of Vitamio, similar to the system's own class usage, and is a must-read document for developing its own Android player based on Vitamio. Read the full text posted @ 2012-09-06 14:39  peasant Uncle Reading (12863) |  Reviews (  Edit Vitamio Chinese API documentation (4)--vitamioinstaller Summary: It is recommended that you use this class to check if the device has the Vitamio plugin installed before using any classes and methods of the program. Read the full text posted @ 2012-09-03 17:48  farmer Uncle Reading (3893) |  Comments (2)   Edit Vitamio SDK 2.0 new Release (2012-08-31) Summary: Nearly two months from the last release, we finally sent out a new version of the solution to the coexistence issue, during which time Vplayer also issued 6. Also please understand that Vplayer is the main business of the team, Vitamio is a sideline, so can not guarantee on time, but will gradually improve the importance of Vitamio, thanks to support, Welcome to use! Read the full text posted @ 2012-08-31 15:54  peasant Uncle Reading (8627) |  Reviews (  Edit Vitamio Chinese API documentation (3)--mediacontroller Summary: Mediacontroller and Videoview supporting the use of the basic can achieve the main function of the play interface, we can refer to OPlayer code implementation. Read the full text posted @ 2012-08-30 14:34  peasant Uncle Read (6134) |  Comments (1)   Edit Vitamio Chinese API documentation (2)--videoview Summary: Videoview is one of the most important classes of Vitamio, using the same method as the videoview of the system, Provide many methods for developers to call, to achieve a variety of powerful playback functions, such as external subtitles, screen zoom, set screen quality. Read the full text posted @ 2012-08-30 10:42  peasant Uncle Reading (13466) |  Comments (one)   Edit Vitamio Chinese API documentation (1)--mediastore Summary: Vitamio new version of the SDK released soon, the document has been missing, the next period of time will be added, follow-up will also launch a developer Guide series of articles, the official website is also revised to help developers better use of Vitamio. This chapter Mediastore is mainly used for reading local video, audio information, thumbnails, please participate in the Vitamio Universal Player Series 10th article. Read the full text posted @ 2012-08-29 11:32  peasant Uncle Reading (7590) |  Comments (1)   edit Vitamio FAQ (2012-11-20) Summary: Vitamio Series Article Summary FAQ, detailed answers about Vitamio various questions read the full text posted @ 2012-08-01 10:02  peasant Uncle Reading (13097) |  Comment ()   Edit [Important] Use Vitamio to build your Android Universal player (10)--local playback (thumbnail, video information, video scanning service) Summary: Vitamio is the team's sincerity, we are in addition to the Vplayer to make Android the best player, Also make the Vitamio playback component the best player component on Android. New Release Beta SDK Although there are some issues, but already have a high scalability, convenience and many built-in practical features, subsequent articles will continue to dig deep and introduce the use of Vitamio details and methods. This chapter provides video information such as thumbnails, video size, and more, and describes the use of Vitamio built-in ContentProvider and file scanning services. Read the full text posted @ 2012-07-21 15:27  farmer Uncle Reading (11273) |  Comments ($)   Edit use Vitamio to build your own Android Universal player (9)--InLine play (online TV) Summary: If you do not want to find the video to see the traditional way to watch TV is also good, such as CCTV, Hunan TV and so on. This chapter collects the address of hundreds of TV stations from the network, uses the multilevel classification method to present, greatly enriches the content of the online play part. Read the full text posted @ 2012-07-15 12:22  farmer Uncle Reading (7979) |  Comments (one)   edit use Vitamio to build your Android universal player-- New Vitamio Beta SDK release Summary: Vitamio series has been the focus of many Android developers and entrepreneurs, the new version of the SDK is also released in awaited, although in the beta phase, has been significantly improved and achieved expectations, extremely convenient and friendly integration into their products, Welcome everyone to test! Read the full text posted @ 2012-07-09 12:23  farmer Uncle Reading (15011) |  Comments (  edit) use Vitamio to build your own Android Universal player (8)--Detail Optimization Summary: Successful products are often in the details of the extreme, products and projects from the perspective of the use of the biggest difference I think that is the details of the treatment. The goal of the premiere video is the product, the previous 7 articles are up and running, adding a lot of features, it is time to stop to take a break, optimize, and also welcome the exchange of feedback to do not thoughtful place. With open source, you can also add and modify different features and details to your liking. Read the full text posted @ 2012-07-08 18:48  farmer Uncle Reading (6139) |  Comments (0)   Edit use Vitamio to build your own Android Universal player (7)-- Play online (download video) Summary: This chapter will implement a very useful feature-download online video. involves multithreading, thread update UI technology, but also need to think about product design, how to add new features better into the existing products, not simply add an interface on the line, welcome to Exchange product design and technical details to achieve! Read the full text of posted @ 2012-06-29 14:45  farmer Uncle Reading (10083) |  review (+)   Edit use Vitamio to build your own Android Universal player (6)-- Online play (Playlist) Summary: The new version of Vplayer is designed into the development phase, and the development cycle is expected to be one months, which means that the new version of Vitamio will be released, and developers can develop other features as well as this series of articles. The contents of this chapter are"Online video Playlist", a collection of mainstream major video website mobile version, welcome to "premiere Video" Feedback Improvement suggestions! Read the full text posted @ 2012-06-20 10:27  farmer Uncle Reading (10577) |  review (  Edit use Vitamio to build your own Android Universal player (5)-- Online play (play Youku Video) Summary: In order to ensure the progress of a weekly article, and because the new version of Vitamio is not released, decided to postpone some local playback of some functions (, video time, size, etc.), skip the direct write section of the online play part. As you can see from Vitamio's introduction, it supports various network protocols such as HTTP, m3u8, and this chapter will write an example of playing Youku video. Read the full text posted @ 2012-06-15 14:47  farmer Uncle Reading (17903) |  Comments ( ) Edit use Vitamio to build your own Android Universal player (4)-- Local playback (Quick search, data storage) Summary: This chapter to the Android universal player local playback of the main functions (cache playlist and a-Z fast query function), and play components are not very related, but with some practical technology, welcome to exchange! Read the full text posted @ 2012-06-08 17:59  farmer Uncle Reading (8284) |  Comments (+)   Edit use Vitamio to build your own Android Universal player (3)--local play (main interface , playlists) Summary: To create a usable Android player with a lot of features and details to complete, but also involves a variety of knowledge and content, this chapter will be combined with fragment, Viewpager to build the player's main interface, and to achieve local playback basic functions. Series of articles provide, code description, source download, Welcome to Exchange! Read the full text of posted @ 2012-05-30 17:27  farmer Uncle Reading (12798) |  Comments (2)   Edit use Vitamio to build your own Android Universal player with the gesture control brightness, Volume, Zoom Summary: This chapter continues to improve the core functions of playing related players, to lay a good foundation for subsequent expansion. Read the full text posted @ 2012-05-22 16:19  farmer Uncle Reading (22546) |  review (+)   Edit use Vitamio to build your own Android Universal player (1)--Prepare a summary: Although andRoid has built-in videoview components and MediaPlayer classes to support the development of video players, but the support format, performance and other aspects are very limited, here with you to use the Open source project Vitamio to build their own Android Universal player! Read the full text posted @ 2012-04-26 14:43  peasant Uncle Reading (65020) |  Comments ($)   Edit

There are several iteye above

http://www.iteye.com/topic/1124550

Related knowledge points

The project has a function to get the video thumbnail, in the source code of Vplayer as if commented out, starting from API 8, there is an existing Android API to implement the relevant functions of the class

Android.media.ThumbnailUtils This class provides 3 static methods for getting the first frame of the video to get the bitmap,2 of the thumbnail processing of the image.

 Public Static int kind)

The first parameter is the path to the video file, the second parameter is the size of the specified picture, and there are two options thumbnails.mini_kind and thumbnails.micro_kind.

    • The first document says size is x 384, I test it with a MP4 format file to get 544 x 960, and test it with a WMV format file for x 120. Obviously not reliable.
    • The second parameter is the size of the two format files is 96, this is the thumbnail.
extractthumbnail (Bitmap source, int  width, int  height, int  Options) Extractthumbnail (Bitmap source, int  width, int  height) 

Both methods are used to handle the size of the bitmap, the first parameter is the bitmap to be processed, the second parameter is the processing width, the third is the height, the fourth parameter options, and if the options are defined as Options_recycle_input, the resource is recycled. In other words, you can use the third method to bitmap the first frame of the captured video into any desired size, and the third method can also get a thumbnail image of the memory card.

Bitmap Bitmap = Thumbnailutils.createvideothumbnail (path1, thumbnails.mini_kind);  Bitmap = Thumbnailutils.extractthumbnail (Bitmap, 210, 210);

A new class of mediametadataretriever can be used to get media files from API

New Mediametadataretriever ();  Mmr.setdatasource ("/sdcard/33.mp4");  Bitmap Bitmap = Mmr.getframeattime ();  Image.setimagebitmap (bitmap);  System.out.println (Mmr.extractmetadata (mediametadataretriever.metadata_key_date) + "");  System.out.println (Mmr.extractmetadata (mediametadataretriever.metadata_key_mimetype) + "");  Mmr.release ();

Mediametadataretriever can get thumbnails of any frame in the video.

 PublicStaticBitmap Createvideothumbnail (String filePath) {//Mediametadataretriever is available on API level 8//But was hidden until API levelClass<?> Clazz =NULL; Object instance =NULL;Try{clazz = Class.forName ("Android.media.MediaMetadataRetriever");            Instance = Clazz.newinstance (); method = Clazz.getmethod ("Setdatasource", String.class); Method.invoke (instance, FilePath);//The method name changes between API Level 9 and 10. if(Build.VERSION.SDK_INT <= 9) {return(Bitmap) Clazz.getmethod ("Captureframe"). Invoke (instance); }Else{byte[] data = (byte[]) Clazz.getmethod ("Getembeddedpicture"). Invoke (instance);if(Data! =NULL) {Bitmap Bitmap = bitmapfactory.decodebytearray (data, 0, data.length);if(Bitmap! =NULL)returnBitmap }return(Bitmap) Clazz.getmethod ("Getframeattime"). Invoke (instance); }      }Catch(IllegalArgumentException ex) {//assume this is a corrupt video file}Catch(RuntimeException ex) {//assume this is a corrupt video file. }Catch(Instantiationexception e)      {LOG.E (TAG, "Createvideothumbnail", e); }Catch(InvocationTargetException e)      {LOG.E (TAG, "Createvideothumbnail", e); }Catch(ClassNotFoundException e)      {LOG.E (TAG, "Createvideothumbnail", e); }Catch(Nosuchmethodexception e)      {LOG.E (TAG, "Createvideothumbnail", e); }Catch(Illegalaccessexception e)      {LOG.E (TAG, "Createvideothumbnail", e); }finally{Try{if(Instance! =NULL{Clazz.getmethod ("release"). Invoke (instance); }          }Catch(Exception ignored) {          }      }returnNULL; }

Video Frame Vitamio Learning

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.