I want to create a video player which takes NSData as input. Most of player like AVPlayer
and MPMoviePlayer
takes url or file location to play a video. I do not want to convert my NSData
to file. Requirement for this is that I do not want to save my file as someone can take it through jailbreak.
Asked
Active
Viewed 665 times
0

Inder Kumar Rathore
- 39,458
- 17
- 135
- 184

Pankaz
- 11
- 4
-
Welcome to SO pankaz, while your question is being answered please read [FAQ]. – Inder Kumar Rathore Jul 17 '14 at 07:40
-
possible duplicate of [How to play video from NSData](http://stackoverflow.com/questions/5026620/how-to-play-video-from-nsdata) – Ryan Jul 17 '14 at 07:41
-
@trick14 All answer at your link is writing file at a path and then creating url to pass in player but i do not want to write a file. MY main concern is to protect my video content .If I write file then people can get access to it through jailbreak. – Pankaz Jul 17 '14 at 09:49
1 Answers
0
Sorry but this is not an answer. I don't have enough reputations to comment.
As far as I know, to playback with iOS built-in players, you need to launch local HTTP server for that. In fact, most of media DRM solutions does something like that. Be careful to access control anyway. And you need jailbreak checking of course.

rintaro
- 51,423
- 14
- 131
- 139
-
yes you are right but there is no need to jailbreak your device. Use GCD web server with Kxmovie player. – Pankaz Dec 19 '14 at 10:56