how to play and record the rtsp stream ?

This forum is about all development around libVLC.
yayaxyupp
New Cone
New Cone
Posts: 4
Joined: 15 May 2014 05:17

how to play and record the rtsp stream ?

Postby yayaxyupp » 17 May 2014 22:43

I compile the mobilevlckit on os x for ios simulator success.
Then , I use the Dropin-Player ios demo to play a rtsp stream success (changed the play url just).
I find the VLCKit have some intreface for stream rtsp to path , in the VLCStreamSession.h , but this interface not import in the MobileVLCKit.h ,
so I changed the MoblieVLCKit proj file to add some interface and .m file , compile success.

Then , after play the rtsp url, (it's success), I add a button named startstream and add some code for it's action :

_exportMedia = [_mediaplayer media];
[_streamSession setStreamOutput:[VLCStreamOutput streamOutputWithFilePath:testDirectory]];
[_streamSession setStreamOutput:[VLCStreamOutput rtpBroadcastStreamOutput]];
NSLog(@"Using %@", _streamSession.streamOutput );
[_streamSession setMedia:_exportMedia];
[_streamSession startStreaming];
NSLog(@"wpl debug: will startRecoder!222222");

compile success, run ok. but have any file add to the ios simulor's directory ?

have any suggest?

Return to “Development around libVLC”

Who is online

Users browsing this forum: Jona and 5 guests