NymphCast

Requirements

Author: Maya Posch
Date:	2019/01/30
---

> Overview <

NymphCast is intended to be a software solution and specification for an audio and video streaming platform that attaches to a TV or speaker. NymphCast clients can control the content playing on the NymphCast receiver, or stream content to said receiver.

Receivers can support audio, video, or both.

The protocol used consists out of RPC calls implemented using the NymphRPC library, with optional encryption.


> Server <

* Audio/Video:
	. Accept connection from client.
	. Accept session from client, send session parameters to client.
	. Receive session meta data.
	. Accept buffers containing media data.
	. Play back media data.
	. Stop current session.
	
> Client <

* Audio/Video:
	. Connect to server.
	. Start session, receive session parameters.
	. Send session meta data.
	. Send buffers with media data to server.
	. Stop playback.
	. End session.
	. Terminate connection.
	

> API <

Structures:
struct SessionParams {
	int max_buffer;
};

* Connect:
	. bool connect(string client_id)
	. bool disconnect(string client_id)
	
* Audio:
	. SessionParams session_start()
	. uint8 session_meta(string artist, string album, uint32 track, string name)
	. uint8 session_data(string buffer)
	. uint8 session_end()
	
* Volume:
	. uint8 volume_set(uint8 volume)
	. uint8 volume_up()
	. uint8 volume_down()
	
* Playback:
	. uint8 playback_start()
	. uint8 playback_stop()
	. uint8 playback_pause()
	. uint8 playback_rewind()
	. uint8 playback_forward()
	. uint8 playback_seek(uint64)
	. uint8 playback_url(string)
	
* Status:
	. 
	
	
---
	
>> MVP <<

> requirements <

	. Remote playback of media files.
	. Remote playback of URLs to media.
	. Playback of an infinite number of media files in a row.
	. Volume adjustment.
	. Playback controls.
	. Server status on any client.
	. File seeking support.
	. mDNS support.


> Server <

	. Auto-start on system (Systemd service).
	. Display screensaver if no media playback active.


> Client <

	. Select media file from list.
	. Start and control playback.
	. Control volume.
	