media

Display Media Uploader in Own Plugin on Wordpress 3.5

落花浮王杯 提交于 2019-12-08 06:37:47
问题 I have little problem with Media Uploader in new WordPress 3.5. I created own plugin which is upload the picture. I'm using this code JS: <script type="text/javascript"> var file_frame; jQuery('.button-secondary').live('click', function( event ){ event.preventDefault(); if ( file_frame ) { file_frame.open(); return; } file_frame = wp.media.frames.file_frame = wp.media( { title: 'Select File', button: { text: jQuery( this ).data( 'uploader_button_text' ) }, multiple: false } ); file_frame.on(

Media file in wrong encoding

喜夏-厌秋 提交于 2019-12-08 05:15:32
I am inserting a media file for a tutorial. I added a raw folder and copy pasted the media file in the raw folder. i see an error that saws "File was located in the wrong encoding: 'UTF-8" I can run the app smoothly but it never plays my media file. I tried to reload the encoding but it causes my app to mysteriously return to my phone's home screen. Please help. I also tested this on a different project and i managed to get 1 song to work. However the other songs still are in wrong encoding and when I try to reload it, android studio freezes for a while. If it helps this is where I got my

Phonegap Media record mp3 file corrupt

末鹿安然 提交于 2019-12-08 05:13:51
问题 I am using phonegap media to record audio as mp3. After recording, it plays fine on my Android and plays fine on Windows Media Player. However, when I try it in the browser it says that the file is corrupt. Exact errors: Chrome: "We cannot play this audio file right now." Firefox: "Video can't be played because the file is corrupt." IE: Opens the file in WMP and it plays. I used the code from the example. http://docs.phonegap.com/en/2.6.0/cordova_media_media.md.html#media.startRecord //

Processing dynamic MP3 URL

99封情书 提交于 2019-12-08 05:06:36
问题 I am using Yahoo Media Player for playing MP3 songs on my website. I have put some static MP3 links on site. For e.g. <a href='1.mp3'>Song1</a> <a href='2.mp3'>Song2</a> And I have put the YMP JavaScript API code also. Now, I want to load the songs dynamically... For example if user clicks on a button I want to load a complete new play list to the player. //Something like this var clickEventHandler = function(){ YMP.removeAllSongs(); YMP.addSongs(mp3_links); YMP.play(); } 回答1: This may help

Phonegap app playing mp3 using Media plugin does not work

最后都变了- 提交于 2019-12-08 04:18:19
问题 I've developed file reader in phonegap with following path: var defaultPath = 'file:///storage/sdcard0/'; So i'm able to list all file on sdcard and select one folder with audio files to load. So my list of audio files looks like: i[1] = 'file:///storage/sdcard0/Download/audio/file.mp3'; i[2] = 'file:///storage/sdcard0/Download/audio/file1.mp3'; Then I try to init song using Media plugin ( installed ) with following piece of code: var media = new Media(i[1]); media.play(); But audio does not

Asynchronous MFT is not sending MFTransformHaveOutput Event(Intel Hardware MJPEG Decoder MFT)

落爺英雄遲暮 提交于 2019-12-08 04:14:16
问题 I'm developing USB camera streaming Desktop application using MediaFoundation SourceReader technique. The camera is having USB3.0 support and gives 60fps for 1080p MJPG video format resolution. I used Software MJPEG Decoder MFT to convert MJPG to YUY2 frames and then converted into the RGB32 frame to draw on the window. Instead of 60fps, I'm able to render only 30fps on the window when using this software decoder. I have posted a question on this site and got some suggestion to use Intel

Incoming voice not getting recorded in Samsung S7, S8 and Gionee A1

我们两清 提交于 2019-12-08 00:35:17
问题 I am using this link to record voice when there is any incoming call. Link Url this approach works fine with all device except when i run this code on Samsung S7 , S8 and Gionee A1 The voice of the other side is not getting recorded. 回答1: Please use this code below to achieve this it works well on all devices. import java.io.File; import java.io.IOException; import java.lang.Exception; import java.util.Date; import java.text.SimpleDateFormat; import android.os.IBinder; import android.app

audio streaming server

▼魔方 西西 提交于 2019-12-08 00:10:36
问题 I'm a php developer, trying to develop a website to stream on-demand music to the users. After a lot of googling I'm confused about which kind of server or tools should I use? I've seen some like WOWZA or SHOUTCAST, but I don't know which one is the best for my needs. I want to provide high quality audio files. So maybe I should use 320kbps mp3 format or something else but with the same quality. I don't need live streaming. I just need on-demand streaming of the music files and the ability

Cordova Media Plugin breaks HTML5 Audio tag on iOS

我的梦境 提交于 2019-12-07 23:29:40
问题 I am working on an Ionic Application and now facing a curious issue. On a view, i can record audio. On that same view i have many HTML5 audio tags. The audio tag works well until i launch a record. Once startRecord is executed, i can't play the HTML5 audio no more. The play button doesn't do anything. The recorded audio is well recorded and restarting my application, i can play it, as for the other audio on the page. I don't have that problem on Android. I do every thing well i think (i have

MediaCapture StartPreviewAsync fails

為{幸葍}努か 提交于 2019-12-07 22:21:20
问题 I am trying to start video preview capture from the camera in my UWP app but StartPreviewAsync throws an exception Sample Code: MediaCapture mc = new MediaCapture(); await mc.InitializeAsync(); await mc.StartPreviewAsync(); 回答1: This error occurs because currently StartPreviewAsync requires a sink to output frames to. This can be fixed by creating a capture element in xaml to display the frames. <CaptureElement Name="captureElement"/> now code can be updated to display the preview to the