[vlc-devel] Embed VLC in C

Youssef AZZOUZI sidimoulay2000 at hotmail.fr
Sun Aug 30 17:20:57 CEST 2009


Hi Kaarlo Räihä,

Thank you very much for the tutorial, it works great, I had a problem with the link of
the video, but I changed it to a locale video's one, can I with this code change the video
file to camera and stream from it to an IP_address:Port ?
http://wiki.videolan.org/LibVLC_Tutorial
that might work better. 

Youssef AZZOUZI kirjoitti 28.08.2009 kello 17:09:
> Hi,
> 
> I found it on the topic that you sent to me, at the end there is:
> 
>     i_ret = (VLC_Init)(id, 6, commands );
>    printf("%d\n", i_ret);
>     if( i_ret < 0 ) {
>       getError(i_ret);
>         (VLC_Destroy)( id );
>         return -1;
>     }   
> 
>     // Start playing
>     i_ret = (VLC_Play)(id);
>    if( i_ret < 0 ) {
>       getError(i_ret);
>       return false;
>    }
>    
>    getchar();
> 
>    while((VLC_IsPlaying)(id));
>    (VLC_Die)(id);
>    (VLC_CleanUp)(id);
>    (VLC_Destroy)(id);
>    freeLibrary();
>    return 0;   
> Regards
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090830/e8531ab8/attachment.html>


More information about the vlc-devel mailing list