1

I get video links from Web-Service API , now what i want is that those videos should be display in UITableview like vine app and they must be autoplay in UITableview itself like vine app.

I have taken custom UITableview cell , in which i am adding MPMoviePlayercontroller,but the things are not working.

Meet Doshi
  • 4,241
  • 10
  • 40
  • 81
NiravPatel
  • 3,260
  • 2
  • 21
  • 31

1 Answers1

2

You can use a combination of these three answers to achieve what you're looking for:

First, implement UIScrollViewDelegate to know when the tableview has stopped scrolling: how to check when UITableView is done scrolling

Next, Figure out which cells are completely on screen using indexPathForVisibleRows as well as checking the rect of the cell: Check if a UITableViewCell is completely visible

Finally, play all MPMoviePlayercontroller views, assuring they are the right size with: iPhone SDK:How do you play video inside a view? Rather than fullscreen

Community
  • 1
  • 1
nagem
  • 158
  • 2
  • 8
  • 1
    You'll have to be a bit more descriptive of what isn't working, unfortunately. Do you know where in the process it is failing? Is indexPathForVisibleRows returning the right indexes? Are you able to access the correct MPMoviePlayerControl object? – nagem Jul 07 '14 at 20:37