are we able to edit default media player of Honeycomb? - android

I'd like to add some functionality inside of default media player for honeycomb without making any other class that using mediaPlayer package from Android, such as showing the information for particular video by swiping the screen, etc. Is that possible? if not, there's no other way to make my own class for the media player :(

No, that is not possible: the default media player on Android can not be modified by third party code. If you want to build your own media player you can start by looking at this and in the platform samples, but you will need to do significantly more work to get a fully functional media player.

Related

Play Music In Calls

I'm working on an Android project.
its a phone assistant and auto answers the phone and a pre-defined voice plays for the other party. But there is a problem that android doesnt allow us to play audio when a calling is in progress.
so i looked a lot and searched whole web and i found this answer:
https://stackoverflow.com/a/28000021/4254527
This Answer seems to be true. but i dont know how to crate a custom media player. so how can i create a custom media player that doesnt extends from android media player class and plays music during a call.

Android show animation when playing audio with media player

Currently I have implemented a simple audio player playing audio files from the device internal storage.
I was wondering if there's any way to implement some animation functionality to be shown as the media player is playing music, like the Windows Media Player does:
Could anyone point me in the right direction of implementing this? E.g, an external library or a tutorial on how to implement it yourself.
try this library:
Takes the input from the Android MediaPlayer and displays visualizations, like in iTunes or WinAmp
https://github.com/felixpalmer/android-visualizer
another one: https://github.com/carlosrafaelgn/FPlayAndroid

Play video with direct link on Android

I need to play a video with fullscreen when a user plays it.
Unfortunately, as far as I understand, if the HTML5 Video tag is used, Android plays it in-frame. So that tried webkitEnterFullScreen() and it seems to work(kind of...) but user has to click the play button again. Overall performance feels a bit clumsy and not sure if old OS like 2.0+ could handle it.
As an alternative method, I'm now trying to play video using direct link rather than the Video tag. For example, [a href="video.mp4"]Click to play[/a]. I think that it works well but the only problem is that it asks to choose a application either 'Video Player' or 'Browser'.
So my question is
How can I define using javascript to play the video using Video Player, so that the selection dialog won't prompt?.
What is the native video player for Android? For example, iOS uses Quicktime and it is possible to embed video using Quicktime object. And are there any equivalent method for Android?
When the Video tag is used, how to play video simultaneously with fullscreen?
try following code :
String path1="/path/to/video/file.3gp";
Uri uri=Uri.parse(path1);
VideoView video=(VideoView)findViewById(R.id.VideoView01);
video.setVideoURI(uri);
video.start();
You have to realize something very important: There is no native video player for android.
There is a dozens players for android and it is not your decision but the users decision if he should use player A or B. Don't try to force Android users to iOS behavior, it really doesn't give a better impression.

what is the default media player in android?How we can make url to play video in default player of android?

I understand that all Android phones will have the WebKit browser Application. Is there a default Media Player? How we can make while clicking in url to play video in default player of android?is there any way to embedded code to play in android device default player?
Android Application SDK has MediaPlayer class for multimedia playback use case. You can directly use this class or can use VdeoView class.
Can refer to VideoView usage here.
Shash
just a note. If it is a Youtube video, the browser as it is already automatically detects that and offers the user to open the video in Youtube, or other video player the user might have installed.

android embed default audio player in app/activity

I would like to know if it is possible to embed the default audio player into one of my activities. Or at least be able to embed the section that has the play/pause button and the audio track seek bar.
The reason I would like to embed it rather than open it in a new intent (like this:
Intent audioActivity = new Intent(Intent.ACTION_VIEW);
audioActivity.setDataAndType(Uri.parse(getAudioURL()), "audio/*");
startActivity(audioActivity);
)
is that I want the users to be able to read some content within the current activity while listening to the audio. I have been able to use a progress bar which updates based on the progress in the audio track, but this does not look good and i would rather have the look and feel of the default audio player. I know the default video/audio players are not documented very well but if this is at all possible I would like to know. Thanks!
Hi, I would like to know if it is possible to embed the default audio player into one of my activities.
No, sorry.
First, there is no such thing as "the default audio player" as a single entity. Each device has its own "default audio player".
Second, even if there were a single universal "default audio player", there is no way in Android to embed some other application's UI into your own.
Or at least be able to embed the section that has the play/pause button and the audio track seek bar.
No, sorry. See above.
I think what you're looking for is MediaController. This answer has a good example of how to use this, though I'm not sure if it is possible to have the controls displaying all the time (they disappear after 3 seconds in the example):
How can I show a MediaController while playing audio in Android?
There's another discussion of it here:
How to implement an audio player for Android using MediaPlayer And MediaController?

Categories

Resources