Android :: SurfaceView For Video Display Part?

Jul 26, 2010

I am currently working on the app in which my media player class is singleton, and i want to play the video files. I use surfaceView for the video display part. But the problem i m facing is when i change the orientation, the previous playback disappears (if was playing) and the new surface view is getting created ..but the callback method surface created is not getting called in which i want to take further action.

Android :: surfaceView for video display part?


Android :: App To Video Editing To Clip Part Of Video Not Relevant To Post / Share?

Dec 7, 2009

I am looking for an application that will allow simple video editing to clip part of the video that is not relevant prior to posting or sharing.

View 24 Replies View Related

Android :: How To Display Part Of An Image

Aug 12, 2010

I have a large image.But i have to display just some portion of it.How is this possible using Android ImageView?

View 2 Replies View Related

Android :: How To Display Some Part Of HTML File In WebView?

Apr 21, 2010

We have a large HTML which contents 1000's of lines. But we want to show content of the HTML file that fits a single screen. We want provide a '>' kind of to show the next contents of the same HTML file. Our objective is to only display the HTML contents that fits the screen.Similar to reader application For user, it seems there are several pages. Is there any way in which we can achieve this functionality. Whether WebView has any function related to full fill the requirement.

View 2 Replies View Related

Android : Resizing SurfaceView While Playing Video

Mar 28, 2010

Can any one suggest the way by which i can resize the SurfecView while Playing the Video on it.actually I tried the onMeasure() method which is called by measure() .but it does not resized.

View 3 Replies View Related

Android :: Place Widgets Such As Buttons On Top Of A SurfaceView (Video)?

Mar 22, 2009

How can I place widgets such as buttons on top of a SurfaceView (Video). According to the reference this should be possible. But I have no idea how the xml file should look like.

View 2 Replies View Related

Android :: Video Games - Graphics/SurfaceView Tutorial ?

Feb 23, 2010

I'm trying to learn how to make video games on Android, and therefore I'm needing to get some decent tutorials going on how to make graphics on Anroid using the SurfaceView object. However every single graphics tutorial I've tried (mainly SurfaceView stuff) has failed. Please note that I don't want to use XML, as it is out of my element, and Google just wants to sell that technique on the advertisement of neatness, which I can do programmatically.

One major problem I've run into is that there are many tutorials, both from Google and from third parties, with code that uses the import android.opengl.GLSurfaceView command, or either imports a subset GLSurfaceView, and that never works on my IDE. Every time I try to import either one of those, Eclipse wants to say that it basically doesn't recognize that package. The strange thing is that I CAN import android.opengl.*, although that still causes some of the code in those packages to be referring to unrecognized types and/or methods.

After trying to fool around with the first problem for a while, I noticed that the Lunar Lander example didn't try to import either one of those two problem libraries. So I pulled the code and referenced resources for that into one of my infant projects, leaving everything else in that project unused. Of course I did change which package the Lunar Lander code was in and changed the class name in LunarLander.java or whatever, but that should not matter. I was able to get the thing to build in Eclipse. However when I went to run it, it would do nothing but crash. Without showing any Lunar Lander graphics or anything, the emulator would just give me this error message basically saying that my App has stopped working unexpectedly and makes me close the App.

1) What's the deal with the issues with the opengl.GLSurfaceView package?
2) What's the deal with the Lunar Lander example?
3) Where's a good, firm tutorial on how to make video games for Android

View 2 Replies View Related

Samsung Galaxy S :: IPhone 4 Vs Galaxy S - Part Deux - HD Video Playback - Video

Jun 26, 2010

iPhone 4 vs Galaxy S, part deux: HD video playback (video)

View 16 Replies View Related

Android :: SurfaceView Vs Custom View / SurfaceView Is Slower

Aug 20, 2010

One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower animations, less intense graphics.However, in my simple app, I can clearly see that using a custom view with calls to invalidate seems to render faster.What do you guys know/think about this?My touchEvent code is exactly the same, and my drawing code is exactly the same. The only difference is that one is all in the UI thread, and the other is using a tread to handle the drawing.

View 1 Replies View Related

Android :: Display Video From Url?

Aug 31, 2010

Can you give an example, how to display video from the url?

View 1 Replies View Related

Android :: Display Video Thumbnails?

Aug 26, 2009

I created a video recording application with library dialog. The library dialog displays the list of recorded videos where each item consists of icon, video title, tags and location information the following way:

Does anyone know whether it is possible to replace icons with video thumbnails (single frame preview)?

View 7 Replies View Related

Android :: Media Player Does Not Display Video

Jun 2, 2009

I am trying to play mp4 video file from mediaplayer demo given in the api demos along with android sdk.I changed the path to /sdcard/video.mp4.If i run mediaplayer_video demo, the audio output is coming, but no video is being displayed, the screen is black.when i seen the logcat,it reports, surfaceCreated called and surfaceChanged called.

View 4 Replies View Related

Android :: How To Display Video In Emulator From Remote URL

Sep 15, 2009

I am using the following code to display a video file in the android emulator,it works fine when the video file is stored in a SDcard.But when i give any URL of a video the code not working.

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.View;
import android.widget.*;

public class playerActivity extends Activity
In the above code if change the path variable the Emulator screen is black with single button.May be i have to do some more things to display the video from the Remote URL,i dont know what to do.Any one having any idea about this please help Me.

View 3 Replies View Related

Android :: Display A Dialog While Video Is Streaming

Aug 24, 2010

I have created an application that displays XML data information on the top section of my Linear layout. Below that I have a video that is streaming and takes a while to start playing. How would I set a dialogue to display until the video appears?

View 1 Replies View Related

Android :: Need To Display Streaming Video Occupying Full Screen?

Sep 9, 2010

I am using VideoView component for streaming video in Android , but the streaming video is occupying only a part of the screen of the mobile device both in portrait/landscape mode.

Kindly provide the code to so that the streaming video is displayed covering the full screen in portrait/landscape mode.

View 1 Replies View Related

Android :: Possible To Display Video Information From An Rtsp Stream In Droid App UI?

Mar 23, 2010

I have managed to get a working video player that can stream rtsp links, however m not sure how to display the videos current time position in the UI, i have used the getDuration and getCurrentPosition calls, stored this information in a string and tried to display it in the UI but it doesn't seem to work code...

View 6 Replies View Related

Samsung :: Does Moment Have Capability To Send Audio / Video To External Display?

Mar 4, 2010

Does the moment have the capability to send audio/video to an external display? I have a ton of shows/movies on it and I would like to hook it up to a tv to watch them. I found this ---> T3 TV-Out Video AV Cable For Samsung Moment SPH m900 US - eBay (item 110497826612 end time Mar-23-10 05:09:55 PDT) but it is the only place I've seen it and I'm not sure if it will actually work with the phone. Any one got a clue?

View 3 Replies View Related

General :: Samsung Galaxy Nexus V4.4 - Video Streams Display Will Turn Automatically Off

Oct 10, 2013

I just switched from WebOS so I'm quite a noob to Android. Anyways, I bought a new Samsung Galaxy Nexus with Android 4.4.

Now to my issue: I like to watch video streams. The problem is, that the display will turn automatically off.

Solutions:
1. Play a stream with a video player - how can I do this?
2. Change settings so the display will not switch off on a stream, but will turn off when idle - is this even possible?
3. Turn off "turn off display when idle" setting - but I don't like this one.

View 4 Replies View Related

Sony Ericsson Xperia X10 Mini/Pro :: Playing Recorded Video / First 5 Seconds Display Black

Oct 7, 2010

When I plays video recorded on my X10mini, about 5 second at the beginning it displays black. But I can hear the sound.

View 3 Replies View Related

Android :: Get Video Out Feature Work / Phone Display Running App On Tv Without Extra Work

May 10, 2010

I'm searching for android phones that can use video out to the tv for a research project. I'm considering the HTC Touch Pro.

Is there anything I have to do specifically to get the video out to work (for displaying my app on the tv)? or will the phone just display a running app on the tv without extra work?

View 2 Replies View Related

Android :: Switch To SurfaceView

Mar 25, 2009

Im creating a simple game using a SurfaceView for drawing the Graphics. It works fine, but now I tried to add a title screen, which is (for now) only a LinearLayout and a Start-button, specified in XML. However, when I click this button and try to switch to my SurfaceView (By doing setContentView(R.layout.game), the screen turns black. But if I do setContentView(R.layout.game) immediatly in my Activity.onCreate it works. But not if I start with my Title-screen and then try to switch

View 3 Replies View Related

Android :: SurfaceView On G1 - Crashes

Apr 30, 2009

I am finally testing my application on a G1 and even though it works fine on the emulator, it crashes on the G1

It crashes when it does:

CODE:.........

And the view is defined like this:

CODE:..............

View 3 Replies View Related

Android :: 2 Mediaplayer Using One Surfaceview

Jun 16, 2009

I want to play 2 videos one after one minimizing delay between each video. so I created 2 mediaplayer, one playing the current video and the other preparing to play the following video.

The 1st video is played correctely but I couldn't get the video track of the second video. only sound without any error.

This is my source code : (note that here, I am using files on sdcard but the application will use files on a web server. that's why I need to prepare the second video while the 1st is playing)

CODE:...................................

View 5 Replies View Related

Android :: OnActivityResult Fc When Using SurfaceView?

Sep 4, 2010

My app fc when activity that's using SurfaceView as content view calls startActivityForResult(...) and activity that has been started calls finish()

This does not happen if I change content view to something else than SurfaceView.

This would be the requested logcat:

CODE:..................

View 1 Replies View Related

Android : Put GLSurfaceview On Top On A SurfaceView

Dec 16, 2009

Look at this: http://nhenze.net/?p=172

They show that it is possible to put an GLSurfaceview on top on a SurfaceView. I hope it would be useful.

View 2 Replies View Related

Android :: How To Exit Activity Using SurfaceView

May 18, 2010

When exiting the activity in a thread in a SurfaceView. This log appears in this situation:.............

View 2 Replies View Related

Android :: SurfaceView Fast Enough For Emulation

Sep 11, 2010

For years now I've maintained a Tandy Color Computer Emulator applet on my home page. With the purchase of an Incredible I decided to do a port. Getting it going in Android didn't take long but I'm really surprised how slow it runs. You can literally see the pixels painting. I know there are other successful Android emulators so I must be doing something wrong.

My approach was to use a SurfaceView for rendering. There's a separate thread that runs a virtual 6809 CPU. Whenever that thread updates the emulated video memory, it calls SurfaceHolder.lockCanvas() with a Rect describing the part of the screen requiring a repaint. Then it calls the gfx routines with the resulting Canvas...this is where I did a repaint() in AWT/Swing. The gfx routines are smart enough to just render what's in the clipRect. Perhaps I'm still stuck in AWT but I can't think of any way to make this thing run at an acceptable speed. I tried to coalesce the gfx calls but that didn't work either. Any thoughts?

View 1 Replies View Related

Android :: SurfaceView Transparent Through Its Parent

Feb 11, 2009

I have a SurfaceView that is covering a portion of its parent, a RelativeLayout. I have a background image covering the full RelativeLayout area, and this is my Activity's main layout.

I would like to have the SurfaceView be transparent so that I can see through to the background image on its parent RelativeLayout. I have tried the approach shown in the API Demos example TranslucentGLSurfaceViewActivity, but this succeeds in making the transparency go all the way through my Activity to my desktop!

I'm using the "style/Theme.Translucent" theme on my activity, and setting this on my SurfaceView: mySurfaceView.getHolder().setFormat(PixelFormat.RGBA_8888);

The transparency to the desktop it kinda cool, but not what I'm trying to do! Is it possible to make a SurfaceView transparent only through to its parent?

View 2 Replies View Related

Android :: Difficulty Resuming SurfaceView

Apr 24, 2009

I am stuck.My main activity creates and starts a SurfaceView.My app needs to access a listview via the options menu to change properties of the items shown in the view.Two strange things occur:

1.) When I scroll the listview quickly, the list sometimes gets farklempt.Words overlap each other.

2.) When I select the item and the app returns to the main activity, the thread is no longer alive.

If someone out there can offer help I will post the code.This will take a little effort.My code is loosely based upon LunarLander and the GLSurfaceView examples.If there is a good example (more recent example) someone can point me to, that would be boss.

View 8 Replies View Related

Android :: Regaining Focus Using SurfaceView

Mar 23, 2009

I'm currently getting to grips with Android, playing around with the Lunar Lander sample. I've found that if you navigate away from the app (eg, hit the call button) it will destroy the underlying surface (calling surfaceDestroyed). Navigating back (which will trigger onWindowVisibilityChanged) the app will crash, as it will try to draw to the surface without recreating it. Is there some code I can put in onWindowVisibilityChanged (or anywhere else) that will regenerate the SurfaceView's underlying surface and resume execution nicely? It feels like this should be a simple function call but I can't find anything in the API docs.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved