Oracle
Video Client Software Guide Release 2.1.8 A42334_4 |
|
The software distribution for the Oracle Video Client includes sample client applications for several products. This appendix contains these sections that describe how to set up and use the sample applications:
This appendix lists the contents of each of these sample applications and describes how to set them up and run them.
Different client platforms have their Oracle files installed in different areas. For this reason, file paths will be given relative to the variable location %ORACLE_HOME%, which should be read as the directory where you installed the Client.
When you install the Oracle Video Client software, sample applications for Oracle Power Objects, Oracle Forms, Microsoft Visual Basic, and internet browsers are installed in the directory %ORACLE_HOME%\vc21\demo.
The Oracle Forms and Oracle Power Objects sample applications illustrate how to incorporate videos with a database. Other sample applications do not require database access, but still require video server setup. This section describes the steps required to set up the client, video server, and database before you can run the sample applications.
The sample applications expect to find five video files in the directory $ORACLE_HOME/vs21/demo/content. The files are named oracle1.mpg, oracle2.mpg, oracle3.mpg, oracle4.mpg, and oracle5.mpg.
The steps listed in this section assume a fresh install of the Oracle Video Server and that there is a volume named video in the Media Data Store (MDS).
To load these sample application video files into the Oracle Video Server:
% setenv OMN_ADDR UDP:192.25.102.201:5000
% setenv $ORACLE_HOME /local/home/ovs
% cd $ORACLE_HOME/vs21/demo/content
Use the MDS utility mdscopy to copy the files from the UNIX file system into the MDS. For example, if you have an MDS volume named video, you would enter:
mdscopy ./oracle1.mpg /mds/video/oracle1.mpg mdscopy ./oracle2.mpg /mds/video/oracle2.mpg mdscopy ./oracle3.mpg /mds/video/oracle3.mpg mdscopy ./oracle4.mpg /mds/video/oracle3.mpg mdscopy ./oracle5.mpg /mds/video/oracle5.mpg
See the Oracle Video Server Utilities User's Guide for further information on the MDS utilities.
vstag -E mpi oracle1.mpg oracle2.mpg oracle3.mpg oracle4.mpg \ oracle5.mpg
See the Oracle Video Server Utilities User's Guide for further information on vstag.
To set up SQL *Net on the Oracle Video Client machine:
ovsdemo = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = <name or ip address of the database server>) (PORT = 1521) ) (CONNECT_DATA = (SID = <SID on the database server>) ) )
To set up the database server:
SQL> CREATE USER demo 2 IDENTIFIED BY demo 3 DEFAULT TABLESPACE users 4 TEMPORARY TABLESPACE temp 5 QUOTA UNLIMITED ON users; SQL> GRANT CREATE SESSION TO demo; SQL> GRANT CREATE TABLE to demo; SQL> GRANT CREATE SEQUENCE to demo;
% IMP demo/demo FILE=ovsdemo.dmp buffer=200000
Some HTML files are installed on the client machine that will let you test the Web plug-in and play video from the video server. The following files are installed to %ORACLE_HOME%\VC21\DEMO\WWW\CLIENT:
VIDEO.HTM BANNER.HTM BLANK.HTM INDEX.HTM TITLE.HTM ORACLE1.HTM ORACLE2.HTM ORACLE3.HTM ORACLE4.HTM ORACLE5.HTM OVS_BAN.GIF ORACLE1.GIF ORACLE2.GIF ORACLE3.GIF ORACLE4.GIF ORACLE5.GIF ORACLE.MPG
To test use these pages, load the file index.htm with your web browser by opening this URL:
file://C:\ORAWIN\VC21\DEMO\WWW\CLIENT\index.HTm
The sample assumes that you are using a common UNIX httpd server (or a server with UNIX utilities, such as AWK) in standard configuration. The sample illustrates:
The sample also requires that both the video server and the web server reside on the same machine.
The sample web pages that reference the Oracle Video Web Plug-in and server scripts are installed in the directory %ORACLE_HOME%\VC21\DEMO\WWW\SERVER\UNIX. The files in the WWW directory are:
To set up the web server:
The sample assumes that you have the NT version of Perl installed. The sample illustrates:
The sample also requires that both the video server and the web server reside on the same machine.
The sample web pages that reference for the Oracle Video Web Plug-in and server scripts are installed in the directory %ORACLE_HOME%\VC21\DEMO\WWW\server\Winnt. The files in the WWW directory are:
The sample client application for Oracle Power Objects is installed in the directory %ORACLE_HOME%\VC21\DEMO\OPO. The files in the OPO directory are:
The sample client application for Microsoft Visual Basic is installed in the directory %ORACLE_HOME%\VC21\DEMO\VB. The files in the VB directory are:
To run the application:
The sample client application for Oracle Forms is installed in the directory %ORACLE_HOME%\VC21\DEMO\FORMS. The files in the FORMS directory are:
The menu application assumes that the forms are located in the directory %ORACLE_HOME%\VC21\DEMO\FORMS. If you have moved them, you will need to modify MENU.FMB and BROWSER.FMB.
|
Copyright © 1997 Oracle Corporation. All Rights Reserved. |
|