Sie sind auf Seite 1von 15

1 | P a g e

MULTIMEDIA PROJECT: MPR PLAYER



A PROJECT REPORT


Submitted by

MEENAKSHI MALHOTRA (Roll NO. ME IT 13 609)
PAWAN KUMAR THAKUR (Roll NO. ME IT 13 613)
ROHIT THAPER (Roll NO. ME IT 13 615)


Submitted to

VEENU MANGAT( Assistant Prof IT) UIET,
Panjab University Chandigarh.






University Institute Of Engineering and
Technology(U.I.E.T), Panjab University, Chandigarh-
160014



2 | P a g e




CERTIFICATE


I hereby certify that the work which is being presented in the M.E. multimedia lab
project report entitled MPR PLAYER in partial fulfillment of the requirements for the
award of the Multimedia lab and submitted to the Department of Information Technology of
University Institute Of Engineering and Technology(U.I.E.T), Panjab University, Chandigarh
is an authentic record of my own work carried out during a period from February 2014 to
May 2014 under the supervision of Ms. VEENU MANGAT( Assistant Prof IT) UIET,
Panjab University Chandigarh.

The matter presented in this thesis has not been submitted by me for the award of any
other degree elsewhere.


Signature of Candidates
PAWAN KUMAR THAKUR (Roll NO. ME IT 13 613)
MEENAKSHI MALHOTRA (Roll NO. ME IT 13 609)
ROHIT THAPER (Roll NO. ME IT 13 615)



This is to certify that the above statement made by the candidate is correct to the best
of my knowledge.


(Signature of Supervisor)

Date: 05/05/2014 Name & Designation
(Project Supervisor)



3 | P a g e



Acknowledgement

Lab projects is an indispensable part of any engineering curriculum. It provides the
students with an opportunity to gain experience on the practical application of their technical
knowledge.


I express my sincere gratitude to Ms. VEENU MANGAT( Assistant Prof IT) UIET,
Panjab University Chandigarh for giving us the opportunity to undergo this project. I
further thank her for lending a helping hand when it came to solving my problems related to
the project. This project would not have been possible without her valuable time and support.


I also thank Gunpreet Kaur (Lectt IT UIET ) for supporting us equally in this
project which gave all of us an opportunity to undertake a Soft skills project during this
period which helped us to learn and understand the new things.


This project is an attempt to learn new latest things regarding multimedia application
development and to improve technical command on them.


Any suggestions to improve are always welcome.






4 | P a g e


Abstract


MPR Player is a flash based media player which allows user to play, pause, and stop
a preloaded Mp3 file with the features of volume control and display the track length of the
Mp3 file loaded.

It also displays visualization while playing the track. Which is intensified when
volume is increased and weakens when volume is decreased..

It is developed using Adobe Flash Professional CS6. GUI tools in Adobe Flash
Professional has been used to design the user interface and Action Script 3.0 has been used
for the functionality process.

This project is very user friendly and simple to use.
















5 | P a g e


Table of Contents

Certificate.1
Acknowledgement....2
Abstract..3
Table of Contents..4

CHAPTERS
1. Introduction..6
2. System Requirements................7
` 2.1 Hardware Requirements
2.2 Software Requirements

3. Language Description....8
4. Project Description9
5. DesignPhase10
6. Screen shots11
7. Coding12
8. Conclusion..14
9. References .15








6 | P a g e


Chapter 1
INTRODUCTION

1.1 Aim of this Project
1. To get familiar with multimedia tools like adobe flash , Photoshop.
2. Learning basics of action script 3.0



MPR Player is a flash based media player which allows user to play, pause, and stop
a preloaded Mp3 file with the features of volume control and display the track length of the
Mp3 file loaded.

It also displays visualization while playing the track. Which is intensified when volume is
increased and weakens when volume is decreased.















7 | P a g e


Chapter 2
SYSTEM REQUIREMENTS

2.1 Hardware Requirements:

Intel i3/AMD Athlon processor or above with minimum 2.5Ghz Speed
RAM: Minimum 2GB
Hard Disk: Minimum 20GB
2.2 Software Requirements:

Adobe Flash Professional CS6
Adobe Photoshop CS6
Operating system : Windows 7/8













8 | P a g e


Chapter 3
LANGUAGE DESCRIPTION

ADOBE FLASH CS6: Adobe Flash Professional is a multimedia authoring program
used to create content for the Adobe Engagement Platform, such as web applications, games
and movies, and content for mobile phones and other embedded devices.
It includes support for publishing files as HTML5 and generating sprite sheets.

ACTION SCRIPT: It is a dialect of ECMA Script (meaning it is a superset of the
syntax and semantics of the language more widely known as JavaScript), and is used
primarily for the development of websites and software targeting the Adobe Flash
Player platform, used on Web pages in the form of embedded SWF files.

ADOBE PHOTOSHOP CS6: Adobe Photoshop is a graphics editing
program developed and published by Adobe Systems. Adobe Photoshop CS6 brought a suite
of tools for video editing. Color and exposure adjustments, as well as layers, are among a few
things that are featured in this new editor. Upon completion of editing, the user is presented
with a handful of options of exporting into a few popular formats. CS6 brings the "straighten"
tool to Photoshop, where a user simply draws a line anywhere on an image, and the canvas
will reorient itself so that the line drawn becomes horizontal, and adjusts the media
accordingly. This was created with the intention that users will draw a line parallel to a plane
in the image, and reorient the image to that plane to more easily achieve certain perspectives.







9 | P a g e


Chapter 4
PROJECT DESCRIPTION

PROJECT THEORY:
our project is developed using ADOBE FLASH PROFESSIONAL CS6 which consists of a
form, 3 buttons(Play, Pause, Stop), a volume bar, a visualization graphic and two timers one
for displaying track length and other for indicating current track positioning. The
functionality of each thing is described as follows:

1. Form: Form is used as a workspace upon which MPR Player is designed.
2. Buttons: three buttons used to provide interface is described as follows

i. Play button: is used to play the song.
ii. Pause button: is used to pause the song and when play button is pressed after
pause button the remaining song will be played from the time where it was
stopped.
iii. Stop button: is used to stop the song means after using this button the song
will be start from the starting.

3. Volume bar: with help of this we can increase or decrease the sound of the
song.
4. Visualization: it is an graphical animation displayed when the song is
played.
5. Timers:

i. Track length timer: this timer shows the track length of the mp3 file
loaded.
ii. Current track positioning timer: this timer shows the running time
of the track being played.




10 | P a g e


Chapter 5
DESIGN PHASE

Front end designing


Buttons:























Visualizer
11 | P a g e


Chapter 6
SCREEN SHOT









12 | P a g e


Chapter 7
Coding
import flash.events.MouseEvent;
import flash.media.Sound;
import flash.net.URLRequest;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import fl.events.SliderEvent;
import flash.utils.Timer;
import flash.ui.Mouse;

var myMusic:Sound = new Sound();
var soundFile:URLRequest = new URLRequest("d.mp3");
var channel: SoundChannel = new SoundChannel();
var sTransform:SoundTransform = new SoundTransform();
var myTimer:Timer = new Timer(10);
var songPosition:Number = 0;
var myContext:SoundLoaderContext = new SoundLoaderContext(5000);

myMusic.load(soundFile,myContext);

myTimer.addEventListener(TimerEvent.TIMER,updateTime);
btnPlay.addEventListener(MouseEvent.CLICK,playMusic);
btnStopp.addEventListener(MouseEvent.CLICK,stopMusic);
sldVolume.addEventListener(SliderEvent.CHANGE,changeVolume);
myMusic.addEventListener(Event.COMPLETE,getSongLength);
btnPause.addEventListener(MouseEvent.CLICK,pauseMusic);

function pauseMusic(evt:MouseEvent):void
{
songPosition = channel.position;
channel.stop();
}

function convertTime(millis:Number):String
{
var Minutes:Number= (millis % (1000*60*60))/(1000*60);
var Seconds:Number=((millis % (1000*60*60))%(1000*60))/1000;
return (Math.floor(Minutes) + ":" + Math.floor(Seconds));
}




function updateTime(TimerEvent):void
{
lblSongTime.text = convertTime(channel.position);
13 | P a g e

barGreen.height = (channel.leftPeak *55);
barRed.height = (channel.leftPeak *55);
barBlue.height = (channel.leftPeak *55);
barYellow.height = (channel.leftPeak *55);
}

function changeVolume(evt:SliderEvent):void
{
sTransform.volume =sldVolume.value;
channel.soundTransform =sTransform;
}

function getSongLength(evt:Event):void
{
lblSongTotalTime.text=convertTime(myMusic.length);
}


function stopMusic(evt:MouseEvent):void
{
channel.stop();
songPosition=0;
}

function playMusic(evt:MouseEvent):void
{
channel= myMusic.play(songPosition);
myTimer.start();
}














14 | P a g e

Chapter 8
CONCLUSION


Making MPR Player was great learning experience for us which provided us with the
opportunity of working with latest multimedia tools such as Adobe Flash professional,
Photoshop.

This project is user friendly and is easily modifiable in future which can improve its
functionality efficiency and ensure reliability.














15 | P a g e

References

WEBSITES:
1. www.LearnToProgram.tv
2. www.linkedin.com/in/marklassoff

Das könnte Ihnen auch gefallen