playback

mux raw h 264 to an mp4 file, some odd errors

删除回忆录丶 提交于 2019-12-23 02:01:33
问题 What I'm doing is on an IOS app with Xcode 7.3. I got h264 data from an ip camera using UDP,the data can be decoded and displayed rightly (decoded by ffmpeg). Now I want to mux the raw H264 data to an mp4 file(some users may want to record what they are watching on his cell-phone), using ffmpeg. Nothing wrong happened when the code is running, and the result file can be played normally with QuickTime on my computer. But when played on iphone with iphone's default video player, it can't be

mp3 website player with synchronized playback (not streaming)

柔情痞子 提交于 2019-12-21 18:30:46
问题 Want a player (easy enough to put up) that plays back a directory of mp3s in such a way that if you join at 3:33:33 pm, you hear what others hear, not track one. like a pseudo broadcast/stream. how do i achieve that - what looks nice / is probably minimizable / is easy? i am trying to use mirvling but no such luck. any ideas? 回答1: It's unlikely you're going to find something to drop in place. Plus, this isn't typically handled on the client side of things. You neglected to specify what

Android Media Player Wont Play After Stop

只愿长相守 提交于 2019-12-21 12:15:02
问题 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 stops, but then i want to play some other song, or same song again, nothing happens. Please help. public class glavna extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate

How to play video in VideoView?

和自甴很熟 提交于 2019-12-21 05:19:06
问题 I want to play video in VideoView . When I try to do that I got the following error: Here is my source code: package com.video.listitem; import android.app.Activity; import android.content.pm.ActivityInfo; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.widget.MediaController; import android.widget.VideoView; public class PlayVideo extends Activity { VideoView mVideoView;

How to calculate FPS in OpenGL?

空扰寡人 提交于 2019-12-21 04:21:28
问题 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; ++framesPerSecond; if( currentTime - lastTime > 1.0f ) { lastTime = currentTime; if(SHOW_FPS == 1) fprintf(stderr, "\nCurrent Frames Per Second: %d\n\n", (int)framesPerSecond); framesPerSecond = 0; } } Should I call this function in void play(void) or void display(void) ? Or it does

Playing Audio in .Net / C#

两盒软妹~` 提交于 2019-12-20 10:23:38
问题 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 commercial apps from Mac to PC). I've now worked my way through a couple of books and as an exercise to get more familiar with .Net (and C#) I've decided to have a go at converting one of my none commercial apps to .Net as a learning exercise and

IOS - Pause and Unpause Currently Playing Music

时间秒杀一切 提交于 2019-12-19 10:32:52
问题 I am working on a IOS app that I want to have the functionality to pause and unpause music that is currently playing through the ipod, just like the ipod's play/pause button. Is there anyway to do that through IOS? The only answers I have found for this is for dealing with songs and sounds played locally through the app. Any help would be fantastic. Thanks so much! 回答1: [[MPMusicPlayerController systemMusicPlayer] play]; [[MPMusicPlayerController systemMusicPlayer] pause]; 来源: https:/

MediaPlayer stops playing the sounds - Android

心已入冬 提交于 2019-12-19 09:07:25
问题 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 . There is no sound. Do you have any idea? package com.example.playaudio; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.view.Menu; import android.view.View

Change the playback rate of a track in real time on Android

我的梦境 提交于 2019-12-19 04:11:57
问题 I would like to know if somebody knows a library to changing the playback rate of a track in real time. My idea is to load a track and change its playback rate to half or double. Firstly, I tried with MusicPlayer but is was not possible at all and then I tried with SoundPool. The problem is that with SoundPool I can´t change the rate once the track is loaded. Here is the code I am using (proof of concept): float j = 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

How to record the user voice in Objective-C for iPhone

筅森魡賤 提交于 2019-12-19 04:10:19
问题 I want to record the user voice and then play it back after some time. Is there any way to do this in Objective-C for iPhone? 回答1: Use AVAudioRecorder for doing this. For more help see this tutorial. Hope this helps. 来源: https://stackoverflow.com/questions/1978698/how-to-record-the-user-voice-in-objective-c-for-iphone