However, now I face a big problem to compile the code.
My project is to adding small tcp server function to vlc.c file. A client program will send an IPv6 address to the server and the server need to get the streaming video from that address. I study the code for 2 days and I found out that I need to call function that able to start the streaming from that address. The 2 functions are:
playlist_AddItem()
playlist_Control()
Is it correct?
Can anyone tell me how to initiate both the function? For example, client just want tell VLC to start stream from address: ff4f::11
then how can this to be archieved?
Is my initialized got problem? my code is here
Code: Select all
vlc_t * p_vlc = NULL;
playlist_item_t* p_item;
playlist_t *p_playlist;
p_playlist = playlist_Create( p_vlc );
char *try;
try = "[ff4f::11]";
/*playlist_t *p_playlist =
(playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );*/
p_item = playlist_ItemNew(p_playlist, try, NULL );
playlist_AddItem( p_playlist, p_item, PLAYLIST_APPEND, PLAYLIST_END );
playlist_Control( p_playlist, PLAYLIST_ITEMPLAY, p_item );
Please Help me. It's urgent for me. I'm lost now....