Add a 'resume' metadata tag for when the stream is about to play

This commit is contained in:
Mke Brady
2015-03-12 23:07:02 +00:00
parent 60b3a6f7fd
commit e8be4e4883
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -562,6 +562,9 @@ static abuf_t *buffer_get_frame(void) {
// debug(1,"Exact frame gap is %llu; play %d frames of silence. Dac_delay is %d, with %d packets.",exact_frame_gap,fs,dac_delay,seq_diff(ab_read, ab_write));
config.output->play(silence, fs);
free(silence);
if (ab_buffering==0) {
send_ssnc_metadata('prsm',NULL,0); // "resume"
}
}
}
}
+2 -1
View File
@@ -789,10 +789,11 @@ static void handle_set_parameter_parameter(rtsp_conn_info *conn,
// 'pbeg' -- play stream begin. No arguments
// 'pend' -- play stream end. No arguments
// 'pfls' -- play stream flush. No arguments
// 'prsm' -- play stream resume. No arguments
// 'pvol' -- play volume. The volume is sent as a string.
// 'mdst' -- a sequence of metadata is about to start
// 'mden' -- a sequence of metadata has ended
// 'snam' -- the name of the originator -- e.g. "Joe's iPhone" or "iTunes". The UTF-8 string and its length are passed is a malloc'ed block
// 'snam' -- the name of the originator -- e.g. "Joe's iPhone" or "iTunes...".
//
// including a simple base64 encoder to minimise malloc/free activity