media-player Questions

5

Solved

I have two displays. I want to make a media player and I want to play video full screen on my secondary display. So I’m trying to make a media player using WPF Here is the code so far I wrote Sc...
Glimp asked 2/4, 2012 at 6:56

3

Hey there community I was wondering if is possible to create a program that allows for the user to Drag a file from anywhere on there hard drive (the desktop, documents folder, videos folder) and d...
Emogeneemollient asked 12/9, 2015 at 1:3

1

Solved

I have a issue, not being able to import MediaPlayer in my JavaFX project. I am using IntelliJ with a Maven build, JDK 17 .. I updated the Maven dependencies and I have the JavaFX plugin installed,...
Agraphia asked 15/11, 2021 at 15:34

10

Hello I am develop video player with android gallery. I receive URI from gallry. and I need to display video title, when play video. so if content has not title meta data. I need to disaplay video ...
Siftings asked 24/11, 2010 at 2:35

17

I have android G1 firmware 1.6, I am trying to record voice from the app with the follow code. MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC...
Cambridge asked 23/9, 2010 at 21:48

4

Solved

How do i use the OnCompletion listener for some music? I would like to press a button to go to another activity that plays some music and then goes back when the music playback is finished. I allre...
Perambulate asked 1/4, 2012 at 8:34

4

Solved

I am trying to play a sound file in my WPF application. Currently I have the following call: private void PlaySound(string uriPath) { Uri uri = new Uri(@"pack://application:,,,/Media/movepoint.wa...
Aylward asked 28/2, 2013 at 20:39

4

Solved

I am working with the mediaplayer class in android studio. I simply want to fade out one sound and fade in the other sound instead of using setVolume(0,0) and setVolume(1,1). I have created two m...
Dissociation asked 14/7, 2016 at 17:23

13

Solved

I have two different videos which I'm trying to load into a VideoView using videoView.setVideoURI(Uri.parse(url)); The two videos, let them be video 1 and video 2, have the following specs (ext...
Traditor asked 18/7, 2012 at 11:17

4

Am trying to play a video stored in the internal storage in Android. However, no matter what I do it keeps coming back with either a -1 error or a -38 error. Both seem to be rather generic errors h...
Infection asked 15/5, 2012 at 11:55

3

I'm using this code below to play an audio file in android MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setDataSource("fileSourceHere"); mediaPlayer.prepare(); mediaPlayer.start(); I...
Jacey asked 15/4, 2012 at 6:42

3

Solved

I copied song.mp3 to my project's assets directory and wrote this code: private MediaPlayer mp; Uri uri = Uri.parse("file:///android_asset/song.mp3"); mp=MediaPlayer.create(this, uri); After r...
Shulins asked 22/6, 2010 at 13:33

5

Should I use AudioTrack, SoundPool or MediaPlayer if I need to be able to: play multiple audio files, with different duration, like 5 to 30 seconds. set the volume independently for right / left c...
Thundering asked 23/11, 2012 at 10:25

3

Solved

I am writing a media player and i would like to have a progress bar showing the progress of the song. I found the ProgressBar class, but all i can get on the screen is a circular spinning icon. wha...
Margaritamargarite asked 3/6, 2010 at 15:23

2

Solved

Hi I want to display player position and player duration in simple date format. that is. 00:00:01/00:00:06. The first part is current position of the player and the second part is the duration. I...
Windtight asked 5/4, 2011 at 8:2

3

Solved

I'm writing a simple game and trying to play sounds but I can't get it to work when I create the Media object it throws IllegalArgumentException. I'm not much of a Java coder and any help will be a...
Janot asked 18/3, 2014 at 20:15

6

Solved

I am working on an app with recorder and player. I am using mediaplayer to play the recorded .wav file and meantime I want to update to a seekbar. Everything is working fine But my problem is media...
Zworykin asked 19/7, 2013 at 9:21

2

Solved

I am trying to play an audio file from the internal storage. The code I used is.. package com.abhi.firstapp.firstapp; import android.content.Context; import android.media.AudioManager; import and...
Infallibilism asked 29/1, 2016 at 7:47

6

Solved

I have implemented an activity that plays media from a URL in Android. In order to add pause functionality when a call is incoming I created a receiver that sets a variable when the call is coming...
Bright asked 10/4, 2011 at 7:58

6

Solved

I am trying to figure out how to have a progress bar that says "Loading. Please Wait..." while my media player prepares a streaming file. What occurs now is that it displays after the song is prepa...
Daleth asked 25/6, 2011 at 1:0

2

Solved

I'm working on some music analysis using the Visualizer class on Android 2.3.1. I am finding that the FFT and waveform magnitudes are affected by the volume of the device. This means that if the us...
Ratsbane asked 8/11, 2011 at 10:3

6

Solved

I've got to be missing something obvious here, but I can't seem to find anything to allow me to determine when MediaPlayer is buffering audio. I'm streaming internet audio and I want to display a b...
Circumrotate asked 16/12, 2010 at 21:22

11

Solved

About the params, what do I need to do to make the player make no sound and to make full sound.
Tetragonal asked 7/3, 2011 at 3:17

3

Solved

What are the advantages/disadvantages in placing a lengthy network access code in a thread in an activity or a thread in a service? How would it affect the application? I am writing a streaming aud...
Arce asked 13/4, 2010 at 21:24

3

Solved

How can I set the tint color of a MPVolumeView? I see the method: setMinimumTrackTintColor: and the property minimumTrackTintColor however using either of those throws an exception. I was...
Afterglow asked 10/5, 2014 at 5:26

© 2022 - 2025 — McMap. All rights reserved.