mateagar / Motion-JPEG-Image-View-for-iOS

Generic UIImageView subclass designed to load and play Motion-JPEG streams such as commonly used with IP cameras, etc.
http://thinkflood.com/support/redeye/software/open-source-software/motion-jpeg-image-view-ios/
122 stars 39 forks source link

Loading even after closed the UITableViewController #8

Open Thamizhan opened 9 years ago

Thamizhan commented 9 years ago

Hi, I have used the MotionJPEGImageView inside the UITableViewCell to use in UITableView,

After I close the UITableViewController, the images are still loading. how to overcome this Issues

Here is the Code I used for cellForItemAtIndexPath

UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
ZmCamera *curCam = [self.server.cameras objectAtIndex:indexPath.row];
MotionJpegImageView *mjpegView = (MotionJpegImageView *)[cell viewWithTag:44];
mjpegView.contentMode = UIViewContentModeScaleToFill;
UILabel *label = (UILabel *)[cell viewWithTag:88];
[mjpegView stop];
mjpegView.url = [self buildLiveViewURLwithCameraId:curCam.Id];
[mjpegView play];
label.text = [NSString stringWithFormat:@"%@", curCam.name];
mjpegView.layer.borderColor = [UIColor blueColor].CGColor;
mjpegView.layer.borderWidth = (indexPath.row == self.position) ? 2.0 : 0;

return cell;
syky27 commented 9 years ago

I have same problem problem