Basic Audio and Video. Audio Primary components – Audio file stored in ‘raw’ folder within ‘res’ folder ‘raw’ directory must be created while many formats.

Slides:



Advertisements
Similar presentations
The Windows File System and Windows Explorer To move around the file system and examine your files or get to one you want (say, to modify, delete or copy.
Advertisements

© 2013 Microsoft Corporation. All rights reserved. Schedule a Lync Meeting You can simply schedule an Lync Meeting by using the Outlook add-in for Lync.
Russell Taylor. Sampling Sampled a file from an on-line/on-board source Edited that file by Deleting a section of the original file Added a Fade-in section.
10.2. Audio with SD Card Prof. Oum Saokosal Master of Engineering in Information Systems, South Korea
Royalty Free Music for Schools Do You Have the To Do a Podcast?
Cosc 5/4730 Multimedia Part 1: Audio media. PLAYING AUDIO Android android.media.
Group 8: Dylan Lentini (AE), Mandy Minuti (WSE), Jean Paul Galea (TL)
Mobile Computing Lecture#13. Lecture Contents 2 Widgets  Creating App Widget  Unsupported/Supported Views/Layouts  Widget Layout  Widget Settings.
Implementation of an Android Phone Based Video Streamer 2010 IEEE/ACM International Conference on Green Computing and Communications 2010 IEEE/ACM International.
Chapter 6 Jam! Implementing Audio in Android Apps.
HOW TO ADD AUDIO & VIDEO MRS. CRIDER PIT AUDIO Click on the insert tab Choose the Audio button and select Audio from file option Navigate to your folder.
Chapter 6: Jam! Implementing Audio in Android Apps.
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
Photo IT- How to capture, save and manipulate digital photographs.
Android and Project Structure. Android Android OS – Built on Linux Kernel – Phones – Netbooks – Readers – Other???
Mobile Application Development
Basic, Basic, Basic Android. What are Packages? Page 346 in text Package statement goes before any import statements Indicates that the class declared.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
CS371m - Mobile Computing Audio.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
Digital audio editing software (Audacity) Audacity Instructions Introduction What is Audacity What can you do with Audacity Audacity Control Panel How-To.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Multimedia.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
CS378 - Mobile Computing What's Next?. Fragments Added in Android 3.0, a release aimed at tablets A fragment is a portion of the UI in an Activity multiple.
1 Skip Cave Chief Scientist, Intervoice Inc. Multimodal Framework Proposal.
Computer Systems Week 10: File Organisation Alma Whitfield.
CS5103 Software Engineering Lecture 08 Android Development II.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
Android How to Program Presented by Thomas Bucag, Rob Goodfellowe, Samantha Tomeï © by Pearson Education, Inc. All Rights Reserved.
1 Programming in Android. 2 Outline 3 What you get from Android An Android Application is a Loosely-Coupled Software System The Project Structure The.
DUE Hello World on the Android Platform.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
1 After completing this lesson, you will be able to: Identify each item in the Windows Media Player 9’s Features taskbar. View visualizations. Play and.
LEARNING KINDLE FOR PC WITH ACCESSIBILITY AND A SCREEN READER Norman Coombs
Enhancing a Video/Movie. I.Narrate the Timeline To narrate the timeline Add any video clips, pictures, titles, or credits that you want to display in.
Configuring Android Development Environment Nilesh Singh.
● Click on Start Button ● Go to Programs and click on Photo Story 3.
Storing data on your computer & network. Storage devices Hardware Hard drive Flash drive Tape File server (HD) SAN NAS Software System software Windows.
Field Trip #32 Digital Alarm Clock By Keith Lynn.
HTML5 Audio and Video. Slide 2 History Playing audio and video used to be something of a novelty You would embed a control (with the element) into your.
Playing an MP3 Music File in Conjunction With a PowerPoint 2010 Presentation Victoria Ricciardiello December 2012.
First Venture into the Android World Chapter 1 Part 2.
© 2006 Palm, Inc. All worldwide rights reserved. Kinoma Library.
Introducing the Silverlight Rough Cut Editor (RCE) An Olympics case study Jason Suess Principle Technical Evangelist Media Delivery Scenarios.
Organizing Your Computer: How to Use Files & Folders Cyberspace Explorations November 17, 2004.
Multimedia Capture & storage. Introduction A rich set of API for recording of audio & video. A developer has two choices  launch the built-in app using.
Windows XP Lab 2 Organizing Your Work Competencies.
CS378 - Mobile Computing Audio.
We need some music for the start and end of our movie Look in Student Folder -> Licence Free Music and Sounds Copy your track into your DiDA -> Task 3.
MUSIC GENRE JUKEBOX. CLIENT SPECIFICATIONS Audio Player Create, delete, and modify play lists Play, pause, stop, skip, fast forward, and rewind Send Streaming.
Multimedia. Audio,vedio and Images End user typically refer to vedio/audio using the respective file format MP4 or AVI(audio vedio interleave) Developer.
Software Installation and Copyrights Basic Computer Concepts Installation Basics  Installation Process  Copy files from distribution disks.
Adobe AuditionProject 4 guide © 2012 Adobe Systems IncorporatedHow to record narration1 You can record narration for your video directly into Adobe Audition.
Lecture 7: Media Player Topics: Media Player, Async prepare Date: Mar 3, 2016.
CHAPTER 5 Graphics Drawing Audio. Chapter objectives: Learn to draw to a canvas Examine the process of adding drawn elements and UI controls to a layout.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
CS371m - Mobile Computing Audio. Audio on Device Devices have multiple audio streams: – music, alarms, notifications, incoming call ringer, in call volume,
Audio and Haptic Feedback
Android Application Audio 1.
Multimedia.
Lecture 7: Service Topics: Services, Playing Media.
Android Boot Camp for Developers Using Java, 3E
Manual update through the RetailMedia.patch
Lecture 7: Media Player Topics: Media Player, Async prepare
CS5103 Software Engineering
Lecture 7: Service Topics: Services, Broadcast Receiver, Playing Media.
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

Basic Audio and Video

Audio

Primary components – Audio file stored in ‘raw’ folder within ‘res’ folder ‘raw’ directory must be created while many formats supported,.mp3 is most stable across devices – Instance of MediaPlayer android.media.MediaPlayer key methods – create » static convenience method for instantiation and preparation – start

Sample code - MediaPlayer MediaPlayer audioPlayer; audioPlayer = MediaPlayer.create(this, R.raw.audio_file_name); //no extension on file name audioPlayer.setAudioStream(AudioManager.STREAM_MUSIC); audioPlayer.start();

MediaPlayer – coding issues Other information – audioPlayer.stop(), pause(), and resume() audio does not automatically stop if activity pauses only if application stops – audioPlayer.release() should be called when done MediaPlayers can be expensive frees resources – Can use a BroadcastReceiver to allow hardware control (e.g. play, pause, skip, etc. on headset) – Can use Service to continue playback when App stops

MediaPlayer – coding issues One of the prepare() methods must be called – prepare() method called automatically by create() method OK if using a file – prepareAsync () method cannot use create() convenience method starts MediaPlayer in a new thread better for streaming audio app does not ‘hang’ if waiting for buffered data

Video

Primary components – Video file.3gp file – new standard supported by 3G phones can be stored in res/raw folder – don’t supply extension in call can be stored within device’s file system (i.e. SD card) – VideoView widget typical widget in xml layout file key methods – setVideoPath (full path and file name with extension) – start

Sample code - VideoView //Video stored on SD Card VideoView vv = (VideoView)findViewById(R.id.vvVideo); vv.setVideoPath("/sdcard/filename.3gp"); vv.start(); or: //Video stored in raw directory VideoView vv = (VideoView)findViewById(R.id.vvVideo); vv.setVideoPath("android.resource://edu.csci153/raw/filename"); vv.start();

Internal file system Emulator or attached device

Internal file system Display files within eclipse – Window…Show View…Other…File Explorer avoid ‘data’ directory – emulator allows access – system directory – restricted access on an actual device Copy files to/from device within eclipse – icons in File Explorer copy to: ‘Push a file onto the device’ icon copy from: ‘Pull a file from the device’ icon delete from device: ‘Delete the selection’ icon