Questions tagged [pause]

Executing pause operations on application, game or process

Pause refers to a temporary halt in time for some execution of a process.

As an example, the pause command used in DOS will stop playing audio or video, with the possibility to continue in the future (in the case of video: with a still image).

It may also refer to hardware used to initiate a pause such as the Pause/Break key (the secondary function of the PgUp key on some computer keyboards) and the Pause key or symbol on media players.

598 questions
3
votes
0 answers

Swift, pause app with applicationWillResignActive

Swift 2.3, SpriteKit I know about AppDelegate Functions: applicationWillResignActive and applicationDidEnterBackground I have the following code: func applicationWillResignActive(application: UIApplication) { // Sent when the application…
3
votes
2 answers

How to hide the preview of the app when it's in the task manager

I make a game with Java and LibGdx It's a game of skill with a time limit, and the problem is the player can push home button to pause app, and go to task manager, and can see preview of app to seek what he has to find without counting time So, I…
Monir Hadji
  • 119
  • 3
  • 11
3
votes
1 answer

Pause current playing music in Swift on Mac

Is there a way to be able to access the same function that the F7, F8 and F9 keys on the Apple Keyboard have in Swift for Mac OS X as I want to be able to create a button that will either pause the current playing track in Spotify or iTunes and then…
user5535374
3
votes
1 answer

How to force AVPlayer to pause buffering when it is in paused state?

I'm using AVPlayer to play video. I use AVPlayer pause to pause the player. But observing with Charles shows that the stream segments are still being downloaded when the player is in paused state. I found AVPlayer buffering, pausing notification,…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
2
votes
1 answer

Cooperatively pausing async methods

I am using a Task for a long-running asynchronous processing operation that I want to be able to pause and resume at arbitrary moments. Luckily for me one of the TPL's own authors at Microsoft already came up with a solution to this problem. The…
2
votes
0 answers

Error when pausing a video - Uncaught (in promise) DOMException: The play() request was interrupted because the media was removed from the document

I have a next js app that has a slider which contains blog style posts - each post contains a video which is set up as a component. Users can load a new slider (list of posts) by clicking one of the menu buttons - which basically is handled by…
2
votes
2 answers

Python debugging - Spyder - Pause during execution

My python code is taking longer than expected to run. I am using spyder 5.2 and python 3.9. Is there a way to pause execution arbitrarily to check the line that is currently running and examine the variable explorer? I would like the variable…
CarlosH
  • 319
  • 1
  • 4
  • 8
2
votes
1 answer

Metronome JavaScript - function .pause() don't stop the Audio beep

I trying to do a metronome on Codepen. But I have one problem because the function .pause() doesn't stop the beep(my sound). This is the code that I wrote. I read about it but I don't find the problem. The audio I found on Codepen. I don't think…
2
votes
1 answer

Binding a key to a tkinter window, with exception of the entry field

Picture of my GUI for clarity I made a tool that plays audio from youtube. I want it to pause when the spacebar is pressed. I do this by this piece of code: win.bind('',lambda event:funcPP(player, btnPP)) win is my window, funcPP is the…
2
votes
2 answers

Unable to pause React audio

import { useState } from "react"; function Music(){ const [pauseToggle, setpauseToggle] = useState(false) const music = new Audio(require(`./Alan.mp3`)); console.log(music); let isPlaying = false; const player = () => { pauseToggle…
Shubham Singhvi
  • 304
  • 1
  • 10
2
votes
2 answers

Is there a efficient way in Julia to pause execution of a program until the next day?

Suppose I'm running a program and each day I want to pause the program after X iterations until the start of the next calendar day. The amount of time the program will have to be paused each day will vary because I do not know when X iterations will…
phntm
  • 511
  • 2
  • 11
2
votes
1 answer

Azure Devops - Test Run Managment : resuming in-progress test

Been trying to figure out how to resume an in-progress test in DevOps without any success. In screenshot 1, you can see that I have three tests that are in progress, but there doesn't seem to be a way to resume them. In screenshot 2, you can see…
crewex
  • 21
  • 4
2
votes
2 answers

How can I print a string and pause when there's a full stop or "..." in Ruby?

I'm trying to make a program in Ruby that prints text out and pauses both for every full stop "." or "..." in a string. I've got this so far but don't know where to take it next. def talk(text, speed = 0.008) pause = speed * 100 …
2
votes
1 answer

How can my Pause display work properly in Pygame?

So my pause display keeps returning after I click on the button which continues everything. This is included in the code: "def paused(): global pause clock = pygame.time.Clock()" while pause: for event in pygame.event.get(): if…
JaMoin2020
  • 23
  • 3
2
votes
1 answer

Way to wait until user deletes Matplotlib figure before adding more?

So I have a function that scatter-plots some data and does so by creating new figures. The maximum amount of figures allowed at a time is 20 to avoid memory overload. If the user wants to plot a data-set with 6 variables to be exact, then there…
notMyName
  • 690
  • 2
  • 6
  • 17