iOS and live streaming mjpeg -
can help me how can stream video ios app. used uiwebview video isnt chaning. there solution. illustration stream. http://80.32.204.149:8080/mjpg/video.mjpg
thank replies
the simplest way mjpg streaming on ios using uiimageview
, nsurlconnection
. utilize nsurlconnection
build connection target url , implement delegate next methods:
- (void)connection:(nsurlconnection *)connection didreceivedata:(nsdata *)data
--> fill buffer info receive here (the buffer should of type nsdata
, can either instance variable or property)
- (void)connection:(nsurlconnection *)connection didreceiveresponse:(nsurlresponse *)response
, convert info buffer there uiimage
using [uiimage imagewithdata:buffer]
. uiimage
can set on uiimageview
.
ios video-streaming
No comments:
Post a Comment