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
9
votes
2 answers

Trying to record from microphone and playback in real time

I'm trying to record data from my microphone and then play it back through the speakers in real time, and with some delays, but I'm having some problems with it. I chose to use python and alsaaudio, and my current script I'm having problems with can…
src
  • 115
  • 3
  • 7
9
votes
1 answer

Dynamically control HTML5 audio with JavaScript

I've got a gallery of sorts with 10 or so thumbnails that each represent one song. To control the playback of each, I've set a play button to fades in via jQuery. After some digging around Apple's Dev Center I found some native JavaScript to control…
technopeasant
  • 7,809
  • 31
  • 91
  • 149
9
votes
2 answers

How to make audio player with play/pause button and seekbar in recycleview

I need some help, I want to make a recycle view containing audio in each item, how to play the audio when press play button and set progress to seekbar and at the same time pause other sound and convert the play button to play mode in all row except…
9
votes
3 answers

How to get redirector.googlevideo.com link from a Google drive video

I have a google drive video file (like https://drive.google.com/file/d/FILE_ID/view) and I want to get its redirector.googlevideo.com link. How do sites like http://api.getlinkdrive.com/ do it? I've tried using the Google Drive REST API, (both v2…
chenophucu
  • 91
  • 1
  • 1
  • 3
9
votes
2 answers

ffplay - change playback speed without re-encoding

I have some .264 video files that I would like to view at half playback speed, without encoding them into a new file. I remember using ffplay to do this in the past, but it was some time ago, and I can't seem to be able to do it now. From lots of…
Timothy Tan
  • 93
  • 1
  • 1
  • 3
9
votes
6 answers

Post code that plays a Christmas tune

Is there a way to play a Christmas tune on a PC or Mac without having a pre-recorded sound file? (No .mp3 or .wav or whatever-sound file) I remember on my TI 99/4A and Apple II sounds (resembling music) could be played. Not sure if modern…
user21826
  • 3,524
  • 5
  • 28
  • 28
9
votes
4 answers

How to play InputStream of an audio file that's not within a url or storage?

Background I've succeeded uploading an audio file (3gp) into Google-Drive. Now I want to be able to play the file within the app. The Google Drive API only allows to get the input stream of the file that's stored there. The problem All MediaPlayer…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
9
votes
0 answers

AVPlayer cannot resume upon Wifi drops in iOS 8

I'm using AVPlayer to play streaming video. When Wifi drops and later enables, I see that AVPlayer cannot resume, no matter how many times I call AVPlayer play, and its currentItem 's duration is NaN, seekableTimeRanges is empty. This is not the…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
9
votes
3 answers

Playing MP3 files with Python

I'm trying to write my own media player (like Foobar), and I'm having trouble tracking down a Python library that'll play MP3s. I know Pymedia does mp3s, but it looks outdated - the latest installer is for Python version 2.4, and I'm using 2.6. I've…
Enrico Tuvera Jr
  • 2,739
  • 6
  • 35
  • 51
9
votes
3 answers

Why call to CFRunLoopRunInMode() in Audio Queue Playback code?

I'm following the iOS "Audio Queue Programming Guide - Playing Audio". Near the end of the guide, there are calls to CFRunLoopRunInMode() in the step Start and Run an Audio Queue: do { // 5 …
Daniel S.
  • 6,458
  • 4
  • 35
  • 78
9
votes
4 answers

Auto play and stop html5 audio with jquery

i have a little problem. I have a facebook like box window on overlay. This box hide when user click like - obviously. I wanna to use audio element when this window is visible and stop audio when this window will be hide. So this is my html and…
Lukas
  • 7,384
  • 20
  • 72
  • 127
8
votes
2 answers

Play mp3 sounds from SD card

I have a directory on my tablet's SD card called "/Android/data/com.example.android.app/files". I just created it manually because I don't know how else to test this aspect of my app. I have filenames stored in a sqlite database like…
Metallicraft
  • 2,211
  • 5
  • 31
  • 52
8
votes
1 answer

Play Integrity local verification

I am trying to integrate the play integrity check in my app to make sure that my app is not installed on a rooted Android device. I can successfully obtain the integrity token response as guided in the google document. But I am trying to verify it…
Prabakaran
  • 537
  • 2
  • 16
8
votes
4 answers

Android 2.1 Detect Bluetooth audio connect/disconnect

I'm scratching my head trying to find a way to detect bluetooth headset connect and disconnect events for Android 2.1. I see in API Level 11 that there are some explicit ones, but how do I do it in API level 7? I just want to know when the user…
rustyshelf
  • 44,963
  • 37
  • 98
  • 104
8
votes
2 answers

Play and pause one HTML5 audio element at a time via jQuery

I've got several HTML5 audio elements on a page and am using jQuery to play and pause them. The play and pause functions work appropriately, but the tracks can all be played at the same time. How can I rewrite this code so that only one song can be…
technopeasant
  • 7,809
  • 31
  • 91
  • 149