Well I thought I would re-write this post as quite a few updates since I posted this so here is what this all does now.
- When videos are added they show in the activity feed so we can now play them in the feed by clicking on the video image
- You can also comment on it by clicking the comment link or view it in the main video page via the link for that.
- Close the video by the little X button or it will close on it's own if you click on another one.
- Works when multiple photos have been added, click on one in the list and it will show up, click on another one and it will be replaced by that one.
- Works now on photos posted to.
- Click on a photo in the feed and it will show bigger with options to comment
- Click the image again and it goes full screen ( a bit like facebook ones do ) click the photo in full screen to return to feed.
I will post how I did all this as in the process of tidying up the code for sharing but in the mean time you can visit my site to try it out.