Playing mp4 video for iPhone programming is not very difficult. We just need to do another drag and drop.
please take a new project with one view. then in the file ViewController.m just copy and paste this code
Then create an HTML file called testingHTML.html
and copy and paste the following code into the HTML file
<!DOCTYPE html> <html> <head></head> <body> <center> <video width="250" height="304" controls preload> <source src="video1.mp4" type="video/mp4"> </video> </center> <p>Thanks to Md Kamrul Hasan .....mdkamrul.hasan@marquette.edu</p> </body> </html>
Drag a video like MP4 into two places:
First: drag the video from the hard drive to the project tab [X tab Left tab] Second: on the left side of Xcode, again DRAG SAME VIDEO FILE in Project ---> Build Phases ---> Copy Bundle Resources
Typically, Copy bundle resources contain project files, but sometimes they do not contain video files.
NOW WORK a project and ENJOY the video ...... !!
Luck
MK HASAN
source share