appView.setDownloadListener(new DownloadListener()
{
public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimeType, long size)
{
Intent viewIntent = new Intent(Intent.ACTION_VIEW);
viewIntent.setDataAndType(Uri.parse(url), mimeType);
try
{
startActivity(viewIntent);
}
catch (ActivityNotFoundException ex)
{
Log.w("YourLogTag", "Couldn't find activity to view mimetype: " + mimeType);
}
}
});
In your javascript set the URL of the window to the URL of the video it will begin playing immediately in the full screen media player.
Nick
Working perfectly. Thank you so much
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
I have tried doing tis..works fine for remote files..and for the local files the recent post I was unable to play the video..I got the file path through the phonegap utilities (same as you have mentioned but through phonegap) tried to set the path but the application crashed...Any suggestions
Simon Mac Donald
http://hi.im/simonmacdonald
Simon Mac Donald
http://hi.im/simonmacdonald
Simon Mac Donald
http://hi.im/simonmacdonald
Simon Mac Donald
http://hi.im/simonmacdonald
I am new for developing application with Phonegap in Android. Now I
face a problem, so i am seeking for some helps. The problem is that I
cannot play the video file (.mp4) in Phonegap application in Android
by using <video> tag of HTML5. I believe that some of you may meet
this problem and already solve it. Hope you can share with me. Thank
in advance.
I am new for developing application with Phonegap in Android. Now I
face a problem, so i am seeking for some helps. The problem is that I
cannot play the video file (.mp4) in Phonegap application in Android
by using <video> tag of HTML5. I believe that some of you may meet
this problem and already solve it. Hope you can share with me. Thank
in advance.
--
>> >> > For more options, visit this group at
>> >> >http://groups.google.com/group/phonegap?hl=en?hl=en
>> >>
>> >> > For more info on PhoneGap or to download the code go
>> >> > towww.phonegap.com
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "phonegap" group.
>> > To post to this group, send email to phon...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>> >
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "phonegap" group.
>> To post to this group, send email to phon...@googlegroups.com
>> To unsubscribe from this group, send email to
>> For more options, visit this group at
>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>
>> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
I am also stuck with this. Using WebIntent (Phonegap Plugin) Created Intent to Started Activity to MediaPlayer Demo(This is a droid Activity) and passed Url in intent.putExtras . Able to play the Url video in the media player. Once the video is played. In surfaceDestroyed method called finish method. onDestroy method is getting called, player is getting released, but in the foreground blank window is displayed still. Have to manually press the back button to go to the app. Is there any way to close the called Media Player and return to app automatically once the video is completed. Any help in this is greatly appreciated.Actually we used jwplayer to play video. It was working in iPhone, Safari and Android browser, but the same is not working in Android phonegap. Since it is not working tried the above alternative. So in Android 2.2 using Web Intent directly opened the Url , where it prompts for Movies/Internet and selecting Movies it plays the video, but in Android 2.3 and above it is opening the Url into the background and the app is getting stuck so instead of calling Url directly via intent, called the Media player. It is playing video but once played not able to come back to app automatically.
Following up on the problem Sreylin has posted.
We're developing a magazine (an app version of www.lifeofandroid.com)
app using PhoneGap. Great tool btw.
We'd love to put some of the video reviews into the magazine so that
they play in the app (without launching a browser).
I've looked everywhere for advice on how to do this within the
phonegap wiki, google group but haven't found anybody who has done
this yet on android. There are quite a few discussions on video on
iPhone.
Anyone got this working yet and would care to share the advice?
thanks in advance
Roger