Is there any gem out there that can interact with users webcam to capture video and audio and upload it to the server?
Have you heard about navigator.getUserMedia()? That could the trick. More info: http://www.html5rocks.com/en/tutorials/getusermedia/intro/
They talk about it in the Mobile Web Development course in Udacity (lesson 10).
https://www.youtube.com/watch?v=j6mzYt5fJpg
Have you tried headshot ?
I just tried it yesterday, but ran into some trouble with the flash player, not beeing able to set permissions for camera use
try it out, its easy to add to your application, maybe you'll make it work.
and better backup your files before.
Related
I need to replay guacamole replay file by html5.
But the only thing I can do now is to use guacenc to convert the playback file into a video and play it locally.
I tried to build a demo based on the secondary development of guacamole-example to realize the playback of the screen file.
Although I still don't know the principle of its implementation, it solves my problem very well.
I also tried the official demo, but there is a problem with maven dependencies.
I am using Howler.js on my PhoneGap application. Because my audio files are large (more than 10Mb) im an setting the buffer attribute to true (forcing HTML5 Audio).
var theSound = new Howl({
urls: ['assets/Sound.m4a'],
buffer: true,
sprite: {
scene0 : [ 1966000, 27000] }
When I test my application on the emulator and my iPad Mobile Safari everything works well. But when I run the application on the iPad as an app, the audio never starts. Using the web inspector I have noted that the audio file tries to load again and again like an not ending loop. You can see an attached screenshot of the resources tab on the web inspector both both the emulator and the iPad, running the same PhoneGap app.
Any idea on what could be the problem?
I've been looking into this for a while.
From what I've gathered, Howler defaults to Web Audio API, and this SO answer says you need a "user input event" to make it work on iOS, because by default it mutes everything. I even tried Howler's own interactive demo on my iPad 2 with iOS 5 (I still haven't updated) here and NONE OF THE SOUNDS WORK. My first link has a link to Apple's documentation, and I haven't tried it yet, but it looks like the convenience of Howler has to be replaced with a lower level implementation that takes about 5-10 lines with XMLHTTPRequest (see the Apple link), or another more versatile library. I'm still learning about what exactly I need, but I have a very similar problem I've been working on resolving today.
But then Howler falls back to HTML5 Audio. OK so I'm just googling that now, and this link comes up, and it's just reminding me of the pletora of compatibility considerations between OGG ACC MP3 etc on various browsers vs. browser layout engines vs. operating systems. So I'm left believing your file format M4A, related to MP3 as far as I can tell, isn't working in the target brower on the target iPad OS. I'm not familiar enough yet to give exact specifics but certainly since Howler doesn't work on my iPad that proves there's at least a problem with that.
The whole point I chose Howler to use was to abstract all the above away! I'm going to go look for another more comprehensive library now =D
the problem might be file size. IPad has a limited cache memory size and if you overflow it assets will not work. The only solution to this problem is smaller file size. Another possibility is html audio will not load or play except in a user event (touch). Web Audio will load but starts muted and only unmutes with a play call inside of a user event.
SoundJS is a library I help develop that handles as much of this stuff as possible. In particular I think you would find the Mobile Safe Approach useful. It is well tested on iOS and Android devices. Unfortunately we do not support sound sprites yet.
Hope that helps.
Using carrierwave or another file upload plugin, there should be an easy way to convert uploaded mp4 (H.264) video files to Apple HLS. You need this for streaming videos on mobile devices.
This way, while uploading 1 streaming video file you can support most of the browsers (every browser except Opera and FF for Linux/OSX).
It can be done with ffmpeg, is anyone working on a gem?
How about streamio-ffmpeg? It seems to support custom command line parameters. You could add then use parameters like from this answer: https://stackoverflow.com/a/10047372/759140
You might also give carrierwave-video a try. It's backed by streamio-ffmpeg and allows passing custom settings through.
I'm trying to use the Background Audio Player without success. The application works perfectly in the emulator but not on a Nokia Lumia 800. I've read the whole thread at: http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/394de7c4-4334-46f8-a01a-30b49c6ec242/ but this is not a codec issue.
What am I doing? I create an AudioTrack object with a remote server source URI and set it to the BAP instance. Then I call Play(). The player's state is going to "Playing" but no sound on the device.
What did I did to ensure that this is not a codec issue? I updated the code described above to first download the whole file from the remote server source URI and save it to the isolated storage. Then I created an AudioTrack object with the local file URI and got sound.
So, I suspect this is a buffering issue, as my player never change its state to BufferingStarted nor BufferingStopped. But, unfortunately, I don't know what I can do to help on this.
Any ideas?
Thanks a lot in advance,
Fabian
There is a great article about that kind of problem: http://www.johanpaul.com/blog/2012/09/wp75-backgroundaudioplayer-crashes/
I am trying to build an audio recorder and have 3 questions:
Is red5 enough for building an audio recorder? No need for a flash recorder or something?
How can I install red5 on heroku server?
Is there a tutorial for audio recorder in rails?
Simple answer - you can't.
The Heroku platform is 'as is' - you can only install gems as specified in your gemfile.
Uff, hard to tell, actually.
1) Is red5 enough for building an audio recorder? No need for a flash recorder or something?
Right, with "Red5" you have the streaming server. Then, you need recorder, in flash or another program that use the RTMP stream protocol. There are several examples in Red5 svn and here
2) How can I install red5 on heroku server?
You can try modifying the Red5 server java srcs (e.g. the ANT build to Maven) and upload it to the Heroku Java Cedar stack. I shouldn't be imposible to port to it.
3) Is there a tutorial for audio recorder in rails?
Don't know of any. Currently, I'm working on a rails app with video recording/playing capabilities using a Red5 server and Red5Recorder. If it works, I can post my experiences somewhere :)
Good luck