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
12
votes
8 answers

Best way to implement game playback?

I'm creating a grid based game in Java and I want to implement game recording and playback. I'm not sure how to do this, although I've considered 2 ideas: Several times every second, I'd record the entire game state. To play it back, I write a…
Lucky
  • 4,787
  • 9
  • 40
  • 50
11
votes
1 answer

SDL: how to stop audio - not resume, which SDL_PauseAudio(1) does actually?

Developing iOS application which uses CoreAudio framework, I am dealing with IMHO nonsense behavior of SDL reg. playing audio. SDL plays audio in loop, and only way how to trigger playback is to call SDL_PauseAudio(0), and the only way how to stop…
lef
  • 1,196
  • 1
  • 9
  • 18
11
votes
3 answers

Find the Length of a Song with Pygame

I'm building an Radio Automation Program, but I can't figure out how to have a timer countdown the number of seconds left in the song. I'm currently using Pygame and don't really want to load another toolkit just for this. So far I can make a timer…
JRJurman
  • 1,615
  • 2
  • 19
  • 30
11
votes
4 answers

How to play video from NSData

I would like to know if it's possible to play a video from an NSData object... with the MPMoviePlayerController.
Sergio Andreotti
  • 913
  • 2
  • 8
  • 26
10
votes
9 answers

Background music Android

Okey, this is my problem. I have one service class where Ive managed to create media player to play music in background all time. Here is code: package com.test.brzoracunanje; import android.app.Service; import android.content.Intent; import…
Zookey
  • 2,637
  • 13
  • 46
  • 80
10
votes
2 answers

Cannot Link Existing Project to Google Play Console API

When I click on link existing project under API access on the Google Play Console, my existing cloud project does not show up.
1Legend
  • 101
  • 3
10
votes
5 answers

Playing Audio in .Net / C#

I'm an experienced MFC programmer of many years, who for the more recent years has been developing commercial apps in Objective C for Mac and iOS - I'm trying to get up to speed with .Net and C# (as I'm soon going to be required to convert one of my…
Richard Baxter
  • 1,317
  • 1
  • 15
  • 24
10
votes
1 answer

Trouble playing wav in Java

I'm trying to play a PCM_UNSIGNED 11025.0 Hz, 8 bit, mono, 1 bytes/frame file as described here (1) and here(2). The first approach works, but I don't want to depend on sun.* stuff. The second results in just some leading frames being played, that…
yanchenko
  • 56,576
  • 33
  • 147
  • 165
10
votes
4 answers

Fade Between Two Music Tracks in-progress in Pygame

My intention is to have two music tracks, which are similar in nature, fade between each other at various times. When such a fade occurs, one music track should fade from full volume to muted in a short period of time, and, simultaneously, the…
Southpaw Hare
  • 1,535
  • 3
  • 24
  • 50
10
votes
5 answers

Remove Big play button and show the bottom play menu

Is there any possibility to remove to middle play button at start (yes I know I could just remove the css class) and instead show the bottom play bar? Basically what I would like to achieve is to show the video (with poster image) and the play-menu…
Triphys
  • 123
  • 1
  • 2
  • 9
10
votes
6 answers

Toggle button visibility in android activity

I have an activity with two play and pause buttons (currently invisible) and a seekbar. When I press the play button, the pause button should become visible, and when I press the pause button it should turn invisible. How would I do that? import…
hossein
  • 123
  • 1
  • 1
  • 5
10
votes
3 answers

Android, How to play WAV file programmatically

I already have a .wav file in my directory. at the same time i need to play it together with a mp3 file. I used, String recordedFile = "/storage/sdcard0/PINOYKARAOKE/1373597371359.wav"; MediaPlayer recordedSong = new…
ceosilvajr
  • 185
  • 1
  • 2
  • 10
10
votes
6 answers

Android Media Player Wont Play After Stop

I have music playlist for 5 songs. I just want that play and stop buttons work as long as im in app. And that i can stop music when i want to and start another. How this works now...The music plays on PLAY button, and when i click STOP button it…
user2027663
  • 123
  • 1
  • 1
  • 5
10
votes
3 answers

C# How to programatically change the playback device

How can I programatically change the default audio device on a vista / win 7 system? Using C# or a Win API call?
JL.
  • 78,954
  • 126
  • 311
  • 459
9
votes
2 answers

How can I tell if an HTML5 Audio element is playing with Javascript

I have an audio element in a webpage, and I want to ensure that a user is not still playing it when they leave the page. How can I be sure the audio element is not playing when the page is unloaded? So far, I have the following code, but it doesn't…
Ky -
  • 30,724
  • 51
  • 192
  • 308