Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 72

GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
07/07/13 04:07 AM (12 years ago)

AT 53 Video Player autoplay?

AT 53 Video Player Is it possible to autoplay the video's after linking to a AT 53 video screen? That would certainly make this good plugin perfect! Regards Gert-Jan
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
07/07/13 07:04 AM (12 years ago)
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
07/07/13 07:14 AM (12 years ago)
Thx for your reply but I think that's an Android solution while I need it for iOs. I'll keep on searching..... Regards Gert-Jan
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
07/07/13 07:15 AM (12 years ago)
ah ha..i think there could be a solution. i'll check
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
07/07/13 07:16 AM (12 years ago)
thx Regards Gert-Jan
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
07/07/13 03:26 PM (12 years ago)
Hi GJ, I'll post the code I use tonight when I get home. Cheers! Ian
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
07/07/13 08:17 PM (12 years ago)
HI GJ, here is a link to the code I use in the IOS version. Look for these two .h and .m files in your Xcode project. You will need to use your app delegate name where "yourapp" appears in the app delegate.m file. Hope this helps and keep me posted ian At53_video_player.h https://dl.dropboxusercontent.com/u/39276137/At53Video_H_IOS_Edited.rtf At53_video_player.m https://dl.dropboxusercontent.com/u/39276137/AT53Video_M_IOS_EditedCode.rtf
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
07/07/13 08:57 PM (12 years ago)
Hi Ian, thx for the code. I changed the 'yourapp' parts into my appname. and renamed both files to At53_video_player (.m and .h) in the AT 53 plugin folder. The app runs without errors but when I click the button which led me to the videoplay screen formerly (the screen I want to skip actually) it now shows a blank page without playing the video. So this is not a good solution for me or did I do something wrong here? Thanks so far. Regards GJ
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
07/07/13 09:03 PM (12 years ago)
Hi GJ, Are you playing the files locally or calling the videos from a URL? I can't remember if I ever modified this code to recognize URL's. You can send me your project and I'll take a look. it may be easier for me to see what needs to happen. keep me posted! [email protected]
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
07/07/13 10:42 PM (12 years ago)
I play the files locally. It works fine with the plugin. All I want is to take out the step where you actually press the play button. In my case I have a menu made with the Buzz Carousel Menu Plugin. I have several video's added to my project. A couple of menu-items should activate the video without showing the play button screen. What part of the project should I sent to you? Regards Gert-Jan
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
07/07/13 11:33 PM (12 years ago)
send me the whole project. you can send a .zip file of your xcode project. [email protected]
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
07/08/13 04:30 AM (12 years ago)
Ok I send it to you with wetransfer. Thanks for spending your time on this one. Regards Gert-Jan
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
07/08/13 08:51 AM (12 years ago)
Hi GJ, That videos are playing fine. I am sending a dropbox link of the project to your email address. I think you may have had it right the first time with the code I sent but the video files were not being recognized in the bundle (you may have seen an error in Xcode about file not being found) Here is a screen shot as an example to make sure your files are properly added to your bundle so the app can use the files. https://dl.dropboxusercontent.com/u/39276137/Xcode_BuildPhases_AddTarget.png keep me posted! cool app. I studies with Don Lawrence in NY and Guy Babuzek in La. cheers! ian
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
07/08/13 09:13 AM (12 years ago)
Hi Ian Thanks a lot for all the effort, appreciate it a lot I'm afraid its still not working. I already had the videofiles in the copy bundle section (otherwise I wouldn't get them to play before either I guess). The strange thing is when I use the plugin original with the play button screen there is no problem at all. But maybe there will be a solution...... regards Gert-Jan
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
07/08/13 09:31 AM (12 years ago)
Hi GJ Did u get the project I sent to u by email? It's a Dropbox link. It does bypass the play button and play your chapter3.mp4 video
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.