Posts Tagged ‘Video’

Android: Loading and playing videos from different sources

Click here to read Android: Loading and playing videos from different sources

This is the 41st post on the website! It explains how to load images from a variety of locations, such as the ‘Resources’ folder, the SD card and from a remote server. As usual, the source code is available for download at the end of the post.

Let’s start with the basics: video formats. At the time this is being written, Android supports .3gp and .mp4 video files encoded as H.263,H.264 and MPEG-4 SP file formats. For an updated list, visit this link.

(more…)

Merry Christmas! – New YouTube Channel

Click here to read Merry Christmas! – New YouTube Channel

Merry Christmas! Happy holidays!  I hope that you got what you wanted this time.

Some may think that I have abandoned the Retro Games section of the website. That’s not true! To prove it, why not watch some videos at the new 41 Post YouTube Channel? There, you will find videos related to the Retro Games posts, basically gameplay videos from the MODs and source ports reviewed here. I’m adding videos to every post in that category, and hope to release new videos the same day as new posts arrive. All videos will be at 1080p (if the content supports it).

Last but not least, in a near future, videos that show some of the projects I’m currently working on will be there too.

That said, please subscribe to 41 Post YouTube Channel!

How to get Android local files URI

Click here to read How to get Android local files URI

When programming applications for Android that requires the playback of audio or video files, sometimes, there’s the need to obtain the URI of those media files instead of using a String for the absolute path. But what is a URI? A URI (Uniform Resource Identifier) is an address to an local or internet resource. It’s more like a standardized path syntax that allows pointing to a specific resource that’s available over the internet, however we are going to use it to point it to a local resource.

A URI is specially useful, when using the VideoView class to load a video located on the res folder or in the SD card. Passing the video file to the VideoView as a String won’t even work on an emulated Android device. This way, we need to get the URI of the file.

(more…)

Page 2 of 212