mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-7503: add video read flags to choose flush and or block mode and add stuff to vlc so it can play youtube urls
This commit is contained in:
@@ -1852,7 +1852,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(_In_ switch_file_handle_t
|
||||
\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, switch_frame_t *frame);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_file_read_video(switch_file_handle_t *fh, switch_frame_t *frame);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_file_read_video(switch_file_handle_t *fh, switch_frame_t *frame, switch_video_read_flag_t flags);
|
||||
|
||||
/*!
|
||||
\brief Seek a position in a file
|
||||
|
||||
@@ -280,7 +280,7 @@ 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 *, switch_frame_t *frame);
|
||||
switch_status_t (*file_read_video) (switch_file_handle_t *, switch_frame_t *frame, switch_video_read_flag_t flags);
|
||||
/*! function to write from the file */
|
||||
switch_status_t (*file_write_video) (switch_file_handle_t *, switch_frame_t *frame);
|
||||
/*! function to seek to a certian position in the file */
|
||||
|
||||
@@ -1459,6 +1459,7 @@ typedef enum {
|
||||
CF_VIDEO_PASSIVE,
|
||||
CF_NOVIDEO,
|
||||
CF_VIDEO_ECHO,
|
||||
CF_VIDEO_BLANK,
|
||||
CF_SLA_INTERCEPT,
|
||||
CF_VIDEO_BREAK,
|
||||
CF_AUDIO_PAUSE,
|
||||
@@ -2530,6 +2531,12 @@ typedef struct switch_img_txt_handle_s switch_img_txt_handle_t;
|
||||
struct switch_frame_buffer_s;
|
||||
typedef struct switch_frame_buffer_s switch_frame_buffer_t;
|
||||
|
||||
typedef enum {
|
||||
SVR_BLOCK = (1 << 0),
|
||||
SVR_FLUSH = (1 << 1)
|
||||
} switch_video_read_flag_t;
|
||||
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
/* For Emacs:
|
||||
|
||||
Reference in New Issue
Block a user