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
Jul 10, 2009
I have an application that renders content into a SurfaceView. When the longPress event is received the application requests that the soft keyboard be displayed so the user can interact with what is being displayed on the SurfaceView. The problem that I have is that the size of the SurfaceView is not changed when the soft keyboard is displayed. I have read the article titled: "Updating applications for on-screen input methods" and I've modified my application manifest so that the following is specified for the activity in question:
<activity android:name="AndroidSurfaceViewActivity" android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
So you can see that I've specified the "android:windowSoftInputMode" tag to be resize........................
View 4 Replies
View Related
Jul 29, 2010
Does anyone know if the Desire can resize videos to send as mms? My other phones used to do this automatically, but when I try to send the video that i recorded from my phone it says its too large. if the phone can't do it, is there an app that can do this?
View 3 Replies
View Related
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.
View 2 Replies
View Related
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
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
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
Dec 3, 2012
I am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".
The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.
Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).
(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)
View 6 Replies
View Related
Dec 1, 2012
I am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".
The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.
Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).
(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)
View 5 Replies
View Related
Aug 15, 2010
Kindly provide me the code/steps for Android application which will provide the Video Streaming & Video playing functionalities by accesssing the Videos from various video websites available on Internet.
View 1 Replies
View Related
Mar 27, 2010
Using the Android SDK, is it possible to play a video stream using the MMS protocol I am streaming video from a PC using windows media. I can use Windows Media Player to play the stream by just inputting the following URL in Windows Media Player mms://192.168.223.194:8081. Is it possible to play the same stream using the Android SDK?
View 1 Replies
View Related
Apr 1, 2009
I have problem in playing video file. Video file is playing nice but i want to play video file in the whole emulator (size).Right now video file is playing but in small size.
View 3 Replies
View Related
Sep 10, 2010
while I am playing the video from browser (youtube.com), I am getting the PVMFInfoUnderflow event. Could some one explain why I am getting? in which scenarios we get this error. and if possible try to provide the solution also.
View 2 Replies
View Related
Aug 20, 2009
From weeeks i m trying to play a video file from raw folder .but no success.
I have used this code:..................
View 4 Replies
View Related
Oct 15, 2009
I'm trying to play video's on Android, by launching an intent. The code ...
View 1 Replies
View Related
Jul 20, 2010
I have had this problem for a while, and my boyfriend has too. I have the moto droid and he has droid eris. When certain people send me picture messages and I touch them to open and view it plays as a video, the picture will play for a second and then go to black screen and then back to the messaging screen. It wasn't sent as a video message by the person so why is it "playing " instead of just letting me open it in the gallery and view it like most? I've searched google and other forums for an answer but still nothing.. its not a huge deal but I would like to fix it if possible.
View 3 Replies
View Related
Apr 6, 2009
We are trying to test the Music Player (Music.apk) with Monkey. We have added the permissions in AndroidManifest.xml of Camera application (Camera.AK): <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" /> In the same file, we have added intent for MovieView Activity: <category android:name="android.intent.category.MONKEY" /> We use the following commands: # Launch the Music Player am start -a android.intent.action.MAIN -n com.android.music/ com.android.music.VideoBrowserActivity # Launch Monkey to test Music player monkey -p com.android.music -v -v -v 500 But, we get the error message: "// Rejecting start of Intent.
View 2 Replies
View Related
Oct 6, 2010
I have code that will bring up a Youtube video on their webpage and the user has to then tap the play option to play it:
CODE:..............
This works fine but what I would really like is to have the video come up in the player on the phone immediately without the user ending up on the webpage and having to tap the play option.
View 2 Replies
View Related
Nov 20, 2010
I have two simple programmes, server and client, both at localhost. What I want to do is to streaming the video from the server to the client through socket and the client can play it by using filediscriptor of the socket. First I try to send some message and the client can receive it. After that I send a few bytes of the video from the server'sd card to the client. The client can receive those bytes but cannot play it. Anyone know how to solve the problem?
Here is my server and client code snippets:
Server:
CODE:..............
Client:
CODE:..........................
View 1 Replies
View Related
Apr 2, 2009
I have written a video player app. Its working fine, but the problem is the screen is going to in sleep mode after playing some time. When I click on "Menu" button on the device, then only it wakes up.
How can I solve this?
View 4 Replies
View Related
Jul 23, 2010
I got a question is it possible in Android to load the video data into a VideoView without it instantly starting to play?? If so, how could I do that?
View 1 Replies
View Related
Jul 21, 2009
I plan to have a 3gp video file that will come with the installation package, it will be placed in /files/ subdirectory, and I would like to ask the native Android media player to play it when I want that.
Here is what I have planned to do/code:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse("BattlestarGalactica.3gp"); intent.setDataAndType(data,"video/3gpp"); startActivity(intent);
However, when I try to launch the lines above, I get the following error:
CODE:.............
And the video can not be played.
What am I doing wrong that is not applicable to Android platform?
View 7 Replies
View Related
Sep 10, 2010
I've got an Activity with two views set up in a ViewFlipper. One of the views is a layout with a GLSurfaceView and a few other widgets, the other just has a layout with a TextView and a VideoView. When I click on something in the GLSurfaceView, the ViewFlipper swaps so the video can play. In this screenshot, you can see the plain GLSurfaceView rendering a map on the left. On the right is what it looks like after the ViewFlipper has flipped and the video starts playing. The empty transparent area where the GLSurfaceView shows through is where the video is supposed to be. I can hear it playing through the speaker and the timeline is moving forward, so I know it's playing.
View 1 Replies
View Related
Nov 21, 2010
I got this message when trying to play mp4 video on android from url ( video is not valid for streaming on this device )
the code i use to play mp4
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setDataAndType(Uri.parse(url), "video/mp4");startActivity(intent);
how to solve this problem?
View 14 Replies
View Related
Sep 27, 2010
I have a problem in playing video file in android using VideoView. When I keep the .3gp video file locally in res/raw folder, the video file plays successfully. But when I keep this same file on live web server and stream it, it runs on Android G1, Nexus one and Tatoo which I have for testing. But It fails to stream and play on Motorola milestone. I got the error on device as: 'This video is not valid for streaming'. What problem it should be, I am really seek of finding it. Is it the issue of programming or file format?
View 2 Replies
View Related
Nov 4, 2009
Did anyone try playing audio/video through http/rtsp. I am having a problem with either of the approach.... I am getting an error Command PLAYER_INIT completed with PVMFError I some cases I got Command PLAYER_INIT completed with PVMFErrorContentInvalidForProgressiveDownoload.
Can some one explain what is the problem. The code snippet I am using is given below. Code...
The code works fine when I say mVideoView.setVideoPath("/sdcard/vv.3gp"); but not able to play if I give a rtsp/http urls. In case of http it says PVMFErrorContentInvalid for progressive download.
Can some body tell me what is the problem. Can you please post the code if someone has been successful in playing audio/video through http/rtsp.
View 8 Replies
View Related
Sep 19, 2010
I am facing problem in properly converting the video for iphone & Android phones. I have converted the video to mp4 using following command...
View 2 Replies
View Related
Mar 13, 2010
Does Android MediaPlayer can only work with file sources? I would like play media (video) from a network stream, but the stream comes in a non-standard protocol, so I have to somehow feed Android MediaPlayer with the data only. Is there anyway to do that? I found a few web pages suggesting using a temporary file for the buffered media data etc. but I would like to minimize the I/O usage as much as I can, so I'm looking for a API only solution if there is any? how about JNI? but looks like the permissions going to be an issue with that also.
View 1 Replies
View Related
Sep 3, 2010
Not sure if this has been addressed before, but I cant seem to view mms videos. Im using Handscent SMS and when i receive videos via text, they don't seem to load. I just get a, itunes looking image and i only hear the video audio.
View 3 Replies
View Related
Nov 23, 2010
Ok so I see a lot of people saying they are having problems with video playback when importing from their SD Card but Im having the opposite problem.
I just switched over from the Metro PCS Samsung Code which is a Windows 6 phone to EVO and I put my SD Card in my EVO. All my music files play and the mp4 video files play but the audio from the mp4 video files dont. Does anyone have advice on how to fix this?
View 9 Replies
View Related