25$ if you help me Streaming Video Full screen

Offer / request Android-related Jobs.
Search for a team or team-members.

25$ if you help me Streaming Video Full screen

Postby nyc355 » Mon Feb 07, 2011 12:20 am

i know how to stream video but the problem it's not show full screen

if you help me $25 to yoer PayPal



xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:id="@+id/LinearLayout01"
android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
android:paddingLeft="2px" android:paddingRight="2px"
android:paddingTop="2px" android:paddingBottom="2px"
android:layout_width="fill_parent" android:orientation="vertical">

<VideoView android:layout_height="fill_parent"
android:layout_width="fill_parent" android:id="@+id/VideoView"></VideoView>

</LinearLayout>

java

public class Play extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.goplay);





VideoView videoView = (VideoView) findViewById(R.id.VideoView);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
// Set video link (mp4 format )
Uri video = Uri.parse("link");
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();

}
}
nyc355
Freshman
Freshman
 
Posts: 3
Joined: Fri Aug 06, 2010 2:02 am

Top

Re: 25$ if you help me Streaming Video Full screen

Postby Mardaneus » Tue Feb 22, 2011 8:45 am

Setting the window feature to NO_TITLE is only part of the solution. You need to set FULLSCREEN flags on the window as well.

Code: Select all
requestWindowFeature(Window.FEATURE_NO_TITLE); 
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,   
                                 WindowManager.LayoutParams.FLAG_FULLSCREEN); 


Alternatively you can set the following code in the AndroidManifest.xml in the activity:

Code: Select all
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Mardaneus
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Feb 14, 2011 10:30 am

Re: 25$ if you help me Streaming Video Full screen

Postby mapiko » Fri Apr 01, 2011 3:32 pm

Did you solve this problem? I can help you
mapiko
Senior Developer
Senior Developer
 
Posts: 106
Joined: Sat May 15, 2010 5:19 pm

Top

Return to Jobs / Teams

Who is online

Users browsing this forum: No registered users and 1 guest