Class PlayerService.PlayerServiceBase
Base class for server-side implementations of PlayerService
[BindServiceMethod(typeof(PlayerService), "BindService")]
public abstract class PlayerService.PlayerServiceBase
- Inheritance
-
PlayerService.PlayerServiceBase
- Derived
- Inherited Members
- Extension Methods
Methods
Pause(Empty, ServerCallContext)
Pause file playing if playing; otherwise do nothing.
public virtual Task<Empty> Pause(Empty request, ServerCallContext context)
Parameters
request
EmptyThe request received from the client.
context
ServerCallContextThe context of the server-side call handler being invoked.
Returns
- Task<Empty>
The response to send back to the client (wrapped by a task).
Reset(Empty, ServerCallContext)
Reset file player to the state as before running Start function.
public virtual Task<Empty> Reset(Empty request, ServerCallContext context)
Parameters
request
EmptyThe request received from the client.
context
ServerCallContextThe context of the server-side call handler being invoked.
Returns
- Task<Empty>
The response to send back to the client (wrapped by a task).
Resume(Empty, ServerCallContext)
Resume file playing if paused; otherwise do nothing.
public virtual Task<Empty> Resume(Empty request, ServerCallContext context)
Parameters
request
EmptyThe request received from the client.
context
ServerCallContextThe context of the server-side call handler being invoked.
Returns
- Task<Empty>
The response to send back to the client (wrapped by a task).
Start(Empty, ServerCallContext)
Start file playing.
public virtual Task<Empty> Start(Empty request, ServerCallContext context)
Parameters
request
EmptyThe request received from the client.
context
ServerCallContextThe context of the server-side call handler being invoked.
Returns
- Task<Empty>
The response to send back to the client (wrapped by a task).