Android :: Can I Play A Local Video Not On Sdcard
Jan 27, 2009
I can only get the VideoView to play videos on the sdcard, NOT local to my application. Is there a permission requirement to get this working or can it only access the sdcard?
Working: VideoView videoView = (VideoView) findViewById(R.id.video); videoView.setPath("/sdcard/video.mp4");
Not Working ("Cannot Play Video"): VideoView videoView = (VideoView) findViewById(R.id.video); videoView.setPath("/data/data/com.myapp/app_files/video.mp4");
Log Errors: 01-27 15:56:14.920: ERROR/MediaPlayer(3341): Error (-4,0) 01-27 15:56:14.920: DEBUG/VideoView(3341): Error: -4,0
View 4 Replies
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
Sep 13, 2010
I am new to android.I am trying to play a video from sdcard. this is the sample code I have used..
public class videoa extends Activity {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.main);
VideoView videoView = (VideoView)this.findViewById(R.id.videoView);
MediaController mc = new MediaController(this);
videoView.setMediaController(mc);
// (1) Web
//videoView.setVideoURI(Uri.parse(
//"http://www.bogotobogo.com/Video/sample.3gp"));
//"http://www.bogotobogo.com/Video/sample.mp4"));................Please help me out.
View 1 Replies
View Related
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
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
Jun 23, 2010
I am trying to record a video into sdCard. But everytime I click on the Button to record, it shows "stopped unexpectedly" error.
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 9, 2010
I guess webview is the best solution to play a local swf-file (flash). I just get cryptic character in the emulator with this html code in webview.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Flash</title>
</head>
[URL]
How can i play a local swf-file when the user click on some kind of link, java or html?
View 10 Replies
View Related
Jun 30, 2010
I am so in trouble . Getting no guidedence over net that how to play swf file from sdcard/myswf.swf folder or data/data/package.name/flash/myswf.swf in froyo. I have froyo in my mobile and adobe flash is installed from market. But i not knowing, what code i need to write to run this local file in my Webview?
View 1 Replies
View Related
Sep 26, 2009
I have pushed around 10 files of each image(*.png ), audio(*.mp3) and video(*.mp4 & *.3gp) after that I have restarted the emulator and when I open the gallery application I see only a few files being present in sdcard. (in my case 1 video, 2 images and 2 audio clips) .
is this a bug in emulator?
because I have written a piece of code that displays the images/audio/video . But due to above mentioned issue I'm not able to display/play the images.
snippet of implementation is as follows code...
View 2 Replies
View Related
Apr 10, 2012
So I have a directory on my phone with some MP3s. I put a ".nomedia" file in the directory because I don't want these files to show up in Google Play Music
When I open 'Play Music', these files show up no matter what.
I just want Google Play Music to stream files, and I want to use an alternative player for the local Mp3s.
View 1 Replies
View Related
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
Mar 1, 2013
i have the golf channel app installed, on telus network. I cant get the videos to play, keep getting message "cant play video at this time:
View 4 Replies
View Related
Sep 6, 2010
How to play video present in local file system (ex:in res/a.3gp) using VideoView .I am getting error as Video cant be played.Can any one help me in sorting out this issue?
View 2 Replies
View Related
Feb 22, 2009
I've got some code that downloads mp3s remotely over a streaming url connection... This all works fine but my problem is once the file is complete and I pull up the music app it's not there. A reboot of the phone and it now shows up... anyone know how to force this refresh to occur from without my code?
View 3 Replies
View Related
Nov 11, 2010
I published an application that stores data in a local database.
Now I have to publish an update to this application to fix some little bugs, but I am afraid that downloading and installing the update will delate the local database associated with the previous version.
I would like to know how the update system works. Will installing an update completely delete all the apk, files, databases associeted with the previous version?
If so, how can I avoid this in my code?
View 2 Replies
View Related
May 3, 2010
I know this is not a big deal but it is still bothersome. When I try to run video while on Yahoo's site I get message "Cannot play video - Sorry this video cannot be played." I have no issues with ESPN, Cnet, etc. I'm able to run these yahoo videos on my wife's Eris with 2.1 (v.3).
Anyone know how to deal with this issue?
View 5 Replies
View Related
Aug 16, 2010
I replaced my original sdcard with a sandisk 16gb card. Everything went well until I started getting these blasted read on errors. Earlymon suggested a fix from another board but I don't have a stand alone card reader so I couldn't do it that way.
I was wondering if I just backed up all my stuff from my sdcard to my iMac and then just reformatted my sdcard via the phone, would that solve my problems?
View 3 Replies
View Related
Jun 8, 2010
I've converted a movie to MPEG1 to view on my G1.I couldn't find it in the Gallery section, nor under MixZing's Video tab.So I went through Astro to find it.Sure enough, I see the icon for it, but when I tap the icon to view the movie I get a warning saying,"Cannot play video.Sorry, this video cannot be played."So I converted to MPEG2.Am I doing something wrong or can mpegs not be played on the G1? (I'm pretty sure they can.I once watched a downloaded TV series on it.)
View 1 Replies
View Related
Jun 24, 2010
When trying to view video from some certain sites I get this circle with what appears to be a f and a exclamation point and if I select it I get a message that I cannot play this content on this devide. I have a HTC Hero. Is there an app ofr something that I need to be apply to get these video's to play?
View 1 Replies
View Related
Apr 12, 2010
i am biginner in android development and try to play video from link but it's give error "sorry,we can't play this video" i tride so many links but for all links its show same error.
View 4 Replies
View Related
Sep 19, 2010
How to play a video in android? where do I put my video file?
View 2 Replies
View Related
Aug 13, 2009
i am trying to play a video in my activity before i load my main page of my application. it does play the video and i call finish(); on completion.now the problem is : i have video in my raw folder rather than in my sdcard. how can i load from raw folder
View 8 Replies
View Related
Jan 5, 2010
How to play video using opengl es in android?
View 3 Replies
View Related
Oct 21, 2010
I have installed the new YouTube app. However, I cannot get video to play. Every video I load says ,There was a problem while playing. Doesnt matter if its HQ or not. Im rooted with CM6, but I dont think thats the issue.
View 2 Replies
View Related
May 21, 2009
I am new to Android. I have depeloped a video player app. through Sd card.
Now i want to play video direct from URL.
Can anybody provide me sample code for the same.
View 10 Replies
View Related
Jan 20, 2010
I have a URL for a video file which I need to play using the native Video-player of the handset. I figured using Intent.ACTION_VIEW and setting the URI as Intent data, I am able to achieve the aforementioned on G1 except HTC hero. In case of Hero, I have to explicitly set the class Name in the Intent to start the default Video Player: intent.setClassName("com.htc.album","com.htc.album.ViewVideo")
However, I am not comfortable with this approach as it might break on other Android devices.
1. What would be the best way to play this video url via Intent, irrespective of the handset?
2. How to conditionally setClassName in Intent, specific to a Handset?
Writing a standalone Video Player for our app is NOT an option we can afford at the moment.
View 1 Replies
View Related
Jun 16, 2009
I'm writing a program which requires that a video be packaged with it. The only way I know of doing this is by adding the video to res/ raw/, which coincidentally renders the video useless. I've looked all over the web and the consensus seems to be you can only play streaming video, or video from a file. In the emulator if I attempt to play the video through the method used here ( http://developer.android.com/guide/topics/media/index.html ), all I get is audio and a black screen. I've attempted to use VideoView as well, and the same thing occurs, audio but with a black screen. There must be a way to package video with your application without needing an SD card, or having to stream the file and have the video actually play. In the words of Google, I would like to create a "seamless" experience.
View 4 Replies
View Related
Apr 12, 2010
is it possible to play a video in an appwidget?
View 2 Replies
View Related
Mar 15, 2010
i use a web site for tutorial video and they use flashplayer. anyway to get this to play on my motodroid?
View 1 Replies
View Related