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
22
votes
3 answers

Android video streaming example

I want to implement video streaming in my project. So, is there any tutorial that works? Videos are stored at server side. So, to fetch video using URL and play it on Android. I tried some examples, but I got error, "Sorry, this video can not be…
user609239
  • 3,356
  • 5
  • 25
  • 26
21
votes
3 answers

MediaPlayer stop playing after about 5 seconds

I'm currently developing a simple game and now it's time to add music and sound effect. I tried using MediaPlayer, just like described here: Android media player bug However I have another problem, the MediaPlayer stop playing the music after about…
Den
  • 255
  • 1
  • 3
  • 8
18
votes
5 answers

playback video full screen

I am trying to play a video in my app. It has to be embedded. I went through the "Play Video Files in Android" thread. I am able to play my video using VideoView as mentioned in this discussion. But there are a few problems. I need full screen…
user189020
17
votes
2 answers

Video not playing on iOS10 Chrome

I just can't seem to locate what's wrong with this video snippet.
17
votes
5 answers

iOS how to don't stop music when the app start launching

I've noticed that when my app start, the music I'm listening is automatically stopped, and I've noticed that when I start some other apps, the music just continue... this means that I don't know how to manage the actual playing music in the device…
Adarkuccio
  • 973
  • 4
  • 12
  • 24
16
votes
7 answers

Black screen when returning to video playback activity in Android

I'm currently developing the android application ServeStream and I've encountered and problem that I can't fix. My application will stream music and video using the android MediaPlayer class. I've modeled my class after the example found…
William Seemann
  • 3,440
  • 10
  • 44
  • 78
16
votes
6 answers

How to play a video file in android?

I am placed video MP4 to my domain space. I have its public URL, Now i want to play it in my android app; but don't know how can I do this. I used following code which is not working. Track controller is moving but I can't see any video on…
zeeshan
  • 251
  • 1
  • 4
  • 14
15
votes
3 answers

iOS: Sample code for simultaneous record and playback

I'm designing a simple proof of concept for multitrack recorder. Obvious starting point is to play from file A.caf to headphones while simultaneously recording microphone input into file B.caf This question -- Record and play audio Simultaneously --…
P i
  • 29,020
  • 36
  • 159
  • 267
15
votes
2 answers

Youtube iFrame API setPlaybackQuality ignored on mobile device

I'm trying to setup YouTube iframe API to play a FullHD video with a lower quality. My goal is to save bandwidth on mobile devices and reduce loading time. My HTML structure is the classical player div, plus a debug div for messages. HTML
Giorgio
  • 1,940
  • 5
  • 39
  • 64
15
votes
2 answers

How to simulate hardware media control buttons on an Android emulator

Android supports hardware play / pause buttons on headsets and attached devices. I am trying to find a way to test support for those devices on an emulator. The Android documentation talks about how to add support for hardware playback controls,…
Tad
  • 4,668
  • 34
  • 35
14
votes
4 answers

Playing Audio in HTML

I want to play a mp3 audio file in HTML. I don't want to display the whole player with controls like Volume etc. I just need a play/pause button, Designed by me, not the core design of some player, like yahoo player, or google one. For example the…
Sohail
  • 2,058
  • 7
  • 33
  • 57
14
votes
2 answers

How to dynamically change the playback rate of video in iOS?

The perfect example of what I am trying to achieve can be seen in the Flow ● Slow and Fast Motion app . One can change the playback rate of the video by dragging points on the curve up or down. The video can also be saved in this state. I am…
user7404038
14
votes
7 answers

Play background music in all activities of Android app

I spend about 20 hours until now and my problem there still is . I am creating an android application that has several Activities (mainMenu , aboutUs,setting). I followed the best answered of below link and that was O.K . Music played using…
Mojtaba
  • 382
  • 1
  • 3
  • 19
14
votes
4 answers

javascript pitch shift with time stretch

I'm a beginner learning javascript. I've got various projects in mind with an interactive page on my site related to microtonal frequencies and planetary frequencies. I need to be able to play my audio sample .wav file in a loop but have the audio…
GooseCode
  • 141
  • 1
  • 1
  • 3
13
votes
6 answers

cocoa playing an mp3

Is there an easy way to load, play and control an mp3 file from cocoa? Tried googling it, but, as all things apple, i get messy results and have no idea where to start. As i understand, there's and NSSound, but it has lots of limitations and then…
Marius
  • 3,976
  • 5
  • 37
  • 52