Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 11    Views: 67

LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
02/26/14 05:38 PM (10 years ago)

youtube playlist rotation

Hey there, there were some solutions for BT 2.0 to get some plugins/screens to rotate to landscape and keep all other in portrait mode. Don't seem to find a solution for BT 3.0 now? For this special case, I would like the youtube videos that are showed using the Youtube Playlist plugin to rotate to landscape but keep all other screens in the used portrait mode. Hope this can be solved.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/26/14 06:22 PM (10 years ago)
Hi Leon, Atrain made a wonderful guide to control rotations, send me a private message and I'll send you the document. It's designed specifically for 3.0, but it's not public yet since I think Atrain is waiting for something before release. Send me a email: [email protected] David https://btmods.com/chat/
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/26/14 10:44 PM (10 years ago)
Let's pester him .... hey, are you on the A-train yet?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
02/27/14 03:26 AM (10 years ago)
Thank you very much David! Just send you an email.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/27/14 07:52 AM (10 years ago)
LOL. More like Refrigrated BOXCAR today. Winter 2014 has been relentless! That guide is essentially butchering some key BT viewcontrollers to control rotation. Seems to work good so far - but it's not for the non-coder type - because no part of it is done thru the control panel. I sent it to the BT crew a while ago and was thinking maybe David would look at it and think about incorporating it into the BT Core somehow. He's the one that 'challenged' us to find a solution when we discussed it in that dev meeting that BT Rotation was 'broken'. Rotation CAN'T be broken. It's way to essential to proper app development! Let me know if you're able to pull it off using that guide Leon, you're probably a good tester for this.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
02/27/14 07:59 AM (10 years ago)
will do as soon as I receive it :-)
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/27/14 09:44 AM (10 years ago)
ATrain, I've been looking for a method to rotate the full screen image displayed using Mosaic Menu as an image gallery... but only when the image is tapped to go full screen. Would your guide be able to guide me through how to do that? All other rotations should be left the way they are... but when a user taps my image... most images are in landscape format, therefore displaying full screen in portrait mode it looks small and shows a lot of black background above and below it. Would prefer it to turn to landscape and stretch to take up the whole screen. One of my other apps does this, but it's a non-BT app that I had coded from India a few years ago, and I think trying to translate non-BT code into BT view controllers and such would be too confusing, since I don't know much objective C.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/27/14 09:45 AM (10 years ago)
Sent Leon! Saw you came to the chat, I was sleeping, heh. @atrain, ever hear back from the higher ups? David https://btmods.com/chat/
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
02/27/14 09:58 AM (10 years ago)
It works perfectly guys! Thank you very much for this nice piece of code. Happy days!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/27/14 10:00 AM (10 years ago)
Happy ending. @Atrain, get in touch with me. Cheers Leon. David https://btmods.com/chat/
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/27/14 11:17 AM (10 years ago)
@Ninja It **might** - the concept is that it removes ALL of the existing BT rotation code - because per David and my own testing, it doesn't work in the BT 3.0 core. Basically it opens up ALL screens to be 'rotatable' and then you lock the screen(s) you don't want to rotate with a few lines of code you have to add to each viewcontroller(plugin). All done in code, nothing in the control panel. It's PerScreen/PerVC. That means if you download an update to the plugin, you'd have to re-add the code. It also means you have to mod the BT Core files for each project you use this in. It also means you can't have one BT Screen like 'Menu with Buttons" that rotates in your project and one that doesn't. The code affects all instances of the viewcontroller in your project. I've also only used this with small devices/iPhones under ios 6 and 7. I'm not 100% positive how well it works with iPads/Large devices, maybe MrDavid or Leon could test that out? @MrDavid - will check into the chat soon :)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/01/14 02:51 PM (10 years ago)
ATRAIN -- would you consider submitting it for the How To section via Susan. A few others are asking for the technique. For example: https://www.buzztouch.com/forum/thread.php?tid=C3D4724477ECBECA631B413&currentPage=1
 

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.