Loading audio and video media in Android Projects HD
Demonstrating how to use audio and video media files in an Android application with the use of a SeekBar to show how to use Thread.sleep() to allow for animation of a Widget. Demonstrating how to create a SeekBarListener and override required methods. Basic explanation of how to implement a Java interface with multiple examples including anonymous class instances and within the main class itself. Table of Contents: 00:40 - Review the .xml layout files 02:23 - Use the raw folder for media 03:16 - Activity files 03:42 - Note the use of Runnable in the header 04:10 - Declaration section 04:36 - Widget initialization 04:42 - Use of a static method 05:11 - Using the Thread object 06:03 - Listeners are interfaces too! 06:30 - stopButton - reload the sound into the player 07:18 - VideoButton - other screen 07:46 - SeekBarListener 08:00 - required interface methods can be empty 08:27 - Update SeekBar by user input 09:10 - Runnable interface means we MUST have a run method 10:09 - Thread.sleep for waiting 11:55 - Start App 12:10 - Start music and animation 12:57 - sound scrubs as dragged 13:45 - stopButton resets 14:10 - Code linked to app events 15:53 - Options for changing seekBar 17:08 - Swap to the other screen 17:51 - MediaController for video 19:58 - Use the setupMedia method to link the player and properties 20:35 - Android handles all Video concerns 20:49 - VideoActivity in action 22:34 - Project Review
Похожие видео
Показать еще