Android :: MediaPlayer Plays Sound But Screen Is Black / No Video

Feb 14, 2009

I'm just trying to play a local video that is a resource with the MediaPlayer class in the most simple way possible. I have confirmed that the video works with players that I download from the marketplace, so I'm assuming that's not the issue.

The problem is that I just get a black screen with no video. There is audio from the file playing though, so I know that the file resource is being accessed correctly, it's just not showing anything on the screen in the emulator.

The one other note is that at any time whenever I try to access getVideoWidth() or getVideoHeight() I get this (non-blocking) error:

ERROR/MediaPlayerService(24): getVideoSize returned -1

Any ideas as to what I could be doing wrong?

import android.app.Activity; import android.os.Bundle; import android.view.SurfaceView; import android.view.SurfaceHolder; import android.media.MediaPlayer;
Code...

Android :: MediaPlayer plays sound but screen is black / no video


Android :: Native MediaPlayer Plays Audio But Not Video - 3gp Format

Jun 16, 2009

I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not shown.

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

View 4 Replies View Related

Samsung Vibrant : Boot Sounds - Sound That Plays When Turn On And Turn Off And The Video Too

Sep 12, 2010

I want to get rid of the sound that plays when you turn on and turn off the phone, and the video too if possible. But I can't find the file on my phone to delete it.

View 2 Replies View Related

Android :: MediaPlayer On Phone Only Plays Part Of My Song

Aug 6, 2010

I am trying to play a file using the MediaPlay. The first time it is played, it only plays for 1 or 2 seconds then cuts out and never returns. The second time I play the song, it goes about 3 seconds. This function is in the onCreate function:

checkin.setOnCheckedChangeListener(new OnCheckedChangeListener(){
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked){
MediaPlayer mp = MediaPlayer.create(context, R.raw.my_song);
mp.start();
v.vibrate(500);
myLocation.getLocation(context, locationResult);}

Is another thread clearing overriding the song? How do I get my whole song to play?

View 1 Replies View Related

Android :: Using SoundPool But Sound Plays After A Delay - Sound Is Lagging

Dec 18, 2009

I am using the SoundPool as follows:

Caching my sounds:

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

Playing a sound effect i.e when button is clicked:

Resources.playSound(context, Resources.SOUND_PIECESELECT);

However as I said the sound is lagging. What can I do to improve this? All my sounds are OGG file format.

View 9 Replies View Related

General :: Black Screen In Videos - Sound Is Fine

Jul 28, 2013

I cant view any video on the web or using Youtube/Ipla application. Just blank black screen is showing but sound is playing. All the games are working. Tablet is after factory reset, no root.

Android version is 4.1 Jelly Bean. Tablet is GoClever R83.2 but i think that's system issue.

Installed custom rom. It's working now.

View 1 Replies View Related

General :: Galaxy S4 Custom ROM - No Sound / Black Screen On Call?

Jan 5, 2014

I have an issue since i start installing custom ROMS. So, is not my first time installing a ROM. I have installed stock ROM's in the past. However, not custom ones. I have rooted my device in the past and even now before installing a custom ROM. I have installed through TWRP recovery various custom ROMS such as Omega, AOSP, ARROW, WanamLite, Google Edition and CyanogenMod but none of them worked fine for me.

In some ROMS I might not have reception (don't worry the IMEI is the same and backed up). However, in EVERY ROM my dialler crashes; for example, when im trying to make a call it freezes and the screen goes black without seeing anything. On the other hand, when I receive a call, screen takes ages to appear and show the caller or even accept the call. In addition, I have NO SOUND at all in every ROM as well.

I believe that the kernel might be the problem. This is because when i am booting the phone I always see the following:

I have tried clearing cache, dalvik, removing battery, installing stock ROMS etc.... and nothing changed!

View 4 Replies View Related

General :: Tablet Doesn't Turn On / Black Screen / No Sound

Apr 22, 2014

I bought a bricked Bruneau tablet and wanted to stock flash it. But the "script" named folder that i put it on the sdcard was for other kind of wonder media processor. I have a WM8505+ procesor and the software was for WM8605. Now the tablet does not turn on, black screen, no sound nothing. I saw on other forums and youtube that i can shortcircuit 2 pins from a Samsung chip on tablet motherboard but it`s not working.

View 1 Replies View Related

General :: Black Screen On Every Video?

Aug 9, 2011

I am running cm7.03 with lordmodue6.7 on my htc inspire 4g. I just went to look at a video on youtube and noticed that their was no visual just audio. I uninstalled it then installed, but no luck. Afterwards i decided to check all other apps that play video like vevo and same problem. I uninstalled adobe flash player then installed it, but ALSO NO LUCK =[. I then checked youtune on my browser and same problem..

View 5 Replies View Related

Samsung Moment :: Video Player Or Plays Video?

Nov 24, 2009

which one is the better app? Also, i need help. i downloaded both apps and cannot find the movie i put on my sd card. where do i put the videos and how can i access them in the app?

View 2 Replies View Related

HTC EVO 4G : Screen Turn Black With Camera - Video Image

Aug 2, 2010

So I just finished my ota 2.2 update... since the install everything has been working great however when I open the camera (still or video) it will not open. The screen will turn black with the camera or video image and then go back to the home screen. I have tried restarting the phone with the same results. Any suggestions? Has anyone else experienced this? btw I was unrooted and stock if that makes a difference prior to the update.

View 41 Replies View Related

Media :: Youtube Video Show Black On Full Screen

Jul 23, 2009

When i open Youtube app. and try to play video it shows black on full screen
i know it has worked before the resent software update

View 1 Replies View Related

HTC EVO 4G :: Music Application Plays Sound From 3D Games

Aug 15, 2010

It may happen to everybody or it may just be me. Im trying to figure out if theres a work around, or some way to exclude game sounds from playing in the music application (example, if you're like me, I always have my music on shuffle. So it shuffles everything including sound/music from game foldera also.

View 4 Replies View Related

General :: Sound Play While Boot Animation Plays On CM11

May 2, 2014

Any way to play a sound file while the bootanimation is playing on CM11(specifically beanstalk, but being as it is cm based...) the reason im asking is because i would like the option to play a sound file of my own choosing rather then have no sound at all.

View 2 Replies View Related

Android :: Need To Use MediaPlayer - Multiple Sound Files

Mar 10, 2010

I need to use MediaPlayer to play some sounds, as they were too large in size for the SoundPool class.

The constructor takes a single sound file. I have, potentially, around 20 files that I want to play, randomly and instantly, like sounds in a game.

Do I have to create a new MediaPlayer object for each sound? i.e...

MediaPlayer mp1 = MediaPlayer.create(context, R.raw.sound1); MediaPlayer mp2 = MediaPlayer.create(context, R.raw.sound2); MediaPlayer mp3 = MediaPlayer.create(context, R.raw.sound3); MediaPlayer mp4 = MediaPlayer.create(context, R.raw.sound4);

That seems expensive...

View 6 Replies View Related

Android :: Noisy Music Sound While Playing (MediaPlayer)?

Jul 19, 2010

is there a way to find the 'noise produced' by a currently playing sound (MediaPlayer) -Like in many music editor software you import a song and it does a graphical layout of the song -like a graph with it higher up at louder bits. Hard to explain. But there must be a way to do this on android...

View 1 Replies View Related

Android :: Unable To Play Short MediaPlayer Sound

Apr 23, 2009

I have this task: Need to play short (0.3-0.4 sec) sounds all the time. When sound is played, it should start again, etc. User can press button to reset sound - it should stop and lunch.

I did many tests. I tried to create 1 MediaPlayer, then do this: MediaPlayer.OnCompletionListener complListener = new MediaPlayer.OnCompletionListener; code...

It works great on emulator and on device if I have eclipse+debugger on. When I disconnect debugger, I have very strange errors - sound can stop at all (till program restart), sound can start "repeating" (play 0.1-0.2 sec, then restart). Can someone please provide me some info about problem?

View 5 Replies View Related

Android :: Video Stream - MPEG4 Video - Not Showing On Android Using MediaPlayer

Oct 12, 2010

There is an online stream that is 512Kb MPEG4 and total size of 312mb online and if I'm correct after looking over docs in order to play the movie I just simply put:

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

It is triggered to play after a button press which after a few seconds after pressing the button it plays the audio BUT doesn't show the video, why not? Do I have to use a surface view or something for visual playback of the stream.

View 2 Replies View Related

Android :: Cannot See Video When Using MediaPlayer

Jan 20, 2010

Attached is my code, I cannot see the video while playing a MPG file.

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

View 6 Replies View Related

Android :: MediaPlayer - Sound Stops When I Change - Suddenly Randomly In My Game

Jan 6, 2010

Why does my MediaPlayer
MediaPlayer mp = MediaPlayer.create(this, R.raw.somemusic); mp.setLooping(true); mp.start();

stop, wenn I change the layout?
setContentView(R.layout.screenoptions);

and also suddenly in my game, the sound stops. What could be the reason?

And which one is better? MediaPlayer or SoundPool?

View 2 Replies View Related

General :: Galaxy Nexus - YouTube Video Plays Only In One Ear In HQ

Dec 6, 2012

So I find this really odd I was watching a YouTube video and using my Bluetooth headphones and the video was playing just fine - well then I switched it HQ and it only plays in the left ear then I switch it back off HQ and it played in both ears again.

This is the video try it out and see if its just my phone or Bluetooth

Galaxy Nexus using Android

View 2 Replies View Related

Android :: MediaPlayer And Video Problem

Sep 29, 2010

I try to play video, but all I get is sound and black screen. I don't understand what's wrong with the code. That video is 3gp, it works on my phone if I run it using standard phone player (without my program). I tryed VideoView, but no result...

Here's code:

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

View 3 Replies View Related

Android :: RTSP Streams Play Only Sound - While Local Does Video And Sound

Jul 10, 2010

In my application, RTSP streams play only sound without video, but if i specify the video path as a local file, it plays the video and audio.

How would i get the RTSP streams to show video?

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

View 2 Replies View Related

Android :: Instances Of MediaPlayer To Play Sounds/video

Jan 18, 2010

Is it possible to have two instances of MediaPlayer to play sounds/ video? How many instances are actually allowed? I can see from the Javadocs that there is a limited amount of instances of MediaPlayer allowed.

View 3 Replies View Related

Android :: Unable To Play Rtsp Video (H.264) Stream In Froyo Using MediaPlayer

Oct 3, 2010

I have an app that worked fine on Android 2.1 (Eclair) but is no longer working in 2.2.1 (Froyo). I think this may have to do with the shift from OpenCore to StageFright for video encoding and decoding, but am unsure.

The debug logs show two things I'm not sure about:

Does this mean H.264 baseline is not supported? WARN/QCvdec(59): Parsing Error unsupported profile or level No idea about: ERROR/PVOMXVidDecNode(59): Ln 1373 OMX_EventError nData1 -2147479542 nData2 0

Play the following url (it works fine in VLC, for example): rtsp://nexus3.dropcam.com/6821ec44e37846428850ec195d69969a

The code:.........

The debug result:

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

View 3 Replies View Related

Android :: Droid MediaPlayer Class Able To Play A Video Stored In A Remoted URL?

Dec 3, 2009

Can anyone tell me if the Android MediaPlayer class is able to play a video stored in a remoted URL? Just for testing purposes, can I use the URL http://localhost/video-name.3gp. Another question is if the MediaPlayer works well on the emulator?

View 2 Replies View Related

Button Setup To Play A Sound - Nothing Plays Until Release Button Again?

Mar 4, 2012

i have a button setup to play a sound,but nothing plays until i release the button again. here's my code

Code:
bKick.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {
// TODO Auto-generated method stub
sp.play(dance_kick, 1, 1, 1, 0, 1);
}

});

View 8 Replies View Related

Android :: MediaPlayer.start - Doesnot Work Fine After Calling MediaPlayer.seekTo - 0

Apr 27, 2009

I have a requirement to play several sounds many times in my game so instead of creating the MediaPlayer again and again I have called mp.seekTo(0) in onCompletion(mp) so that it will restart. Sometimes the sound is not audible from the device when I call mp.start () after setting mp.seekTo(0); but the player calls onCompletion() without playing any sound, this is observed randomly on most of the sounds

My sounds are of short duration mostly less than a second.

I am using a separate MediaPlayer for each sound (as I need this) -

There are almost 28 sounds in my game so i will be creating 28 MediaPlayers.

Below is the attached code for player

Also If I try to play many sounds one after the other in a short period of time i get an error saying "no more track names available". can u tell Why this is happening...?

check the below code:

CODE:........

View 9 Replies View Related

Android :: MediaPlayer Not Running - Just Blank Screen

Mar 5, 2009

I tried a simple mediaplayer application, just to run a .3gp file. First, i put the .3gp file in "Raw" folder and tried to run, but nothing is displaying, just blank screen only.... please guide me, where i am going wrong. I dont have any xml file, is it needed ??

Heres the code, which i am trying

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

View 9 Replies View Related

Android :: MPEG4 Playback - Black Video?

Sep 17, 2009

We have a clent that has videos online that stream. we are taking the same videos an converting them to MPEG4 for mobile playback. they work for fine for most of the phones that we tested except the Andiod Phone? Does anyone have any solutions. the test allowed audio playback but the video was black?

View 6 Replies View Related







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