-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplay.php
More file actions
29 lines (24 loc) · 839 Bytes
/
play.php
File metadata and controls
29 lines (24 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
include_once( 'bootstrap.php' );
try
{
/** @var S2P_SDK\S2P_SDK_Play $play_obj */
if( !($play_obj = S2P_SDK\S2P_SDK_Module::get_instance( 'S2P_SDK_Play' ) ) )
{
if( ($error_arr = S2P_SDK\S2P_SDK_Module::st_get_error()) )
die( 'Error initializing Play class: '.$error_arr['error_simple_msg'] );
die( 'Error initializing Play class' );
}
if( !$play_obj->play() )
{
if( $play_obj->has_error()
and ($error_arr = $play_obj->get_error()) )
echo 'ERROR: '.$error_arr['display_error'];
else
echo 'Generic error while initiating documentation.';
exit;
}
} catch( Exception $ex )
{
die( 'Cought an error :'.$ex->getMessage() );
}