Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 16    Views: 189

LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
09/27/12 09:20 AM (13 years ago)

AT53 Video Player problem

Hey There, already wrote my problem in the special plugin discussion area, but dont have the feeling that anybody lives there, will give it a try here ;-) Got the AT53 plugin working but everytime the video ends, the screen goes black and I cant do anything. Have to close the app and start it up again. No changes if I choose to pick a screen after the video ends or not. Running on the newest Xcode, self hosted and IOS6, is that the problem?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
09/27/12 09:42 AM (13 years ago)
You gave us some good info. @atrain will respond soon no doubt :) David buzztouchmods.com
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
09/27/12 12:07 PM (13 years ago)
Those new discussion forums... Didn't even know they existed yet, sorry those went unanswered! Will have to check these now. I'm still running XCode 4.3 and ios 4.2 so unfortunately I can't test on your platform to simulate. It sounds like that could be an issue with the screen transition code. Interesting that it just crashes the app. Will have to test that more to see, but I need time to upgrade....
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
09/27/12 12:12 PM (13 years ago)
I mentioned that here (that we should get emails, but no response from david yet): https://www.buzztouch.com/forum/thread.php?tid=5DFA552ABBA6BAF6CD35E07&fid=06DB0BCB08E1010&sortColumn=FT.id&sortUpDown=DESC&currentPage=3 Upgrading myself too :) any logs that you can give? Cheers, David buzztouchmods.com
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
09/27/12 01:17 PM (13 years ago)
Crazy, always thought everybody would immediately update like I do ;-) Xcode output: 2012-09-27 22:11:26.436 appkingz[4248:907] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2012-09-27 22:11:26.438 appkingz[4248:907] BT_background_view: setImage 2012-09-27 22:11:26.440 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:26.541 appkingz[4248:907] BT_screen_menuButtons: loadData 2012-09-27 22:11:26.548 appkingz[4248:907] BT_screen_menuButtons: parsing menu-items from app's configuration file. 2012-09-27 22:11:26.554 appkingz[4248:907] BT_screen_menuButtons: layoutScreen 2012-09-27 22:11:26.564 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteinkarte.jpg 2012-09-27 22:11:26.569 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:26.608 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteinoffice.jpg 2012-09-27 22:11:26.615 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:26.642 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteinkontakt.jpg 2012-09-27 22:11:26.644 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:26.674 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteincoupon.jpg 2012-09-27 22:11:26.679 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:26.719 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteinlogin.jpg 2012-09-27 22:11:26.724 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:26.751 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteintextseite.jpg 2012-09-27 22:11:26.755 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:26.791 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bausteinvideo.jpg 2012-09-27 22:11:26.796 appkingz[4248:907] BT_button_view: Image for button exists in bundle - not downloading. 2012-09-27 22:11:30.615 appkingz[4248:907] BT_screen_menuButtons: menuItemTap 2012-09-27 22:11:30.821 appkingz[4248:907] BT_application: getScreenDataByItemId 3FD40A91F0A1FA7191D62F8 2012-09-27 22:11:30.823 appkingz[4248:907] BT_application: screenType is At53_video_player for screen with nickname: "Video" and itemId: 3FD40A91F0A1FA7191D62F8 2012-09-27 22:11:30.825 appkingz[4248:907] BT_viewControllerManager: handleTapToLoadScreen 2012-09-27 22:11:30.827 appkingz[4248:907] BT_viewControllerManager: the parent screen nickname: "Bausteine" itemId: 088327A1DA752FC17B6F883 itemType: BT_screen_menuButtons 2012-09-27 22:11:30.828 appkingz[4248:907] BT_viewControllerManager: the menu/button tapped is itemId: 25517100F72B4C41CE4CC6D 2012-09-27 22:11:30.831 appkingz[4248:907] BT_viewControllerManager: the screen to load is nickname: "Video" itemId: 3FD40A91F0A1FA7191D62F8 itemType: At53_video_player 2012-09-27 22:11:30.835 appkingz[4248:907] BT_viewControllerManager: initViewControllerForScreen nickname: "Video" itemId: 3FD40A91F0A1FA7191D62F8 type: At53_video_player 2012-09-27 22:11:30.837 appkingz[4248:907] At53_video_player: INIT 2012-09-27 22:11:30.840 appkingz[4248:907] BT_viewUtilities: setting nav-bar background for "Video" color: #00b6ed 2012-09-27 22:11:30.843 appkingz[4248:907] BT_rotatingNavController: pushViewController 2012-09-27 22:11:30.845 appkingz[4248:907] BT_rotatingNavController: pushViewController for screen: 3FD40A91F0A1FA7191D62F8 2012-09-27 22:11:30.933 appkingz[4248:907] At53_video_player: viewDidLoad 2012-09-27 22:11:30.960 appkingz[4248:907] At53_video_player: viewWillAppear 2012-09-27 22:11:30.964 appkingz[4248:907] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "Video" and itemId: 3FD40A91F0A1FA7191D62F8 and type: At53_video_player 2012-09-27 22:11:30.971 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: hintergrund.png 2012-09-27 22:11:30.977 appkingz[4248:907] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2012-09-27 22:11:30.980 appkingz[4248:907] BT_background_view: setImage 2012-09-27 22:11:30.987 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.118 appkingz[4248:907] At53_video_player: playMovie 2012-09-27 22:11:38.120 appkingz[4248:907] BT_fileManager: File does exist in Xcode bundle: bigbuck.mp4 2012-09-27 22:11:38.122 appkingz[4248:907] At53_video_player: playMovie from: file://localhost/var/mobile/Applications/6D036734-BC23-46C3-97F3-A111D4224D5E/appkingz.app/bigbuck.mp4 2012-09-27 22:11:38.362 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay for pause 2012-09-27 22:11:38.363 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay 2012-09-27 22:11:38.457 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay for pause 2012-09-27 22:11:38.461 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay 2012-09-27 22:11:38.488 appkingz[4248:907] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 1, on player: 0) 2012-09-27 22:11:38.504 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.510 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.512 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.514 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.517 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.519 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.531 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.839 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.857 appkingz[4248:907] appkingz_appDelegate: supportedInterfaceOrientationsForWindow 2012-09-27 22:11:38.867 appkingz[4248:907] [MPAVController] Autoplay: Enabling autoplay 2012-09-27 22:11:39.048 appkingz[4248:907] [MPAVController] Autoplay: Enabling autoplay 2012-09-27 22:11:39.106 appkingz[4248:907] [MPAVController] Autoplay: Likely to keep up or full buffer: 0 2012-09-27 22:11:39.110 appkingz[4248:907] [MPAVController] Autoplay: Skipping autoplay, not enough buffered to keep up. 2012-09-27 22:11:39.139 appkingz[4248:907] [MPAVController] Autoplay: Enabling autoplay 2012-09-27 22:11:39.187 appkingz[4248:907] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0 2012-09-27 22:11:40.208 appkingz[4248:907] [MPAVController] Autoplay: Likely to keep up or full buffer: 1 2012-09-27 22:11:40.228 appkingz[4248:907] [MPAVController] Autoplay: Enabling autoplay 2012-09-27 22:11:40.245 appkingz[4248:907] [MPAVController] Autoplay: _streamLikelyToKeepUp: 0 -> 1 2012-09-27 22:11:44.222 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay for pause 2012-09-27 22:11:44.226 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay 2012-09-27 22:11:44.382 appkingz[4248:907] [MPAVController] Autoplay: _streamLikelyToKeepUp: 1 -> 1 2012-09-27 22:11:44.910 appkingz[4248:907] [MPAVController] Autoplay: _streamLikelyToKeepUp: 1 -> 1 2012-09-27 22:11:45.427 appkingz[4248:907] [MPAVController] Autoplay: _streamLikelyToKeepUp: 1 -> 1 2012-09-27 22:11:52.075 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay 2012-09-27 22:11:52.078 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay for pause 2012-09-27 22:11:52.080 appkingz[4248:907] [MPAVController] Autoplay: Disabling autoplay 2012-09-27 22:11:52.105 appkingz[4248:907] At53_video_player: moviePlaybackComplete 2012-09-27 22:11:52.212 appkingz[4248:907] [MPAVController] Autoplay: _streamLikelyToKeepUp: 1 -> 1
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/01/12 06:02 AM (13 years ago)
any news on this? I would really like to use the Videoplayer now.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/04/12 08:43 AM (13 years ago)
@ATRAIN53: any chance you can give me an update on this? The plugin is not usable and cant believe it is a big fix for you, so please help here first instead of going through new things plz.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/04/12 09:25 AM (13 years ago)
The plug-in is usable, but there seems to be issues with your enviroment. Specifically you are using XCODE 4.5 and iOS 6 as you mentioned last week. You were having issues with the 3 latest plugins that BT has released. Are the others all working for you now? I'm looking at the code and see differences to the JSON data between this plug-in and the latest code David has released Specifically with how the JSON string is constructed in the latest plug-ins. I can't just make an updated version and upload it for you without BT approval first. But I can suggest 3 things to try now: 1) redownlod and re-install the plug-in. maybe some code was updated by BT I'm unaware of. 2) comment out the entrie "MoviePlaybackComplete" method. see what happens then... 3) Look for this line in the current code: NSString *loadScreenItemId = [BT_strings getJsonPropertyValue:screenData.jsonVars:@"videoEndedLoadScreenItemId":@""]; Try changing it to this: NSString *loadScreenItemId = [NSString stringWithFormat:@"%@", [BT_strings getJsonPropertyValue:self.screenData.jsonVars:@"videoEndedLoadScreenItemId":@""]]; any difference?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/04/12 09:44 AM (13 years ago)
Thx for quick reply. 1) didnt change anything 2) commented this out: //listen for movie end event... //[[NSNotificationCenter defaultCenter] addObserver:self //selector:@selector(moviePlaybackComplete:) // name:MPMoviePlayerPlaybackDidFinishNotification //object:moviePlayerController]; App not crashing anymore after the video finished, but the controls dont show up automatically like the user would expect. All ok if you tap on the screen, but would be nicer if you wouldnt have too. 3) no change
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/04/12 10:05 AM (13 years ago)
So that kinda tells us the MoviePlayback Complete method is the real issue... What happens if you remove the ENTIRE method? (make a back-up file and experement)
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/04/12 01:53 PM (13 years ago)
Not really sure if I removed the entire method, but doesn't seem to change anything. Just to doublecheck, could you paste the method here?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/10/12 01:21 PM (13 years ago)
Could still use some advice here please.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/10/12 01:39 PM (13 years ago)
This is the method I would try removing. - (void)moviePlaybackComplete:(NSNotification *)notification { MPMoviePlayerController *moviePlayerController = [notification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayerController]; [moviePlayerController.view removeFromSuperview]; [moviePlayerController release]; } Make a back-up of the .m file and then highlight this whole method and delete it. I'd also remove anything you have set in the Control Panel in that Video Finished Option and see if that makes any difference. If no go after this we should discuss a refund as this doesn't seem to be operational in your enviroment. Perhaps a future version will work better, but I don't have an Xcode 4.5/iOS 6 to test and build on so that makes this very difficult for me to fix and simulate your issues.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/10/12 01:48 PM (13 years ago)
It is a bit different here: //when movie ends... - (void)moviePlaybackComplete:(NSNotification *)notification{ [BT_debugger showIt:self:@"moviePlaybackComplete"]; MPMoviePlayerController *moviePlayerController = [notification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayerController]; [moviePlayerController.view removeFromSuperview]; [moviePlayerController release]; If i take that out, I will get errors. I dont understand the IOS 6 thing at all. Doesn't every single iphone user happily upgrade to IOS 6? Shouldnt all plugins work for the latest IOS rather then older versions most people dont use anymore? If I dont get something please explain.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/13/12 10:17 AM (13 years ago)
FYI - making some progress here identifing the issue and hopefully working out a fix.... https://www.buzztouch.com/forum/thread.php?fid=A4EA915EEED0FD29EC96FDB&tid=A4EA915EEED0FD29EC96FDB
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
10/26/12 07:57 AM (13 years ago)
Just to say, I just installed this plugin (yesterday) and am having the same problem. I downloaded and installed everything went OK and I have it all running on IOS 5.1.1 without a problem. On IOS 6, when the video ends, it fades to black and that is all, just the same as @LeonG. You can reproduce this effect in the simulator.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
10/30/12 03:48 AM (13 years ago)
For anyone reading this thread, the problem has been fixed (see https://www.buzztouch.com/forum/thread.php?fid=A4EA915EEED0FD29EC96FDB&tid=A4EA915EEED0FD29EC96FDB) by updating the plugin.
 

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.