Questions tagged [playing]

Use [audio-playing] for questions related to playing audio with playbacks, and [playing-cards] for questions related to mimicking playing cards in questions. For questions related to playing videos, use [video-streaming].

This tag is deprecated! Please consider use of the following tags instead:

71 questions
14
votes
7 answers

Call method after 5 millisecond

How to call record method after 5 millisecond playing audio with MediaPlayer. I tried something like that but i don't know and i didn't find any good examples to end this. while(mp.isPlaying()){ if(record=0){ for(int i=0; i<5millisec;…
nedroid
  • 193
  • 2
  • 2
  • 7
5
votes
1 answer

Automatically Playing video in listview/scrollview similar to facebook

I need Video to play automatically in listview/scrollview, if view contains video. This is ver much similar with facebook. If user scrolls down and visible area contains video that system will play video and if still scroll then it automaticaly…
LuminiousAndroid
  • 1,557
  • 4
  • 18
  • 28
4
votes
3 answers

Playing Audio in the Background using Flutter

We have created an app using the flutter platform. Music plays fine, but we are struggling to get the app to play audio in the background on iOS devices. As soon as the user moves to another app or locks their phone, the music stops. Does anyone…
Greg
  • 61
  • 1
  • 1
  • 2
4
votes
4 answers

Android - How do I only allow one instance of MediaPlayer to play at a time?

I'm trying to create a simple Sound-board Android app, using ListView items as buttons. (Btw, I'm a novice programmer) The idea is that I press a button, and a specific sound file plays. If I press any button while a sound is playing, it should…
Goran
  • 41
  • 1
  • 1
  • 3
4
votes
0 answers

Zoom Playing video using AVPlayer

I am paying a m3u8 video url using AVPlayer Is it possible to zoom the video while playing the video. let url = URL(string: "http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8") let player = AVPlayer(url: url) let playerLayer =…
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
4
votes
2 answers

Android - play sound when device plugged in audio jack

I want to play audio file while I have a device plugged in audio jack (not necessary just headphones). If it helps I am only interested in Android version 4.3 and above and I am willing to root the phone if necessary. Here is what I have tried so…
Koc
  • 232
  • 2
  • 12
3
votes
2 answers

Playing a file in android mediaplayer

I want to play a video file recorded to be played in the mediaplayer of android.I want to call the media player through the intent and want to play the corresponding file of the passed uri.When I was trying I am getting an exception…
Sreedev
  • 6,563
  • 5
  • 43
  • 66
3
votes
1 answer

How can you play a sound of a specified duration using AVAudioPlayer on iOS?

I want to play a specified duration within a sound file on IOS. I found a method in AVAudioPlayer that seeks to the begining of the playing (playAtTime:) but i cannot find a direct way to specify an end time before the end of the sound file. Is…
Basem Saadawy
  • 1,808
  • 2
  • 20
  • 30
3
votes
1 answer

Playing offline encrypted videos in IOS

I am working on an application that needs to save videos in local and should be able to play them only through the app. I am able to encrypt the video files and store them in app's folder. But my concern is how to decrypt and play the video files? I…
Mans
  • 45
  • 5
3
votes
0 answers

Can't stream/play audio files in iOS recorded from Android

I'm streaming audio(.mp4) using StreamingKit in objective C(recorded in iPhone). It is streaming fine while playing audio from iPhone. However, when I receive an audio file recorded in android device(Samsung galaxy S4 & S5) it doesn't stream in…
Mughees Musaddiq
  • 1,060
  • 1
  • 10
  • 27
3
votes
2 answers

Playing Videos in Android Application without Youtube API

I am making an application in which I want to play online videos from sites like youtube, daily motion, vimeo, etc. The problem I am facing is that when I try to play videos from daily motion, the videos are not playing and the player replies with…
Sikandar Ejaz
  • 53
  • 3
  • 9
3
votes
1 answer

How to check whether mplayer plays a file or not?

I am trying to check if mplayer is playing an mp3 file. I currently use this line from python strace -p " + str(mplayer.pid) + " 2>&1 | head -n 200 | grep 'read(3' That is because I know that mplayer makes system calls when reading file from…
Vintage
  • 238
  • 1
  • 2
  • 13
2
votes
1 answer

IOS - Pause and Unpause Currently Playing Music

I am working on a IOS app that I want to have the functionality to pause and unpause music that is currently playing through the ipod, just like the ipod's play/pause button. Is there anyway to do that through IOS? The only answers I have found for…
user879702
  • 211
  • 1
  • 2
  • 5
2
votes
1 answer

Play stereo sound in AudioUnit using AUGraph in IOS

I want to play stereo sounds using Audiounit using AUGraph in ios but the problem that I am facing is "My sound is playing fast when i want to play in stereo mode on 48000 samplings rate".But it works fine for mono sounds(Single channel). Here is my…
2
votes
0 answers

How to show a status of "playing" and "silent" in flutter text to speech?

I have this program which transforms text to audio, it works without problem, but so far I have not been able to integrate and find information about showing a text that says "playing" and "off", so that when it plays it shows "playing" and vice…
Daniel Salas DG
  • 69
  • 1
  • 11
1
2 3 4 5