Vitamio Video Playback

Source: Internet
Author: User

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 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) |  Comments (4.0)   Edit   Android Vitamio Public beta release (2013-05-28) Abstract: "Android" Vitamio 4.0 public beta release (2013-05-28) read the full text posted @ 2013-05-28 15:09  farmer Uncle Reading (4662) |   Reviews   Edit  vitamio feature List not supported (this article will be updated 2013-03-13) Summary: Always say the advantages of Vitamio, here also listed the shortcomings, on the one hand to remind developers to note that On the other hand, it is also better provided to the Vitamio team for reference, as a reference for subsequent version upgrades. 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 you to share your Vitamio experience, this article will further introduce VIA simple way to use Tamio. Read the full text posted @ 2013-01-15 10:58  farmer Uncle Reading (22644) |  Comments (+)   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: Before using any of the program classes and methods, we recommend that you use this class to check if the device already has the Vitamio plugin installed. 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 ability to achieve the main function of the play interface, we canRefer to the code implementation of OPlayer. Read the full text posted @ 2012-08-30 14:34  farmer Uncle Reading (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, providing 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 own Android Universal player (10)--local playback (thumbnail, video, video scanning service) Summary: Vitamio is the team's sincerity, In addition to playing Vplayer as the best player on Android, we also want to 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 posted @ 2012-07-15:27  Peasant Uncle Reading (11273) |  Comments ($)   Edit   Build your own Android Universal player with Vitamio (9)--online play (online TV) Summary: If you don't want to look for video, 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 (June)   edit   use Vitamio to build your own Android Universal player (8)-- Detail Optimization Summary: The success of the product is 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 posted @ 2012-06-29 14:45  farmer Uncle Reading (10083) |  Comments (+)   Edit   use Vitamio to build your ownAndroid Universal player (6)--online play (playlist) Summary: The new version of Vplayer from design to development phase, the development cycle is expected to be one months, which also means that the new version of Vitamio will be released, developers can and this series of articles, the first development of other features. The content of this chapter is "online video playlist", which brings together the mobile version of major video websites, welcome to the "premiere video" Feedback Improvement suggestions! Read the full text posted @ 2012-06-20 10:27  farmer Uncle Reading (10577) |  Comments (  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, playlist) 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 posted @ 2012-05-30 17:27  farmer Uncle Reading (12798) |  Comments ($)   edit   use Vitamio to build your own Android Universal player (2)-- Gesture control brightness, volume, Zoom Summary: This chapter continues to improve playback relatedThe core function of the player is to lay the groundwork for subsequent expansions. Read the full text posted @ 2012-05-22 16:19  farmer Uncle Reading (22546) |  Comments (1)   Edit   Build your own Android Universal player with Vitamio Preparation Summary: Although Android has built-in videoview components and MediaPlayer classes to support the development of video players, the support format, performance and other aspects are very limited, Use the Open source project Vitamio to create your 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.

Publicint 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.

  • 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);

    starting with API 10, a new class of mediametadataretriever can be used to get information about media files.

    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.

    PublicStatic Bitmap Createvideothumbnail (String filePath) {//Mediametadataretriever is available on API level 8//Hidden until API level class<?> Clazz =Null Object instance =Nulltry {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! =Nullreturn bitmap; }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;}           

Vitamio Video Playback

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.