Table of Contents

Class PlayerService.PlayerServiceBase

Namespace
Hi.Grpcs
Assembly
HiNc.dll

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 Empty

The request received from the client.

context ServerCallContext

The 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 Empty

The request received from the client.

context ServerCallContext

The 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 Empty

The request received from the client.

context ServerCallContext

The 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 Empty

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns

Task<Empty>

The response to send back to the client (wrapped by a task).