media-player

Reverse video playback through ffmpeg

ぃ、小莉子 提交于 2021-02-18 18:02:14
问题 I am implementing a video player using ffmpeg multimedia framework. I am able to achieve play, pause, increase speed, decrease speed, forward seek, backward seek functionalities. But reverse playback of the video is not so smooth, it stutters a lot. Please help me in understanding video reverse playback. What is the better approach for this? Is there any other multimedia framework which support reverse video playback? Many thanks in advance. 回答1: So, first, some framing of this issue. FFmpeg

How load songs from special folder on sd card in my listview and play it?

巧了我就是萌 提交于 2021-02-10 22:21:48
问题 I want to load songs from my custom folder which I made on sd card and play it in via my App. the path of this folder is on: /sdcard/Music/MyFolder Now I have a code which loads all music which is located on the sc card. This code is working. But I dont want all music from sd card, I just want the songs in my folder MyFolder Here's the code I have now: private String[] getAudioList() { final Cursor mCursor = getContentResolver().query( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String[]

How load songs from special folder on sd card in my listview and play it?

两盒软妹~` 提交于 2021-02-10 22:19:53
问题 I want to load songs from my custom folder which I made on sd card and play it in via my App. the path of this folder is on: /sdcard/Music/MyFolder Now I have a code which loads all music which is located on the sc card. This code is working. But I dont want all music from sd card, I just want the songs in my folder MyFolder Here's the code I have now: private String[] getAudioList() { final Cursor mCursor = getContentResolver().query( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String[]

(UWP) How to activate the “Taskbar Miniplayer” like in Groove

你离开我真会死。 提交于 2021-02-07 20:17:30
问题 I use the BackgroundMediaPlayer for my App to play Audio in the Background. Now i see these buttons: How can i activate them? 回答1: In order to make the media controls from the taskbar to work, you need to load and configure the SystemMediaTransportControls from the foreground application AND the background task. If you are doing it only from the background task, the controls will be displayed but they will remain disabled. In your foreground application, you should have the following code:

(UWP) How to activate the “Taskbar Miniplayer” like in Groove

安稳与你 提交于 2021-02-07 20:15:37
问题 I use the BackgroundMediaPlayer for my App to play Audio in the Background. Now i see these buttons: How can i activate them? 回答1: In order to make the media controls from the taskbar to work, you need to load and configure the SystemMediaTransportControls from the foreground application AND the background task. If you are doing it only from the background task, the controls will be displayed but they will remain disabled. In your foreground application, you should have the following code:

Codenameone MediaPlayer generates 'can't play this video' error on Android how do i intercept the dialog so it fails silently

做~自己de王妃 提交于 2021-02-07 10:44:10
问题 My codenameone project has a mediaPlayer which plays videos once they are downloaded, in some instances when the network breaks the video is still saved on the device even though it is corrupt and when the player tries to play this video i get the 'can't play this video' dialog. How can i intercept this so it doesnt show the dialog and i can handle the error in the background, my code for the media player is below video = MediaManager.createMedia(videostream, "video/mp4", new Runnable() {

Use of sound files in TTS on Marshmallow (Android 6) fails with permission issues

杀马特。学长 韩版系。学妹 提交于 2021-02-07 06:48:31
问题 Using addSpeech() in android TTS, you can link a certain text to a sound file. Then, the TTS engine plays the file instead of synthesizing the sound of the text (also in question at Android TTS(Text to Speech)'s addSpeech() and speak() can't play a sound file in the external storage from marshmallow(api 23) above, with Google TTS ). This is not working in Android 6.0 with TTS version 3.9.14 (and 3.10.10). So far, I did not see ant post with an answer as to why this is not working in Android 6

Android media player: streaming audio file from HTTPS Url

自古美人都是妖i 提交于 2021-02-07 04:17:01
问题 I have to stream an audio file from Android media player from an application. Initially the file to be streamed was coming from a Http:// url and for which I was Using code- public void playSample() { AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { @Override protected void onPreExecute() { mediaPlayer = new MediaPlayer(); } @Override protected Void doInBackground(Void... arg0) { try { try { mediaPlayer.setDataSource("http://an.http.url/"); mediaPlayer.prepare();

Android media player: streaming audio file from HTTPS Url

别来无恙 提交于 2021-02-07 04:15:17
问题 I have to stream an audio file from Android media player from an application. Initially the file to be streamed was coming from a Http:// url and for which I was Using code- public void playSample() { AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { @Override protected void onPreExecute() { mediaPlayer = new MediaPlayer(); } @Override protected Void doInBackground(Void... arg0) { try { try { mediaPlayer.setDataSource("http://an.http.url/"); mediaPlayer.prepare();

How do I create a custom media player to play a custom codec in Android?

≯℡__Kan透↙ 提交于 2021-02-05 20:30:32
问题 n00b here (first Android project). I have been given a custom video codec that has been integrated with an Android firmware build. It's an .so file containing a class that inherits from MediaPlayerInterface, as well as a custom MediaPlayerService implementation to return instances of the custom codec class from the create() factory function for the appropriate file types. I want to use this codec as part of a video player application that can be installed on phones that do not contain the