New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
EleCtrOx666
Old
(Last edited by EleCtrOx666; 27th October 2011 at 05:57 AM.)
#1  
Senior Member - OP
Thanks Meter 149
Posts: 533
Join Date: Aug 2009
Default [APP MOD] VideoPlayer.apk Rotate Video without Auto-Rotation!

Hello

Description
Since some time Samsung made it possible to see videos in portrait. That's a nice feature, but the only problem is that, if you don't have auto-rotate on, the player will be stuck on portrait and you'll have to return, then activate auto-rotate, and re-open the video. It's quite annoying(for me) so I decided to edit VideoPlayer.apk to disable auto-rotation, but maintaining the feature to rotate the screen. Since I personally don't use SRS effects I decided to replace that with a button that would rotate the screen. So if you click on that button and you're on portrait, you get to landscape and the opposite.

It has another advantage over Auto-rotate: if you want to look at a landscape video but you're in a position between the two, with auto rotate it'll sometimes go to portrait, with this it won't.

So, what does it look like?


I would appreciate if some designer could make an icon for it or even give me a good one! Dimensions of the image are 110x76 for Landscape and 90x74 for portrait(thanks in advance!).

If you need:
If you need SRS effects, leave a message and I will see what I can do. I removed it because I personally don't use it but I don't know if many people need it.

If you need other rotations(landscape-reversed, portrait-reversed), also leave a message. I can easily include them, I just need to know if some people need those.

Compatibility
It should work on every Samsung ROM(maybe not future upgrades), I'm personally using Batista 2.3 and used the VideoPlayer.apk from it as a source. Leave feedback if it's working/crashing or not please .


Developers/Themers
If you want to include this in your ROM or theme/edit this, no problem. Just leave a little credit .

Installation
I am not responsable from anything that could happen.
Two methods :
1. Replace manually the APK downloaded from below and paste it in /system/app and confirm the replacement of VideoPlayer.apk with a explorer that has Root functionality, like Root Explorer or the new FileSlick.
2. Install the CWM-VideoPlayer Via CWM/Recovery(Thanks Rawat for CWM-script!).

.
Attached Files
File Type: apk VideoPlayer.apk - [Click for QR Code] (576.6 KB, 2063 views)
File Type: zip CWM-VideoPlayer.zip - [Click for QR Code] (647.7 KB, 1679 views)
Current phone : Galaxy S2
My mod :Video Player Rotation without auto-rotation
The Following 25 Users Say Thank You to EleCtrOx666 For This Useful Post: [ Click to Expand ]
 
Micronads
Old
#2  
Senior Member
Thanks Meter 70
Posts: 350
Join Date: Oct 2010
Location: Kansas City

 
DONATE TO ME
Awesome. I have the same trouble all the time. Great fix...

Sent from my GT-I9100 using xda premium
"From the wheel to the skyscraper, everything we are and everything we have comes from a single attribute of man-the function of his reasoning mind."
--Ayn Rand
 
EleCtrOx666
Old
(Last edited by EleCtrOx666; 27th October 2011 at 05:57 AM.)
#3  
Senior Member - OP
Thanks Meter 149
Posts: 533
Join Date: Aug 2009
Hmm, not much interest ? CWM-Script added, thanks Rawat !
Current phone : Galaxy S2
My mod :Video Player Rotation without auto-rotation
 
MuayThaiFighter8
Old
#4  
MuayThaiFighter8's Avatar
Senior Member
Thanks Meter 441
Posts: 848
Join Date: Jan 2011
Location: Antwerp, Belgium
This is great, well done
The Following User Says Thank You to MuayThaiFighter8 For This Useful Post: [ Click to Expand ]
 
Spartoi
Old
#5  
Spartoi's Avatar
Senior Member
Thanks Meter 126
Posts: 1,718
Join Date: Jul 2009
Location: Pomona
This would go in this section, no?
 
EleCtrOx666
Old
#6  
Senior Member - OP
Thanks Meter 149
Posts: 533
Join Date: Aug 2009
Quote:
Originally Posted by Killer Bee View Post
This would go in this section, no?
I don't really know, they don't define "development"! Reenginering is development for me(SMALI). If it's only for ROMs then yes I guess it should be moved.

" [READ] Only actual DEV, GUIDE, HOWTO, HACK, MOD, APP & FIX topics allowed in DEV area" <- This seems to fit !
Current phone : Galaxy S2
My mod :Video Player Rotation without auto-rotation
 
Rawat
Old
#7  
Rawat's Avatar
Senior Member
Thanks Meter 511
Posts: 763
Join Date: Jun 2010
Location: London
Quote:
Originally Posted by EleCtrOx666 View Post
Hmm, not much interest ? If someone can help me create a CWM script, would be kind!
Here's a basic update.zip which overwrites it with your modded app.

I would have made a more fancy one that renames the old one to videos.apk.bak , but I'm just feeling too tired right now
Attached Files
File Type: zip update.zip - [Click for QR Code] (647.7 KB, 197 views)
The Following 2 Users Say Thank You to Rawat For This Useful Post: [ Click to Expand ]
 
s2d4
Old
(Last edited by s2d4; 27th October 2011 at 05:34 AM.)
#8  
s2d4's Avatar
Senior Member
Thanks Meter 329
Posts: 1,178
Join Date: Mar 2009
Quote:
Originally Posted by Killer Bee View Post
This would go in this section, no?
umm, abolutely not.. well done on the good work, hope this is a mod other ppl will enjoy.. especially watching *videos in bed
7 H 14min Screen On goo.gl/ybloM

XDA, NOT THIS!!!
FAIL/HOAX/KANG 1.goo.gl/EuO2c 2. goo.gl/iwbWe 3. goo.gl/Dfcfg
Original Developer? 1. goo.gl/n2KH8 2. goo.gl/4Gval
memory scripts with no basic memory knowledge? goo.gl/0wciD
He is working on DK engine? goo.gl/mlg8v
publicly against kang goo.gl/5g6tX
Then Turboboost Kang goo.gl/Z5BDz
built ICS Port to SGS2 with cyanogen and TeamHacksung goo.gl/88azB
 
aamirleo55
Old
#9  
aamirleo55's Avatar
Senior Member
Thanks Meter 39
Posts: 413
Join Date: Mar 2009
Location: Mumbai
plzz put SRS effect too... coz many users use it...

can u plzzzz make another mod with SRS not removed, as i see videos in landscape mode only and i dont need to see in portrait..

thanx..thanx... thanx a lot..
 
kamikadzzze
Old
#10  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2007
For some reason this did not work for me.
Could you simply change the name of the Activity so that this is considered another application. Then we can choose witch app to use for videos (the original, or yours), and put the tick for using it every time if we like it.
Thank you in advance!