0% found this document useful (0 votes)
48 views9 pages

Multimedia

Multimedia refers to computer representations of audio, video, and animation in addition to traditional text and graphics. A multimedia application uses multiple media sources like text, graphics, images, audio and video together. Common multimedia file formats include MP4, AVI, FLV for video, MP3, WAV, MIDI for audio, and JPEG, PNG for images. The MediaPlayer class in Android allows playing and controlling audio and video files by setting data sources, preparing, starting, stopping, pausing playback, seeking to positions, checking playback status, and setting volume.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views9 pages

Multimedia

Multimedia refers to computer representations of audio, video, and animation in addition to traditional text and graphics. A multimedia application uses multiple media sources like text, graphics, images, audio and video together. Common multimedia file formats include MP4, AVI, FLV for video, MP3, WAV, MIDI for audio, and JPEG, PNG for images. The MediaPlayer class in Android allows playing and controlling audio and video files by setting data sources, preparing, starting, stopping, pausing playback, seeking to positions, checking playback status, and setting volume.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

What is Multimedia ?

 Multimedia means that computer information can be represented


through audio, video, and animation in addition to traditional media
(i.e., text, graphics drawings, images).
 Multimedia is the field concerned with the computer-controlled
integration of text, graphics, drawings, still and moving images
(Video), animation, audio, and any other media where every type of
information can be represented, stored, transmitted and processed
digitally.
 A Multimedia Application is an Application which uses a
collection of multiple media sources e.g. text, graphics, images,
Different Multimedia Formats.

 File formats are designed to store specific types of information, such as JPEG


and TIFF for image or raster data, AI (Adobe Illustrator) for vector data, or PDF
for document exchange. Uncompressed- files that are not compressed and are
capable of having a large file size.
 Video: .mov, .mp4, .m4a, .m4v, .mpg/.mpeg, .wmv, .avi, .flv, .3gp, .3gpp, .3g2,
.3gp2
 Audio: .mp3, .ogg, .wav, .aac, .wma, .midi, .rm
 Image: .jpg, .jpeg, .png
Some multimedia file formats & its definitions

 "MP4" — MPEG-4 Part 14 video format (.mp4)


 "AVI" — Microsoft AVI format (.avi)
 "FLV" — Adobe Flash video files (.flv)
 "QuickTime" — Apple QuickTime multimedia container (.mov)
 "Matroska" — Matroska multimedia container format (.mkv)
 "Ogg" — Ogg multimedia container format (.ogg)
 "GIF" — GIF and animated GIF (.gif)
 "VideoFrames" — sequence of raster images
 "VideoFormat" — a generic registered format to cover all other video
containers

What is Multimedia Framework ?

 A multimedia framework is a software framework that handles media on a


computer and through a network. A good multimedia framework offers an intuitive 
API and a modular architecture to easily add support for new audio, video and 
container formats and transmission protocols. It is meant to be used by applications
such as media players and audio or video editors, but can also be used to build 
videoconferencing applications, media converters and other multimedia tools. Data is
processed among modules automatically, it is unnecessary for app to pass buffers
between connected modules one by one.
 In contrast to function libraries, a multimedia framework provides a 
run time environment for the media processing. Ideally such an environment
provides execution contexts for the media processing blocks separated from the
application using the framework. The separation supports the independent processing
of multimedia data in a timely manner. These separate contexts can be implemented
as threads.
How to play audio in android studio ?

 We can play and control the audio files in android by the help of MediaPlayer
class.
 The android.media.MediaPlayer class is used to control the audio or video
files.
Methods of MediaPlayer
class

 There are many methods of MediaPlayer class. Some of them are as follows:
Method Description
public void setDataSource(String path) sets the data source (file path or http url) to use.

public void prepare() prepares the player for playback synchronously.

public void start() it starts or resumes the playback.

public void stop() it stops the playback.


public void pause() it pauses the playback.
public boolean isPlaying() checks if media player is playing.

public void seekTo(int millis) seeks to specified time in miliseconds.

public void setLooping(boolean looping) sets the player for looping or non-looping.

public boolean isLooping() checks if the player is looping or non-looping.

public void selectTrack(int index) it selects a track for the specified index.

public int getCurrentPosition() returns the current playback position.

public int getDuration() returns duration of the file.


public void setVolume(float leftVolume,float sets the volume on this player.
rightVolume)

You might also like