media

Receive whatsapp voice message in Twilio

此生再无相见时 提交于 2019-12-05 02:51:35
问题 I want to receive voice messages from whatsapp with Twilio. The native voice message you can record with the mic next to the text input. When I send that message, I get the message in the webhook but it is empty and with no media. I took a look at Twilio log of that message and it says that: Twilio is unable to process the Content-Type of the provided URL. Please see the Twilio Markup XML Documentation for more information on valid Content-Types. So it seems that Twilio for WhatsApp does not

Android Media Recording using threads

坚强是说给别人听的谎言 提交于 2019-12-05 00:54:20
问题 I am developing an android application that simply start and stop recording using Buttons. I used threads. I created three classes.. One to start recording.. one to stop recording and the main class.. The problem is that I can see the file in my mobile but it is empty and the mobile give me a msg "Unable to play video" .. I want it to work with the threads.. I dont want other methods.. This is my code The main class: public class MediaRecorderSampleActivity extends Activity { Button start;

Android SDK Mediaplayer.create randomly returns null

冷暖自知 提交于 2019-12-05 00:38:43
I am having an issue where occasionally the MediaPlayer.create method will return null, even though the audio file is definitely there. In fact, if I put the call to create into a while loop, the media player will eventually be created successfully. This only seems to happen on my phone (HTC Hero running 2.1) and never in the emulator. Is this just an issue with the phone? Or is there a different way I should be playing these audio files? Note that I want to be loading them dynamically which is get I am making the call to getIndentifer. If there is a better way of playing these dynamically

How do I insert an m3u playlist on a html page?

末鹿安然 提交于 2019-12-04 22:44:55
I want to play a m3u file songs in a player I am using the following player, but it's not playing: <OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" STANDBY="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="46"> <param name="fileName" value="songs/songs/1990/1990/enthiran/test1.m3u"> <param name="animationatStart" value="true"> <param name="transparentatStart" value="true"> <param name="autoStart" value="true"

.Net sdk for video editing like Windows Movie Marker

别说谁变了你拦得住时间么 提交于 2019-12-04 21:19:37
i am currently working on .net application which contains one audio & video file. audio file is split as in to small section as per database entries. then we have to merge this files on video file at specific positions.we what something like windows movie maker it will be nice if someone suggest some .net based sdk for this. You can use ffmpeg for this purpose. But you will need a .net wrapper to make it usable in C#. You can use ffmpeg-sharp or SolidFFMpeg . its a a wrapper library over the FFmpeg multimedia suite that provides easy to use wrappers for use in C#. Datastead Software's

Media Foundation MFTransform to convert MFSample from 'MJPG' to 'YUY2' or 'RGB24'

落花浮王杯 提交于 2019-12-04 20:46:00
Do anyone know what MFTransform should I use to convert a 'MJPG' MFSample to 'YUY2' or 'RGB24'? Any tip will be very appreciated. Thanks Since the number of visits to this post was noticeable I'm going to answer my own question. The trick is to enum all the transformations between MJPG and YUY2 since it seems there isn't direct transformation between MJPG and RGB32. To transform the image between YUY2 and RBG32 use the color converter DSP: http://msdn.microsoft.com/en-us/library/windows/desktop/ff819079%28v=vs.85%29.aspx I use this method to fetch samples from a 1080p webcam and then decoding

How to calculate microphone audio input power in decibel unit

喜夏-厌秋 提交于 2019-12-04 20:44:23
Please help me calculate decibels from phone microphone. The microphone has a getMaxAmplitude() function. How I can I use it to calculate decibels? I read in some forums that the decibel calculation formula is power_db = 20 * log10(amplitude / reference_amplitude) . But I don't understand how to find the reference_amplitude . Decibels are a unit widely used to define some quantity relative to something else. There are a number of different types of decibel measurements, depending on what you're trying to describe about the signal you're receiving. Read this link to get you started, it explains

using Windows Media Encoder to record screen

僤鯓⒐⒋嵵緔 提交于 2019-12-04 20:20:59
Is it easy to write some .Net code to record screen and audio (from computer mic), then output to an wmv file. Any reference code? BTW: I searched all codes from WME SDK, no such sample code. thanks! George Microsoft and the content mafi^H^H^H^Hindustry are trying their best to make this impossible. You will be far better of searching for "open source screen audio capture" than browsing any officially supplied documentation/example code - I would be seriously surprised if Microsoft provided anything relevant. Check out the SDK that's available for Techsmith Camtasia : Camtasia is a full-screen

susy, media queries, and lt IE9 [closed]

天大地大妈咪最大 提交于 2019-12-04 19:29:43
I was wondering what (if any) shims you use to get the magic grids to respond correctly in SUSY in IE8 and under? On non-susy sites I've always used moderizr or the shim from google and they worked as expected. I'm working on my first SUSY site and the media queries for the largest size won't kick in. http://dev.apehangar.com It's not clear to me what sort of "shim" you are looking for. I don't know any good way to make MQs work in IE8, but Susy does have an option to output styles under a fallback class . Those styles wont respond dynamically, but you can use it to send IE a desktop site:

extracting image from a video in java

天涯浪子 提交于 2019-12-04 17:53:20
i want to know how can i extract images from a video using JMF. Player player = Manager.createRealizedPlayer(cdi.getLocator()); player.start(); FrameGrabbingControl frameGrabber = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl"); ////////////////////////////// private Image grab() { Buffer buf = frameGrabber.grabFrame(); // Convert frame to an buffered image so it can be processed and saved Image img = (new BufferToImage((VideoFormat) buf.getFormat()).createImage(buf)); return img; } for more info see complete example: http://www.comp.rgu.ac.uk/staff/fh