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?

Android :: Droid MediaPlayer class able to play a video stored in a remoted URL?


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

Play Video File On Android Device But Getting Error - Cannot Play Video

Aug 7, 2011

Im using Eclipse created new android project.First thing i added to the menifest xml file two lines:

Code:
uses-permissionandroid:name="android.permission.INTERNET"></uses-permission>
<uses-permissionandroid:name="android.permission.STORAGE"></uses-permission>

And this is the complete menifest file code:

Code:
xmlversion="1.0"encoding="utf-8"?>
manifestxmlns:android="http://schemas.android.com/apk/res/android"
package="com.AllFormatsVideoPlay"
android:versionCode="1"
android:versionName="1.0">
[code]....

Now i tried to play a video file .3gp from the internet youtube link via my android device ! not emulator. And it worked! But when i tried to play a video file .3gp or .mp4( i converted the mp4 from 3gp ) its not working. Im getting error "Cannot play video Sorry, this video cannot be played"

Tried to play with the link to my device wich is: I:DCIM100MEDIAVIDEO0030.3gp or .mp4 or tried this: I:/DCIM/100MEDIA/VIDEO0030.3gp with "" like: "I:/DCIM/100MEDIA/VIDEO0030.3gp ";

I tried to remove the I: but it didn't change anything.This is the main code im using to play the video files on my device. And there some lines i marked with // wich i used to play from the internet and im not using now.

Code:
com.AllFormatsVideoPlay;
import
android.app.Activity;
import
android.graphics.PixelFormat;
import
[code]....

View 7 Replies View Related

General :: How To Stream Video Stored On Droid X2 Running CM7

Feb 22, 2012

Can the LiveView accessory be used to stream video stored on a Droid X2 running CM7?

View 2 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 :: 1.5 How Can I Play HE AAC File Type With MediaPlayer?

Apr 28, 2009

Could I somehow trick the player on playing something of this format? I know that there is support for AAC encoded files but just how?

View 2 Replies View Related

Android :: Can I Use MediaPlayer API To Play Flv Media File

Jul 3, 2009

Recent news say that flash porting is finished for android and HTC Hero has support for flash. Can I use MediaPlayer API to play flv media file? Is there such documents?

View 3 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

Motorola Droid :: Video Player To Play Mp4 Video In Full Resolution For Phone?

Dec 10, 2009

If this is a repeat of another thread then i apologize .i need a video player that will play mp4 video in full resolution for the droid.m coming from bb.can you help me with this.i don't care if it is free or not.

View 8 Replies View Related

Android :: MediaPlayer / Play Media Via Speaker Phone

Jul 22, 2010

I am able play a media using MediaPlayer. The media played via the ear piece. But how can I play the media with speaker phone? e)But that does not work. And I have added this to my Manifest file.

View 7 Replies View Related

Android :: Mediaplayer To Play Live Streaming Audio

Nov 8, 2010

In my music app, i would like to play live streaming like radio broadcasting with mediaplayer as Mediaplayer mp = new Mediaplayer(); mp.setDataSource(LiveStreamingURL); mp.prepare(); mp.start(); but after playing for few seconds it is stopped. I dont know how to overcome it. Give me your suggestions for this.

View 3 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 :: 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 :: 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

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...

View 9 Replies View Related

Android :: Play Audio From Stream / Stored Cache File

Feb 10, 2010

How to play audio from a stream in android? I will get input stream from an online link( like continuous FM). I need to cache the stream and play it. I searched a lot in sites,,,but didnt get.They show option of playing from a stored file. There is no option to play from a stream.

View 2 Replies View Related

Android :: Can Rock Player Play Files Stored On Phone's Memory?

Aug 17, 2010

Can rock player play files stored on the phone's memory, not the SD card? Also can you set it to the default video player?

View 1 Replies View Related

General :: Where Play Store APKs Are Stored

Jul 16, 2012

I know they should be in /data/app but 2 are missing. I recently added my wife's account to my Gnex since she bought Where's my Water and Amazing Alex for my son to use on her phone. I wanted to install Amazing Alex on our Asus Transformer TF101 but Rovio has decided it doesn't work well. Now my 5 year old is freaking out. I added her account to my phone and downloaded it from the Play Store. I wanted to side load it to the TF101 via Dropbox but the apk doesn't show in the /data/app folder when using Root Explorer. Neither game I installed using her account shows.

View 3 Replies View Related

Android :: How To Play .flv Video Files In Droid App?

Jan 6, 2010

I was just wondering if it's possible out of the box or via a library.

View 1 Replies View Related

Android : How To Play A Video In VideoView In Droid?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK?

View 2 Replies View Related

Android : How Can I Play Video In Droid App Widget?

Mar 5, 2010

Is there any way to play video in Android App widget.

View 1 Replies View Related

Android : Can't Play Video In VideoView In Droid / How To Fix?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK? Please comment.

View 3 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

General :: Where Play Music App Files Stored When Pin For On Device

Dec 4, 2012

I have pined them and they are local it says, but cannot find the files, do you know where they are stored. I read on other post that it is in Internal storageAndroiddatacom.google.android.music, but when looked there it is empty

View 2 Replies View Related

Android : How To Play Video In Droid From Local Disc?

Jun 23, 2010

Am able to play videos from URLs but not able to play from local disc. The file is stored in the C:/users/workspace/test/res/raw/test4.mp4 how do I parse this path in Uri.parse??

View 1 Replies View Related

HTC Incredible :: Where Are Video Clips Stored?

May 22, 2010

I have several video clips of my kids on my phone. Just curious where they are stored on my phone? Can I have them default record on my SD card?

View 6 Replies View Related

General :: Where Expired Downloaded Movies From Google Play Are Stored

Oct 3, 2012

where expired downloaded movies from Google Play are stored ?. The reason for asking is that I would like to delete them rather than clogging up my Nexus 7. Perhaps they are automatically deleted as I don't seem to be able to find them on the device.

View 3 Replies View Related

HTC Droid Eris :: Video - Play Fancast.com Files On Android OS

Nov 15, 2009

Can you play any fancast.com files on the Android OS? Thinking about getting the HTC Droid Eris but want to know all about it first so don't make a mistake. I am currantly running Skyfire for my browser and it works really fast and can watch any video.

View 3 Replies View Related

Android : Can't Open Youtube In China / Droid 1.8.2 Version Play Video?

Aug 19, 2010

can the android 1.8.2 version play youtebe video ? I can't open youtube in China.

View 2 Replies View Related







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