top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Resizing vedio in Android

0 votes

How can I resize the vedio say from 640 *480 resolution to 480 * 400 resolution.

posted Mar 18, 2013 by superuser

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

If it's with a MediaPlayer class so you can use a SurfaceView and a surfaceHolder to your video and change it... See this page, I used it at my application... There's a part where it says "Set a size for the video screen", there's the magic!

BTW you can set your video to start automatically with some changes at the code, worked great for me.

answer Mar 18, 2013 by Nora Jones
Similar Questions
0 votes

Can anyone suggest the library for Push Notification?

0 votes

Update is installed but status is in pending on App Center. Since sync is alreday called , it won't rollback automatically and also not updating to newer version. The app crashes on startup everytime.

So how to rollback or update to new code push bundle version in this case ?

Here is the sample code:

componentDidMount() { 
codePush.sync(codePushOptions,(status) => {  
switch (status) {    
case codePush.SyncStatus.CHECKING_FOR_UPDATE:
//console.log("Checking for updates.");
case codePush.SyncStatus.DOWNLOADING_PACKAGE:
//console.log("Downloading package.");
case codePush.SyncStatus.INSTALLING_UPDATE:
//console.log("Installing update.");
case codePush.SyncStatus.UP_TO_DATE:
case codePush.SyncStatus.UPDATE_INSTALLED:         
throw new Error();

Note : I have thrown error to check working of auto rollback.

0 votes

Have you even seen OutOfMemoryError in system server? If yes, how do you find the root case of OOM? Do you have any tools that help finding the root cause in production code or during development?