|
RSWeb+ Shopping Cart Video Authentication Extensions
This PERL module provides the implementation of video streaming and authentication after the sale. It is designed as an extension to a shopping cart to provide customer access to video streams, and to maintain their availability based upon the terms of a sale.
The extensions are comprised of three parts:
- Emulation to VitalStream's Media Console for Authentication Maintenance
- SQL Database
- Shopping Cart APIs
Emulation to VitalStream's Media Console
The emulation is used for the purposes of maintaining VitalStream's Customer / User authentication to media packages usually maintained manually in their HTML based Media Console.
SQL Database
The PERL DBI module is required to access the SQL database.
The database uses the following tables:
| Table Name |
Description |
| ProductHdr |
SKUs are used to represent each video stream. These SKUs are then used to tie together ProductBundles and ProductDataStreams. |
| ProductBundles |
Used to bundle multiple video streams into a single package. |
| ProductDataStreams |
Used to store the details on individual video streams. This includes the duration of availability, and how to play a stream. |
| Customer |
Used to cache the VitalStream username and password, which are required to play a video stream. This table is also used to associate customers with CustomerDataStreams. |
| CustomerDataStreams |
Used to keep track of video streams that has been purchased by the customer and when they expire. Play statistics are also logged here. |
Shopping Cart APIs
The following APIs are provided:
| API |
Description |
| DoStreamSetups |
Once a shopping cart receives payment this API is called to create or maintain the CustomerDataStreams table. |
| GetCustStreams |
This API returns HTML code, based upon configured external templates, a listing of available and expired video streams. Optional links are provided to play video streams that are available and not expired. |
| PlayVideoStream |
This API is used to play an available video stream for a customer. |
| DeleteExpiredAuthentications |
This API would be normally used once daily to remove video authentications at VitalStream for videos that have expired. This disables access to video streams that have been book marked by the customer. |
|