Multimedia. Audio,vedio and Images End user typically refer to vedio/audio using the respective file format MP4 or AVI(audio vedio interleave) Developer.

Slides:



Advertisements
Similar presentations
Multimedia Components (Develop & Delivery System)
Advertisements

Slide 1 Topic 1 Software Development Process for Multimedia Applications.
Global MP3 Geoffrey Beers Deborah Ford Mike Quinn Mark Ridao.
Chapter 11 Media and Interactivity Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
Pro Tools 7 Session Secrets Chapter 6: After the Bounce or Life Outside of Pro Tools Life Outside of Pro Tools.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
Chapter 11 Media and Interactivity Basics Key Concepts
GCSE Computing#BristolMet Session Objectives#10 MUST define the term sample rate COULD explain how sound can be sampled and stored in digital form SHOULD.
1 Multimedia on the Web: Issues of Bandwidth Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each second.
It provides a framework for embedded multimedia facilities in java enabled mobile devices.
3.6 Multimedia/Digital Media Components (Audio and Video) by Francisco Oliveira.
Name Matrix No CHIA EE LOON(LEADER) OW CHEE YEE LAURA TIONG UNG KAH CAT200 Integrated Software Development Workshop Storyboard.
Section 9.1 Identify multimedia design guidelines Identify sources of multimedia files Explain the ethical use of multimedia files Describe multimedia.
Group 8: Dylan Lentini (AE), Mandy Minuti (WSE), Jean Paul Galea (TL)
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
Multimedia Systems As Presented by: Craig Tomastik.
© De Montfort University, Synchronised Presentations using Windows Media Howell Istance School of Computing De Montfort University.
Mobile Computing Lecture#13. Lecture Contents 2 Widgets  Creating App Widget  Unsupported/Supported Views/Layouts  Widget Layout  Widget Settings.
Chapter 6 Jam! Implementing Audio in Android Apps.
Neal Stublen Pre-HTML5 Solutions  Audio and video were embedded in pages using plug-ins Apple Quicktime Microsoft Silverlight Adobe.
UNIT K: INCORPORATING VIDEO AND AUDIO 1 Encoding: the process of transforming moving image and/or sound into a digital file. Each encoding method known.
Chapter 6: Jam! Implementing Audio in Android Apps.
HTML5 Application Development Fundamentals
App Development on Android
Quicktime Howell Istance School of Computing De Montfort University.
Mobile Application Development
XP 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets Tutorial 8.
Technical Analysis of Video Element tag of HTML5 and different codecs supported Lohith B Om HU ID:
Chapter 14 Recording and Editing Sound. Getting Started FAQs: − How does audio capability enhance my PC? − How does your PC record, store, and play digital.
Week 8 - Tutorial Interactive Digital Moving Image Production | CU3003NI | - Pratik Man Singh Pradhan.
CS371m - Mobile Computing Audio.
1 Java Media Framework Multimedia Systems: Module 3 Lesson 1 Summary: r JMF Core Model m Architecture m Models: time, event, data r JMF Core Functionality.
Section 9.1 Section 9.2 YOU WILL LEARN TO…
Multimedia.
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
Computer Science [3] Java Programming II - Laboratory Course Lab 7: Multimedia: Applets and Applications Faculty of Engineering & IT Software Engineering.
Creating Mobile Apps with App Inventor! Day 5 Google search Kris Gordon Ludlow for links.
Multimedia is a program that combines:
Computing in the Modern World BCS-CMW-7: Data Representation Wayne Summers Marion County October 25, 2011.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
XP Tutorial 8New Perspectives on HTML and XHTML, Comprehensive 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets Tutorial.
XP Tutorial 8New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and.
Tutorial 7 Working with Multimedia
Tutorial 7 Designing a Multimedia Web Site
Back to the Basics - Video Nick Kwiatkowski Michigan Flex Users Group.
Streaming and Content Delivery SECTIONS 7.4 AND 7.5.
Digital Video File Formats an overview. Introduction Digital Video & Audio files are also known as container formats. These “containers” are digital files.
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.
CS378 - Mobile Computing Audio.
2 If aliens came to this solar system and observed humans over the last several years, what would they think is the most significant benefits of the.
Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0.
Audio Formats. Digital sound files must be organized and structured so that your media player can read them. It's just like being able to read and understand.
CHAPTER 8 Multimedia 1. Using Multimedia ❖ Multimedia: the combination of text, sound, and video to express an idea or convey a message. ❖ Podcasts: a.
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.
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.
MPEG-4 Binary Information for Scenes (BIFS)
Chap 3. Audio/Video api.
Lecture 7: Service Topics: Services, Playing Media.
Android Boot Camp for Developers Using Java, 3E
Lecture 7: Media Player Topics: Media Player, Async prepare
Who am I? Davy Van Deursen post-doctoral researcher
HTML5 Level II Session II
Recap: Android Components
Network Controllable MP3 Player
Lecture 7: Service Topics: Services, Broadcast Receiver, Playing Media.
Presentation transcript:

Multimedia

Audio,vedio and Images End user typically refer to vedio/audio using the respective file format MP4 or AVI(audio vedio interleave) Developer needs to understand what it is behind the scene. An MP4 vedio is just like a zip file that can package files within it. In multimedia this package format is referred to as container format. A container need to package vedio elements,audio elements and metadata that provide information about the title or cover art of the vedio.

Continue.. Keeping audio & vedio elements together is usually referred to as multiplexing. MPEG-4(,mp4),Flash(.flv) & Ogg(.ogv) are example of popular container format. Audio & vedio in raw form very large & unsuitable for storage and transport,so before packaging it in container format need to be compressed using compression algorithm.CODECS H.264 AVC,Theora & VP8 are popular vedio codecs. MP3,AAC & Vorbis are popular audio codecs.

Android support several media codecs & container formats An MPEG-4 container with encoded audio and vedio elements shown. Encoded vedio (H.264 AVC) Encoded audio (aac lc) Metadata(title cover art)

Once media is available in a container,it is ready to play. To play it first audio & vedio content is separated(de-multiplexed). The individual components are then decompressed back to the raw format using respective codec. Finally process by the smart device to play.

Decompressing vedio elements result in displaying a series of images on the screen. Decompressing the audio element result in a sound stream on the speaker of the device Both these elements are synchronized with the help of metadata

Multimedia API-playback Built-in app mechanism-requesting the pre-existing Android app to playback a media element from an app that require the multimedia feature. Developers perspective-send an intend to play the required media using the built in Android App. Rest is taken care by the built-in app itself.

audio To play an audio using built-in app mechanism-use an implicit intent to start the intended music player app. Intent i= new Intent(Intent.ACTION_VIEW); Uri uri= Uri.parse(“ i.setDataAndType(uri,”audio/*”); startActivity(i);

vedio Playing a vedio using a built-in mechanism ia similar to playing an audio. Intent i= new Intent(Intent.ACTION_VIEW); Uri uri= Uri.parse(“ i.setDataAndType(uri,”vedio/*”); startActivity(i);

In-app Mechanism More control and flexibility to a developer to handle the media playback. Does not require another app to play the desired media rather plays it within app Media player API is the engine

MediaPlayer object behaves as a state machine & has its own lifecycle and states. Media stream goes through the idle,initialized,prepared and started states. Idle state-MediaPlayer objects gets here as soon as created. Initialized state-set the data source-a file path or an HTTP URL of the media stream to play(setDataSource() method). Prepare-media stream fetched and decoded to playback(prepareAsync())

Once it is prepared it can be start using start() followed by play() stop(). Remember to call release() once the mediaplayer object is not required any more which takes it to end state. MediaPlayer mediaPlayer = MediaPlayer.create(this, R.rap.song); mediaPlayer.start(); mediaPlayer.pause();

In order to start music from the beginning, you have to call reset() method. Its syntax is given below. mediaPlayer.reset();

isPlaying()This method just returns true/false indicating the song is playing or not seekTo(position)This method takes an integer, and move song to that particular second getCurrentDuration()This method returns the current position of song in milliseconds getDuration()This method returns the total time duration of song in milliseconds setVolume(float leftVolume, float rightVolume)This method sets the up down volume for this player

setDataSource(FileDescriptor fd)This method sets the data source of audio/video file selectTrack(int index)This method takes an integer, and select the track from the list on that particular index getTrackInfo()This method returns an array of track information