Questions tagged [playback]

Playing a sound or a video from an existing audio or video file or stream.

Playing a sound or a video from an existing audio or video file or stream.

1540 questions
8
votes
4 answers

How to calculate FPS in OpenGL?

void CalculateFrameRate() { static float framesPerSecond = 0.0f; // This will store our fps static float lastTime = 0.0f; // This will hold the time from the last frame float currentTime = GetTickCount() * 0.001f; …
Mzq
  • 1,796
  • 4
  • 30
  • 65
8
votes
2 answers

Playing audio backwards

Hi I'd like to play audio backwards in Android. How do I accomplish it? Any pointers will be appreciated. Thanks.
Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155
8
votes
0 answers

detect when playback controls are on the screen

I want to display a banner in the lower third an AVPlayer. I am trying to detect when an AVPlayerViewController's playback controls appear and disappear from the screen so I can hide the banner accordingly.
8
votes
1 answer

How to play music in loop in libgdx?

I created the music in on create like this: music_background = Gdx.audio.newMusic(Gdx.files.internal("background_music.mp3")); music_background.setLooping(true); the problem that its not playing in loop. I also tried without the loop and instead…
Alex K
  • 5,092
  • 15
  • 50
  • 77
8
votes
2 answers

MediaPlayer stops playing the sounds - Android

Here is a simple piano app and it works but there is a problem. After about 20 clicks (sometimes it is exactly 28 clicks) even I click the buttons it doesn't play any sound. The app doesnt crash or doesn't warn me about anything. It is just nothing…
user3633876
  • 117
  • 3
  • 9
8
votes
1 answer

how to play a video using the videoView and an inputStream

it seems that the videoView supports only a few methods for playing video , but none of them susports the most generic form of playing, which is quite odd (since i thought that all other methods use it). my question: how can i set the videoView to…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
8
votes
0 answers

Taking over Audio session

My app supports either Audio from an external music app (like Pandora) or playing from within the app, using an AVPlayer to play AVPlayerItem from iPod library. In my AppDelegate, I call: - (BOOL)application:(UIApplication *)application…
eric f.
  • 906
  • 2
  • 9
  • 17
8
votes
2 answers

how to play chunks of mp3 bytes from sql server, transferred to desktop client (by wcf) using C#?

I have "chunks" of audio(in mp3 format) on a sql database i.e, you can imagine a mp3 file ,divided to equal size of chunks and each chunk is saved on a record on a sql server db. these chunks are returned to the desktop client(s) via a WCF service.…
Arash Mhd
  • 93
  • 6
8
votes
1 answer

AUGraph Record and Play with RemoteIO and MultiChannelMixer

i have a Problem ;) i want to record Audio from the Mic and Write it to the Filesystem with Extended Audio File Services and also play the recorded Stuff. if i only use the remoteIO with two callbacks one for read one for write it works. For the…
Werewolve
  • 2,448
  • 5
  • 24
  • 38
8
votes
3 answers

Play sound file when image is clicked

I am not a native HTML programmer, so please don't jump all over me about this simple question. I have an image that, I am displaying using the following code:
Prajoth
  • 900
  • 3
  • 12
  • 26
7
votes
2 answers

Play/Pause HTML5 video using Jquery

I would like to play/pause video using jquery. Here is my code: (function ($) { // plugin definition $.fn.htmlvideo = function (options) { // build main options before element iteration var defaults = { theme:…
coder
  • 13,002
  • 31
  • 112
  • 214
7
votes
1 answer

android: using default video player

I have an application that plays video files. I have been using code for using Videoview and starting the Videoview manually to play video files. However, I just wanted to know if I can use the default media player or video player of android rather…
Farhan
  • 3,206
  • 14
  • 49
  • 62
7
votes
2 answers

How to mix multiple PCM streams using ALSA

I have two different streams of PCM samples. Is it possible to somehow mix them and play with ALSA on the same output device? I read it may be possible using the mixer but I'm finding it difficult to understand given the lack of documentation. Could…
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
7
votes
0 answers

Does Google publish IP addresses used for Play Store app testing?

I have an app in Google's Play Store that had an update rejected recently and the app subsequently pulled. We've corrected the issues, at least I think we have, but Google can't test the app because they keep receiving access errors. I believe these…
mpardue
  • 71
  • 1
7
votes
2 answers

How can I tell if a video file is corrupted? FFmpeg?

I am trying to find out if a video file is corrupted or not. I am using FFmpeg to transcode a video file. However, when it gets to a file that not playable and is damaged, it stops running. I want to know if there is a way to output the FFmpeg…
A Person
  • 441
  • 7
  • 19