Professional Documents
Culture Documents
Video On Demand
Video On Demand
Winamp, Real Player , etc., They are meant for playing media files for single user
network environment using client server system. By which any user can play any
file in his system from the server according to his wish. Another advantage in this
project is more than one user can play media files at the same time because they
are independent of each other . so different users can play different files in their
system.
developed to support all kind of Media Files such as Avi, mpg, mp3, au, wav, mov
, etc.,
SYSTEM STUDY
INTRODUCTION
Technical Feasibility
Operation Feasibility
Economical Feasibility
OPERATIONAL FEASIBILITY
Proposed projects are beneficial only if they can be turned out into
information system. That will meet the organization’s operating requirements.
Operational feasibility aspects of the project are to be taken as an important part of
the project implementation. Some of the important issues raised are to test the
operational feasibility of a project includes the following: -
Is there sufficient support for the management from the users?
Will the system be used and work properly if it is being developed and
implemented?
Will there be any resistance from the user that will undermine the possible
application benefits?
This system is targeted to be in accordance with the above-mentioned
issues. Beforehand, the management issues and user requirements have been taken
into consideration. So there is no question of resistance from the users that can
undermine the possible application benefits.
The well-planned design would ensure the optimal utilization of the computer
resources and would help in the improvement of performance status.
ECONOMIC FEASIBILITY
A system can be developed technically and that will be used if installed
must still be a good investment for the organization. In the economical feasibility,
the development cost in creating the system is evaluated against the ultimate
benefit derived from the new systems. Financial benefits must equal or exceed the
costs.
The system is economically feasible. It does not require any addition
hardware or software. Since the interface for this system is developed using the
existing resources and technologies available at NIC, There is nominal
expenditure and economical feasibility for certain.
SYSTEM REQUIREMENTS
HARDWARE CONFIGURATION
HARD DISK 20 gb
SOFTWARE CONFIGURATION
APPLICATION PROGRAMMING
PROJECT DESCRIPTION
network environment which accepts requests from more than one user and play
The administrator of the project can add new media files and remove
Any user who got registred after filling the sign up form can enter and
view list of audio and video files and play the media files of his wish.
ABOUT PROJECT
Sections
This project has several sections. There are all shown here.
Welcome Screen
Log on Screen
Main Screen
Audio Screen
Video Screen
Welcome Screen
This is the introduction for my project contains a video file welcomes you
all. This page is fully designed in HTML Hyper Text Mark Up Language using
the mpg video file created by me. After certain time limit the page automatically
In this screen the user register his name and password. Only the
registered users can enter in my project. Here High level validations are
maintained. One user should not get the existing name. And all the fields should
be entered by the user. I get the values of this form when user clicks on the submit
button and from servlet the server get the all values and store all of them to the
database.
Log On Screen
In this screen the registered users can enter from this. Here also
the logon screen with an error messages. If the user enters a valid user name and
password he is redirected to the main page. In this log on screen we use the
userinfo table.
Main Screen
This screen displays the links for the audio, video and log off
buttons. When we click the corresponding button we get the corresponding pages
from it.
Audio Screen
We get the screen from the audio button clicked in the previous
Main Screen. Main Screen get the audio files from the server and creates a web
page and replaces the current document location. In this page the audio files are
placed in the combobox. Then we click any of the song means extension by mp3.
Video Screen
We get the screen from the video button clicked in the previous
Main Screen.
SOFTWARE DESCRIPTION
What Java Is
feature that is best known about Java is that it can be used to create programs that
execute from World Wide Web pages. These programs are called applets.
Java programs made such a big splash on the Web because they offered
interactivity in a medium that was largely one way. A Java applet running on a
user interaction.
on and off the Internet. A lot of the initial interest undoubtedly came from people
who wanted to know whether Java lived up to the hype. In a short time, the
language has become one of the biggest buzzwords of the Internet, spawning
magazines, Web sites, training courses, conferences, and more than 120 books.
Java inherits its object-oriented concepts from C++ and other languages
such as Smalltalk. The fact that a programming language is object oriented may
variable types have the same size across all Java development platforms-so an
integer is always the same size, no matter which system a Java program was
written and compiled on. Also, as shown by the use of applets on the Web, a
Java .class file of byte code instructions can execute on any platform without
different systems.
to develop Java programs. These classes are organized into groups called
Networking
Applet programming
Error handling
The API includes enough functionality to create sophisticated
The Java API must be supported by all operating systems and Web
software equipped to execute Java programs, so you can count on the existence of
many useful graphical user interface (GUI) components (also called widgets or
controls). The AWT also includes classes to manage component layout and utility
classes to handle fonts, colors, and other GUI-related items. Because Java is a
multiplatform solution, the AWT provides a common interface to the native GUI
highly portable.
functional groups:
Text controls
Simple Widgets:
The Java AWT encapsulates many of the controls common to most GUIs.
Specifically, these are the Button, Checkbox, Choice, Label, List, and Scrollbar
classes.
Text Controls:
enter and display text. Unlike the simple widgets just discussed, the text controls
displaying text, getting text from the user, and selecting portions of text. The base
class also allows the control to be made editable or read-only. The Text Field class
The AWT Canvas class is a generic Component class. The Canvas class is
most often used to display images. It is also used as the background for user
drawing.
The AWT Container class is a Component class that can contain other
Component objects. Although Container is an abstract class, its derived classes are
Container classes are the basic frameworks from which you build the GUI
components of your applets. The Container hierarchy can be divided into two
and can be instantiated or sub classed. Panels are Java's multipurpose containers
and do not provide any special functionality-except for the capability to embed
other GUI objects. Panels give you a convenient method of forming composite
controls. The Panel class performs one other important function: It is the super
class of the AWT Applet class. This makes sense because one of the things you do
Event Handling:
In Java, most of the programming you do is event driven. This means that
Java programs spend a lot of time waiting for someone to do something. For
example, when a user presses a button, your applet must provide a method that is
executed in response to that event. The Demo Frame class uses the action()
Layout Classes:
controls in Container objects. These are the layout classes. All layout classes are
derived directly from Object. These classes all implement the Layout Manager
interface.
Flow Layout
Border Layout
Card Layout
Grid Layout
GridBagLayout
The I/O Package:
The Java I/O package provides an extensive set of classes that handle input
and output to and from many different devices. The I/O package, also known as
java.io, contains many classes, each with a variety of member variables and
methods. This chapter does not take an exhaustive look at every class and method
contained in the I/O package. Instead, you can view this chapter as a tutorial on
how to perform basic input and output using the more popular I/O classes.
facilities. It covers the classes, interfaces, and exceptions that make up the java.net
package.
Classes
The classes in the networking package fall into three general categories:
quick and easy way to access content using Uniform Resource Locators. This
content may be located on the local machine or anywhere on the WWW. The
URLEncoder class provides a way to convert text for use as arguments for CGI
scripts.
and InetAddress are the classes that provide access to plain, bare-bones
networking facilities. They are the building blocks for implementing new
Exceptions:
Java's exception system allows for flexible error handling. The java.net
package defines five new exceptions, which are described in the following
java.lang.Exception object.
Interfaces:
The java.net package defines three interfaces. These interfaces are used
primarily behind the scenes by the other networking classes rather than by user
classes. Unless you are porting Java to a new platform or are extending it to use a
new socket protocol, you probably will have no need to implement these
interfaces in a class. They are included here for completeness and for those people
who like to take off the cover and poke around in the innards to find out how
things work.
Using TCP/IP:
ServerSocket class that listens to a port and waits for clients to connect. When an
application then repeatedly calls the ServerSocket accept() method. That method
blocks application processing until a client connects. Once a client does connect,
accept() returns a Java Socket object representing the connection to the client
machine. The server then creates a new thread for the processing of data related to
this connection.
Because of the way Java sockets are engineered, client and server
operations are nearly identical. The major differences are that the server
communicates with multiple clients but the client communicates with only a
single server, and that the server has to create a listen port for initial connections.
To provide a common base API for accessing data, Sun (with support from
actual database product being used to store the data. In theory, an application
written against the basic JDBC API using only SQL-2 can function against any
Database Requirements:
Most systems currently use one of three major database management systems:
order to be JDBC-compliant:
java.sql.Driver
java.sql.Connection
java.sql.Statement
java.sql.PreparedStatement
java.sql.CallableStatement
java.sql.ResultSet
java.sql.ResultSetMetaData
java.sql.DatabaseMetaData
Driver to determine whether it can handle a given URL. If one of the Drivers in its
list can handle the URL, that Driver should create a Connection object and return
Driver through the DriverManager, applications are rarely concerned with this
interface.
information about the database session it manages and provides the application
must be bound to Java data. A Statement provides methods for making such calls
and returns to the application the results of any SELECT statement or the number
SELECT call. The ResultSet provides a multitude of methods that enable you to
retrieve a given row as any data type to which it makes sense to convert it. For
example, if you have a date stored in the database as a datetime, you can retrieve it
need to perform any tricks with the results from a query. The data is simply
will need to process the data in a more complex fashion. In the View class,
SERVLETS
HTTP:
for communicating on the World Wide Web. HTTP defines the precise manner
in which Web clients communicate the Web servers. HTTP/1.0 is the most
HTTP Basics:
A conversation between Web browser and Web server goes something like
this: the client opens a connection to the server, the client makes a request to the
server, the server responds to the request, and the connection is closed. To better
illustrate an HTTP conversation between a browser and a server, let’s step through
Connectionless Protocol:
Protocol, the client opens a connection with the server, sends a request, receives a
response, and closes the connection. With the connection oriented protocol, the
client connects to the server, sends a request, receives a response, and then holds
request. Opening the new connection with each request incurs a performance
that the overhead required to open an new connection is incurred only once rather
than with every request. In contrast to a Web site, an FTP site can rarely support
Stateless Protocol:
has no memory of prior connections and cannot distinguish one client’s request
from that of another. FTP is a Stateful Protocol, because the connection is not
opened and closed with every request. After the initial login, the FTP server
maintains the user’s credentials throughout the session. Due to its stateless nature,
Site.
is a strength in that its stateless nature keeps the protocol simple and
connection with each request and the inability to track a single user as he traverses
a Web site.
GET Method:
comprised of only a method statement and various request header fields. The
GET method is normally used to request the static data. Responses to GET
requests are often cached by proxy server for use in future requests. A drawback
to using a GET method for login reinsertions is that the information entered by
the user is appended to the URL and displayed in plain text by the browser.
Therefore, if a user enters login information and click Submit the username and
password will be visible in the URL on the next page. Another disadvantage is
that a limited amount of data can be passed as part of the URL in a GET request.
POST Method:
the server. This method is differ from the GET method in that all parameter
information is stored in the body of the request rather than in the portion of the
method statement.
functions:
group of articles;
data-handling process;
Advantages:
clicking the Submit button on an HTML form that utilizes the POST method. The
POST method is used to request the dynamic data. Therefore, the responses to
HEAD Method:
only returns the HTTP header—the body content is excluded. The HTTP header
header that would have been returned in response to a GET. This method is very
useful for debugging, verifying hypertext links, or checking the status of a file
before attempting to retrieve it. Using HEAD makes it possible to check when a
file was last modified or to check the length of the file without actually having to
download.
PUT Method:
PUT method requests that the enclosed entity be stored under the
the enclosed entity should be considered as a modified version of the one residing
on the origin server. If the Request-URI does not point to an existing resource,
and that URI is capable of being defined as a new resource by the requesting user
agent, the origin server can create the resource with that URI. The Fundamental
difference between POST and PUT requests is reflected in the different meaning
of the Request-URI .The URI in the POST request identifies the resource that will
handle the enclosed entity. In contrast, the URI in a PUT request identifies the
entity enclosed with the request-the user agent knows what URI is intended and
the server must not attempt to apply the request to some other resource.
<FORM> TAG:
<FORM> tag and ending with </FORM> tag. Any standard HTML body tags
may be included within this block. The <FORM> tag specifies these three
attributes:
METHOD Attribute:
The METHOD attribute specifies the HTTP method to use when the form
is submitted. The two possible methods are GET and POST. If a POST method
is used, the user’s input is passed within the body of the request. Due to the
a POST. If no METHOD is defined within the <FORM> tag, the GET method is
used by default.
ACTION Attribute:
used submits the form. Usually the action attribute indicates the URL of the script
or servlet that will process the user’s input. Rather than specifying a URL, it is
also possible to indicate an action by name. Currently, the only action supported
INPUT Tag:
A form only becomes useful once the appropriate input elements are added
to it. Within a form block, input components such as textboxes, radio buttons, and
checkboxes can be added to the HTML page using special tags. The exact type of
TYPE Attribute:
The TYPE Attribute defines the exact type of input component represented
by the <INPUT>tag.
TEXTAREA Tag:
Internet address of a file stored on a host computer connected to the Internet. Web
software programs use the URL to retrieve the file from the host computer and the
directory in which it resides. URL’s are translated into numeric addresses using
Protocol:
protocol is the set of very detailed rules, sequences, message formats, and
procedures that computer systems use and understand when exchanging data with
each other. Network protocols are layered on top of each other, with each layer
providing additional capabilities, but using the facilities provided by the lower
layer.
TCP:
of researches centered around the ARPAnet. The IP layer doesn’t provide many
capabilities other than sending chunks of data back and forth. The TCP protocol
provides a virtual connection between two systems, along with certain guarantees
on the data chunks(called ‘packets’) that are passed between the systems. Two
guarantees are retransmission of packets that are dropped and ensuring that the
packets are received in the same order that they are sent. A third guarantee is that
each packet received by the applications has exactly the same content as when it
was sent. If a bit has changed or been dropped form some reason, TCP will detect
When the request goes to the server, Web server, also known as the
httpd takes over. It knows where it stores Web objects, and it tracks down the one
you asked for. It might pass your request off to another process, and wait for a
reply. When it gets what it asked for, it sends the object back to our browser.
you are reading, each of which is a separate object, the server will send each of
The server actions can be more complicated than a simple object fetch, in
which case you will need to learn about CGI’s. The Common Gateway
Introduction:
Java had support for one audio type(au), but playing complex types like
MIDI and WAV was not possible. In addition, video and animation could be done
by creating slide like presentations; but displaying AVI or MOV files again wasn’t
possible without a lot of work, even then it wasn’t practical. With the Java Media
Framework, Java has come of multimedia age. The Java Media Framework
provides the means to present all kinds of interesting media types. The Java
Media Framework is an API for integrating advanced media formats into Java,
such as video and sound. The media framework has several components,
In addition to using the control panel, you can control the motion of the
programmer using methods in player. You might want to do this for several
reasons. One reason might be that you want to put up buttons to allow the player
to control the player, but you don’t want to use the default control panel.
Player has basic method-start(), which tells the player to start. However,
there is a more fundamental method that allows you to start a player and specify
when it will actually start displaying its media. The syncStart() method is the
Based on the state of the player, the start() method will sequentially call
first prefetch for all the players under its control and bring them into the
playing tracks two and five on your CD player without playing through the whole
CD. Fortunately, the media framework accomodates just such a need with the
The capability to change the volume of the sound for the player is very
important. To change the volume, the JMF has dedicated a whole class;
GainControl. The first step in changing the volume is to get the GainControl from
the player. To do so, you can invoke the getGainControl() method. Perhaps the
most obvious thing to do with the audio is to turn it off all together, or mute it. Lo
and behold, the GainControl class just happens to have a mute() method for this
purpose.
To change the GainControl’s volume level, you can use the setLevel()
the GainControl.
JAVASCRIPT
JavaScript is lightweight in that there isn't a great deal to learn and you can be
productive with it very quickly, in contrast to much more complex languages such
You can embed JavaScript statements in Web pages, which are written in
lets you create more sophisticated Web pages than you ever could with HTML
HTML 1.0 refers to the original set of markup tags. HTML 1.0 is so
limited that a browser that restricted HTML documents to HTML 1.0 would be a
museum piece.
HTML 2.0 includes a more generous set of markup tags than HTML 1.0; in
particular, it allows markup tags that define user input fields. As of this writing,
HTML 2.0 defines the de facto common core of markup tags. You can create a
relatively sophisticated Web page with HTML 2.0 markup tags. Live Script:
quickly evolved into what is now JavaScript. Although JavaScript and Java are
not the same thing, Netscape intends JavaScript to tie into Java; hence the name
change. Netscape and Sun Microsystems (the developers of Java) are working
closely on the development of the two languages. There are few other major
differences between Live Script and JavaScript, the biggest being that Live Script
JavaScript can provide a high degree of user interaction like some other
CGI:
program on the server to interact with the client's browser. One popular use of
CGI is in hit counters-programs that modify the page to show how many times
that page has been visited. Another popular use of CGI is in form handling, where
a program on the server reads the data from the user input fields and does some
A JavaScript page, however, can validate the data entered before it is sent
to the server. If the data is invalid, JavaScript can block transmission to the server.
Because all of this work is performed on the client side, JavaScript does not waste
bandwidth transmitting bad data and then receiving an error page from the server.
mechanisms called "server push" and "client pull." With server push, the Web
page server maintains a connection between the client (the browser) and server.
software that your server uses. CGI has to be written in a language that your
MySQL tutorial provides basic and advanced concepts of MySQL. Our MySQL
tutorial is designed for beginners and professionals.
Our MySQL tutorial includes all topics of MySQL database such as insert record,
update record, delete record, select record, create table, drop table etc. There are
also given MySQL interview questions to help you better understand the MySQL
database.
What is MySQL
MySQL is a fast, easy to use relational database. It is currently the most popular
open-source database. It is very commonly used in conjunction with PHP scripts
to create powerful and dynamic server-side applications.
MySQL is used for many small and big businesses. It is developed, marketed and
supported by MySQL AB, a Swedish company. It is written in C and C++.
Reasons of popularity
History of MySQL
MySQL is an open source database product that was created by MySQL AB, a
company founded in 1995 in Sweden. In 2008, MySQL AB announced that it had
agreed to be acquired by Sun Microsystems for approximately $1 billion.
Initial Efforts
The project of MySQL was started in 1979, when MySQL's inventor, Michael
Widenius developed an in-house database tool called UNIREG for managing
databases. After that UNIREG has been rewritten in several different languages
and extended to handle big databases. After some time Michael Widenius
contacted David Hughes, the author of mSQL, to see if Hughes would be
interested in connecting mSQL to UNIREG's B+ ISAM handler to provide
indexing to mSQL. That's the way MySQL came in existence.
MySQL is named after the daughter of Michael Widenius whose name is "My".
MySQL Features
Data
Enter values
Register VOD(Server)
Login
Implementing
Java Media Framework
Getting
Media
Logout
Database Design
Table Name: log_det
Sl. No Field Name Data Type Data Size Constraint Related
to
1 User name Varchar2 15 Primary -
2 password Varchar2 8 Not null -
Connect.java
package vod;
import java.sql.*;
import java.util.*;
public class DB
{
public static Statement getSt()
{
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost/vod","root","password");
Statement stmt =
con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
return stmt;
}
catch(Exception ex)
{
System.out.println(ex);
return null;
}
}
boolean bo = getSt().execute(query);
return bo;
}
catch(Exception ex)
{
System.out.println(ex);
return true;
}
}
<head>
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<div align="center">
<table border="1" width="50%">
<tr>
<td colspan="3" height="35"
bgcolor="#333333"> </td>
</tr>
<tr>
<td rowspan="4" height="35" width="29%">
<p align="center">
<img border="0" src="imgs/category.png"
width="170" height="170"></td>
<td height="35" width="36%" style="border-right-
style: none; border-right-width: medium; border-bottom-style: none; border-
bottom-width: medium"> </td>
<td height="35" width="32%" style="border-left-
style: none; border-left-width: medium; border-bottom-style: none; border-
bottom-width: medium"> </td>
</tr>
<tr>
<td height="35" width="36%" style="border-right-
style: none; border-right-width: medium; border-top-style: none; border-top-
width: medium; border-bottom-style: none; border-bottom-width: medium">
<font size="2">MEDIA TYPE</font></td>
<td height="35" width="32%" style="border-left-
style: none; border-left-width: medium; border-top-style: none; border-top-width:
medium; border-bottom-style: none; border-bottom-width: medium">
<select size="1" name="T1" style="border-style:
solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px;
padding-bottom: 1px">
<option value="AUDIO">AUDIO</option>
<option value="VIDEO">VIDEO</option>
</select></td>
</tr>
<tr>
<td height="35" width="36%" style="border-right-
style: none; border-right-width: medium; border-top-style: none; border-top-
width: medium; border-bottom-style: none; border-bottom-width: medium">
<font size="2">CATEGORY</font></td>
<td height="35" width="32%" style="border-left-
style: none; border-left-width: medium; border-top-style: none; border-top-width:
medium; border-bottom-style: none; border-bottom-width: medium">
<input type="text" name="T2" size="20"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td height="35" width="36%" style="border-right-
style: none; border-right-width: medium; border-top-style: none; border-top-
width: medium"> </td>
<td height="35" width="32%" style="border-left-
style: none; border-left-width: medium; border-top-style: none; border-top-width:
medium"> </td>
</tr>
<tr>
<td colspan="3" height="35" bgcolor="#333333">
<p align="center"><input type="submit"
value="ADD" name="B1"></td>
</tr>
</table>
</div>
<p align="center"> </p>
</form>
</body>
</html>
Addcategory.jsp
<html>
<%@page import="java.sql.*,java.io.*, vod.*"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<%
try
{
String s[] = new String[2];
if(!bo)
{
File fol= new File(request.getRealPath("/")+s[0]+"/"+s[1]);
fol.mkdir();
response.sendRedirect("catesuccess.jsp");
}
}
catch(Exception ex)
{
out.println(ex);
}
%>
</body>
</html>
Admin_upload_audio.jsp
<html>
<%@page import="java.sql.*, java.io.*, vod.*"%>
<head>
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<div align="center">
<table border="1" width="59%">
<tr>
<td colspan="3" height="35"
bgcolor="#333333"> </td>
</tr>
<tr>
<td rowspan="12" height="35" width="36%"
style="border-right-style: none; border-right-width: medium">
<img border="0" src="imgs/audio.png"
width="269" height="445"></td>
<td style="border-right-style: none; border-right-
width: medium; border-bottom-style: none; border-bottom-width: medium;
border-left-style:none; border-left-width:medium" height="35"
width="28%"> </td>
<td style="border-left-style: none; border-left-
width: medium; border-bottom-style: none; border-bottom-width: medium"
height="35" width="33%"> </td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
ID</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input readonly type="text" value=<%=s%>
name="T1" size="31" style="border-style: solid; border-width: 1px; padding-left:
4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
MEDIA TYPE</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input readonly type="text" name="T2" size="14"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px" value="AUDIO"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
CATEGORY</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<select size="1" name="T3">
<%
try
{
ResultSet rs =
DB.getSt().executeQuery("select category from category where
media_type='AUDIO'");
while(rs.next())
{
String A = rs.getString(1);
%>
<option value="<%=A%>"><%=A%></option>
<%
}
}
catch(Exception ex)
{
out.println(ex);
}
%>
</select></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
ACTOR </td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input type="text" name="T4" size="27"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
ACTRESS</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input type="text" name="T5" size="27"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
MUSIC</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input type="text" name="T6" size="27"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
MOVIE</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input type="text" name="T7" size="27"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
MALE SINGER</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input type="text" name="T8" size="27"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
FEMALE SINGER</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input type="text" name="T9" size="27"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-style:none; border-width:medium;
" height="35" width="28%">
UPLOADED BY</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium; border-
bottom-style: none; border-bottom-width: medium" height="35" width="33%">
<input readonly value=<%=user%> type="text"
name="T10" size="27" style="border-style: solid; border-width: 1px; padding-
left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td style="border-right-style: none; border-right-
width: medium; border-top-style: none; border-top-width: medium; border-left-
style:none; border-left-width:medium" height="35" width="28%">
SONG</td>
<td style="border-left-style: none; border-left-
width: medium; border-top-style: none; border-top-width: medium" height="35"
width="33%">
<input type="file" name="F1" size="20"
style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right:
4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td colspan="3" height="35" bgcolor="#333333">
<p align="center"><input type="submit"
value="UPLOAD" name="B1"></td>
</tr>
</table>
</div>
<p align="center"> </p>
</form>
</body>
</html>
Adminaudio.jsp
<html>
<%@page import="java.sql.*, java.io.*, vod.*"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<%
try
{
String id = request.getParameter("id");
String query = "select media_type, category from songs where
id='"+id+"'";
ResultSet rs = DB.getSt().executeQuery(query);
rs.next();
String path = rs.getString(1)+"/"+rs.getString(2)+"/"+id;
%>
<p align="center">
</p>
<center>
<audio controls>
<source src="<%=path%> " type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</center>
<%
}
catch(Exception ex)
{
out.println(ex);
}
%>
</body>
</html>
Admin_video_pending.jsp
<html>
<%@page import="java.sql.*, java.io.*, vod.*"%>
<head>
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<body>
<%
try
{
String id = request.getParameter("T1");
String mtype = request.getParameter("T2");
String category = request.getParameter("T3");
String actor = request.getParameter("T4");
String actress = request.getParameter("T5");
String music = request.getParameter("T6");
String movie = request.getParameter("T7");
String singerm= request.getParameter("T8");
String singerf = request.getParameter("T9");
String uploader = request.getParameter("T10");
// out.println(filename+"<br>");
filename = request.getRealPath("/upaudio/")
+"/"+filename;
/* out.println(filename);
out.println("<br>");
out.println(tofile);
out.println(ext);
out.println(query);
if(!bo)
{
response.sendRedirect("uploadsuccess.jsp");
}
//out.println(filename);
}
catch(Exception ex)
{
out.println(ex);
}
%>
</body>
</html>
Login.jsp
<html>
<head>
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
</body>
</html>
Log.jsp
<html>
<%@page import="java.sql.*, vod.*"%>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<%
try
{
String s1 = request.getParameter("T1");
String s2 = request.getParameter("T2");
String t1 = "";
String t2 = "";
ResultSet rs = DB.getSt().executeQuery(query);
rs.next();
t1 = rs.getString(1);
t2 = rs.getString(2);
if(s1.equals(t1))
{
if(s2.equals(t2))
{
session.setAttribute("user", s1);
response.sendRedirect("usersuccess.jsp");
}
else
{
out.println("Error in Password");
}
}
else
{
out.println("Error in Username");
}
}
catch(Exception ex)
{
out.println("Error in Username");
}
%>
</body>
</html>
SYSTEM TESTING AND IMPLEMENTATION
TESTING
OBJECTIVES OF TESTING
undiscovered error.
move counter to the commonly held view that a successful list is one in
which no errors are found. Any engineered product can be listed in one of
two ways:
fully operational.
2. Knowing the internal working of the product,
exercised.
TYPES OF TESTING
& the Documentation and the related data structures are designed. Software
testing is essential for correcting errors. Otherwise the program is not said
to be complete.
Unit Testing
Integrating Testing
Validating Testing
System Testing
UNIT TESTING
guide; important control paths are tested to uncover errors within the
flows into and out of the program unit under test. Boundary conditions are
to limit or restrict processing. Proposed check list for interface tests are
of arguments?
After source level code has been developed, received, and verified for
correct syntax, unit test case design begins. A review of design information
provides guidance for establishing test cases that are likely to uncover
INTEGRATION TESTING
different data.
VALIDATION TESTING
SYSTEM TESTING
fully exercise the computer based system. Although each test has a
different purpose, all the work should verify that all system elements have
IMPLEMENTATION PLAN
The target date for the change over is due. The change over
may be achieved in several ways. The most common method is direct
change over, staged change over, parallel running and pilot running.
Occasionally a combination of these methods will be used.
SCREEN SHOTS
CONCLUSION
This project is designed as much as user friendly and fulfill the expected
need of the user the project is developed using ‘JAVA MEDIA FRAME WORK ‘
it can be further uploaded as a web page and can be accessed through internet .
The project may be further developed to access all type of media files and
options will be provided. Various skins will be produced during every display.
Lists of movie clippings and songs will be displayed with logos. Preview of every
song will be displayed. In this project I handle the latest technologies of Java
Java Media Framework, Java Servlet Development Kit, Java Standard Tool kit 1.4