1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>THPPlayerGetState</title> 10</head> 11 12<body> 13 14<h1>THPPlayerGetState</h1> 15<h2>C Specification</h2> 16 17<dl> 18<dd><pre><code>#include "THPPlayer.h"</code></pre> 19 </dd> 20<dd><pre><CODE>s32 THPPlayerGetState(void);</CODE></pre> 21 </dd> 22</dl> 23 24<h2>Arguments</h2> 25<p>None.</p> 26 27<h2>Return Values</h2> 28<p>Returns the current player status. </p> 29 30<table border="1" cellpadding="3" cellspacing="0.1"> 31 <tbody> 32 <tr ALIGN="center"> 33<td>Status</td> 34<td width=50>Value</td> 35<td>Description</td> 36 </tr> 37 <tr> 38<td><CODE>THP_PLAYER_STOP</CODE></td> 39 <td align="center">0</td> 40<td>The player is stopped. </td> 41 </tr> 42 <tr> 43<td><CODE>THP_PLAYER_PREPARE</CODE></td> 44 <td align="center">1</td> 45<td>Completed movie playback preparation. </td> 46 </tr> 47 <tr> 48<td><CODE>THP_PLAYER_PLAY</CODE></td> 49 <td align="center">2</td> 50<td>The movie is playing. </td> 51 </tr> 52 <tr> 53<td><CODE>THP_PLAYER_PLAYED</CODE></td> 54 <td align="center">3</td> 55<td>Played movie to the end. <br>(Indicates that playback reached the end using one shot playback. )</td> 56 </tr> 57 <tr> 58<td><CODE>THP_PLAYER_PAUSE</CODE></td> 59 <td align="center">4</td> 60<td>The movie is paused. </td> 61 </tr> 62 <tr> 63<td><CODE>THP_PLAYER_ERROR</CODE></td> 64 <td align="center">5</td> 65<td>An error occurred.</td> 66 </tr> 67 </tbody> 68</table> 69 70<H2>Description</H2> 71<p>This function gets the current player status. </p> 72 73<p>If the <CODE>ERROR</CODE> status is received, please call the <a href="THPPlayerStop.html"><code>THPPlayerStop</code></a> and <a href="THPPlayerClose.html"><code>THPPlayerClose</code></a> functions to end playback of the THP movie data.</p> 74 75 76<H2>See Also</H2> 77<P><a href="THPPlayerStop.html"><code>THPPlayerStop</code></a>, <a href="THPPlayerClose.html"><code>THPPlayerClose</code></a></P> 78 79<H2>Revision History</H2> 80<P>03/01/2006 Initial version.</P> 81 82</body> 83</html> 84