mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-15 16:51:54 +00:00
add switch_core_file_write_video
open a door to write video data so it is possible to record a .fsv file also possible to write to .mp4 with proper file format support
This commit is contained in:
@@ -1648,6 +1648,15 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(_In_ switch_file_handle_t
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_file_write(_In_ switch_file_handle_t *fh, void *data, switch_size_t *len);
|
||||
|
||||
/*!
|
||||
\brief Write media to a file handle
|
||||
\param fh the file handle to write to
|
||||
\param data the buffer to write
|
||||
\param len the amount of data to write from the buffer
|
||||
\return SWITCH_STATUS_SUCCESS with len adjusted to the bytes written if successful
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_file_write_video(_In_ switch_file_handle_t *fh, void *data, switch_size_t *len);
|
||||
|
||||
/*!
|
||||
\brief Seek a position in a file
|
||||
\param fh the file handle to seek
|
||||
\param cur_pos the current position in the file
|
||||
|
||||
@@ -273,6 +273,10 @@ struct switch_file_interface {
|
||||
/*! function to write from the file */
|
||||
switch_status_t (*file_write) (switch_file_handle_t *, void *data, switch_size_t *len);
|
||||
/*! function to seek to a certian position in the file */
|
||||
switch_status_t (*file_read_video) (switch_file_handle_t *, void *data, switch_size_t *len);
|
||||
/*! function to write from the file */
|
||||
switch_status_t (*file_write_video) (switch_file_handle_t *, void *data, switch_size_t *len);
|
||||
/*! function to seek to a certian position in the file */
|
||||
switch_status_t (*file_seek) (switch_file_handle_t *, unsigned int *cur_pos, int64_t samples, int whence);
|
||||
/*! function to set meta data */
|
||||
switch_status_t (*file_set_string) (switch_file_handle_t *fh, switch_audio_col_t col, const char *string);
|
||||
|
||||
Reference in New Issue
Block a user