w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to open my apps audio player to play audio after clicking an audio link which is present in email?
Well you will need to register your own URL scheme for your app. Read Apples Implementing Custom URL Schemes on how to do this. But you can not make iOS prompt to install you app, since the OS does not know about you app. What you could do is always open a website which will try to open your by its URL sheme and it this fails present the use a webpage that offers them to download it.

Categories : Iphone

How to play an audio from content://Media
If you read Android developer webiste you will have your answer. http://developer.android.com/reference/android/media/MediaPlayer.html

Categories : Android

audio content type aacp
You have two problems. The first is that you are trying to load a playlist instead of the audio stream itself. If you hit that URL with cURL or wget, you will notice that the real stream URL is: http://sc1.flobbo.de:8128/stream/4/ Your second problem is that not all browsers can decode aacPlus. You will need to get a differently encoded streams for browsers that cannot decode it.

Categories : HTML

Audio.js audio player how to stop downloading audio file when started
To prevent an <audio> element from downloading on page load just set the preload attribute to "none". As for stopping the download after it has begun, you should be able to do that by simply removing the <audio> element from the page. The plugin you mentioned may also require you to run an additional command to clean up anything it added to the page.

Categories : HTML

Convert audio Linear pcm to mp3 ( using LAME ) Low ,Medium,High audio Quality setting
Try this, Low quality: AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication]delegate]; NSMutableDictionary *dictAudioQuality =[[NSMutableDictionary alloc]init]; [dictAudioQuality setValue:@"Low" forKey:@"audioquality"]; [dictAudioQuality setValue:@"11025" forKey:@"samplerate"]; [dictAudioQuality setValue:@"16" forKey:@"bitdepth"]; [dictAudioQuality setValue:@"120" forKey:@"bitrate"]; [dictAudioQuality setValue:@"1" forKey:@"channel"]; Medium Quality: AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication]delegate]; NSMutableDictionary *dictAudioQuality =[[NSMutableDictionary alloc]init]; [dictAudioQuality setValue:@"Medium" forKey:@"audioquality"]; [dictAudioQuality set

Categories : Iphone

Javascript/html5 play multiple audio files or overlap audio
Howler.js provides a good library for firing off cross-browser sound sprites for games, should do the trick!

Categories : Javascript

Program only runs audio from desktop and not audio in a package on netbeans?
You need to invoke a classloader in order to access files in your package. See here for API description. This is how it works: InputStream inaudio = getClass().getResourceAsStream("/audio/retrolevel.wav"); Clip clip = null; try { clip = AudioSystem.getClip(); clip.open(AudioSystem.getAudioInputStream(inaudio)); } catch (IOException | LineUnavailableException | UnsupportedAudioFileException e1) { e1.printStackTrace(); } clip.start();

Categories : Java

Knowing with PHP if the browser can play audio file with html5 audio tag
The only way to reliably detect HTML5 audio (and subsequently codec support) is to do so client-side. The only capability available to you with PHP (or anything server-side) is to do user-agent sniffing, which is notoriously unreliable.

Categories : PHP

CoreAudio Audio Unit plays only one channel of stereo audio
Ok. So I've check my code and spotted that I use VoiceProcessingIO audio unit (instead of RemoteIO which is in the question) which is basically correct for my app since documentation says "The Voice-Processing I/O unit (subtype kAudioUnitSubType_VoiceProcessingIO) has the characteristics of the Remote I/O unit and adds echo suppression for two-way duplex communication. It also adds automatic gain correction, adjustment of voice-processing quality, and muting" When I changed audio unit type to RemoteIO I've immediately got the stereo playback. I didn't have to change stream properties. Basically VoiceProcessingIO audio unit downfalls to mono and disregards stream properties. I've posted a question on Apple Developer forum regarding stereo output using VoiceProcessingIO audio unit but ha

Categories : Iphone

saved Recorded Audio Using Audio intent cannot be played
There are some limitations regarding RECORD_SOUND_ACTION intent that it is not supported to specify a file path to save the audio recording. The application shall save the audio in default location. You cannot use MediaStore.EXTRA_OUTPUT as extra because in document of MediaStore it is written under constant EXTRA_OUTPUT that it only use for image and video. The name of the Intent-extra used to indicate a content resolver Uri to be used to store the requested image or video. A solution to this cause is bit tricky. You can let the application save the audio to default but after you can cut, paste and rename your audio to your required location. I found two answers who claims that they found a way to cut paste. Solution A Solution B Accept this answer or +1 if you find it useful.

Categories : Android

How to record or get the audio while the audio is playing in windows phone 8?
This is the Microphone class link which can be used to capture audi. Give a try and let me know Microphone to capture audio also go nthrough this link capturing and playing audio

Categories : Windows

Outputting audio (Windows Audio API) - low frequencies quiet
The most likely answer is that the speakers you are playing the sound through aren't good at reproducing wavelengths that low. Desktop computer speakers, for example, often won't produce sounds below 50Hz. If you have a subwoofer or really high-quality speakers, of course, you'll do better. The other possibility is of course that something is wrong with the sine wave you are generating... but in general that would be obvious in Audacity if you zoomed in closely enough to see the individual samples. That is, if the visual looks like a proper sine wave, then it very likely is a proper sine wave. (and if it's not, e.g. if there are any sudden discontinuities, you will hear very obvious noise in the audio as it plays back!) One final note: Assuming your PCM format is using signed sampl

Categories : C++

Playing and recording audio in sync with getUserMedia/Web Audio API
I'm trying to do the same thing - HTML5 multitrack recorder. The webkit enabled stuff is just not ready for prime time. Recorder.js is very promising. http://carolwith.me is a flash based multitrack recorder that does exactly what I want (except I too want HTML5 not Flash). Have a look - it's unbelievably goofy! If you play with it it doesn't really sync either. An Algorithm setup to do a count-in (pre-roll) and then set the subsequently recorded tracks against it was also sought by me. I found a guy who had a possible solution but he abandoned it and then took his site down. Lets keep trying! Been at it since 2010 and I'm sure the hardest part (getusermedia) will become a standard.

Categories : HTML

aLaw audio format is not supported by HTML5 audio tag
You can use an excellent solution on joomlavision to trigger webkitAudioAPI for aLaw WAVs http://www.joomlavision.com/play-html5-audio-browser/

Categories : HTML

How to detect if html audio tag can't play audio file
You can use the audio element's canplaytype method to detect whether or not the current browser can play a specific codec. Example from diveintohtml5 function canPlay (codec) { var a = document.createElement('audio'); return !!(a.canPlayType && a.canPlayType(codec).replace(/no/, '')); } canPlay('audio/ogg; codecs="vorbis"'); // true or false

Categories : HTML

IOS: Run application audio and phone music audio together in background
Here you can find a related question about it. How to handle background audio playing while iOS device is locked or on another application? I would suggest you to take a look a this tutorial: http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_background-audio/ It explains all the different steps to follow.

Categories : Iphone

Android playing audio and recordning audio at the same time
You can use following custom class:- package com.app.controller; import android.content.Context; import android.media.MediaPlayer; import android.media.MediaPlayer.OnPreparedListener; import android.net.Uri; import android.provider.SyncStateContract.Constants; import android.widget.Toast; public class MediaController implements OnPreparedListener{ public MediaController() { // TODO Auto-generated constructor stub } public MediaPlayer mp; public void getMediaPlayObject() { try { System.out.println("00000000000000"); mp = new MediaPlayer(); System.out.println("2222222222"); } catch (Exception e) { // TODO: handle exception System.out.println("exception in audia player====" + e.toString()); } } public void onPrepared(MediaPlaye

Categories : Android

stop audio tag when next audio tag starts
I don't see the need for data. Here's what I suggest: $(document).ready(function(){ var aud = $('audio'), itog = 0; $('.sample').each(function(i){ $(this).click(function(){ var au = aud[i]; au.toggle(2000, function(){ if(itog === 0){ au.animate({top: '50%', left: '50%', marginTop: '-35px', marginLeft: '-175px'}, 2000); itog = 1; } else{ au.pause(); au.animate({top:0, left:'2000px'}, 2000); itog = 0; } }); }); }); });

Categories : Javascript

Getting audio visualization using Web Audio API to work on iOS
Unfortunately Safari doesn't properly support MediaElementSource. It's a bug: Why isn't Safari able to process audio from a MediaElementSourceNode?

Categories : IOS

Using
Nice question! The simplest solution would be storing the decoded content in a Blob. That would allow you to set the src attribute. var blob = new Blob(decodedData, {type: "correct-mimetype/here"}); var url = URL.createObjectURL(blob); audio.src = url;

Categories : Javascript

iOS - how can I add audio files into another audio file?
Audio mixing can be really challenging. You need to mix the two waveforms-- combine the data programatically. Here is a nice little demo showing one way to do so. And here is another answer with some ideas. and another sample. Sorry for all the links, but this is a pretty complicated question.

Categories : IOS

jQuery audio fade out and pause, onclick fade in audio and resume
You are adding two click handlers to same jQuery element, so on a single click two handlers will be called. You have to add an if that verify if the sound was muted. When you will click on the button the sound will be muted or un-muted with fadeIn. HTML <div style="bottom:0; position:absolute; height:32px; width:100%;"> <button id="mute">Mute sound</button> <audio id="background_audio" src="http://www.noiseaddicts.com/samples/2541.mp3" autoplay="autoplay"></audio> </div> Javascript $(document).ready(function(){ var backAudio = $('#background_audio'); var muted = false; $('#mute').click(function(){ var button = $(this); if (!muted) { button.attr("disabled", ""); backAudio.animate({volum

Categories : Jquery

created a jquery tab content changer when tab content is increasing height due to inner content its over lapping to its bottom div
This happens because the wrapper of you content tabs .tab-container has height: 300px;. Put it to min-height: 300px; and should work fine. Test: JsFiddle

Categories : Jquery

Set activity audio stream to android home audio stream
If you mean which volume it is that gets adjusted when you press the volume keys while at the home screen, then it's most likely the ring volume (i.e. STREAM_RING).

Categories : Java

Amplify audio with Web Audio API
I'm not aware of an implementation that doesn't increase the gain above 1. That's what I've been using in all of my projects, and haven't run into any issues. If you're super concerned about it, I guess you could use a ScriptProcessorNode and basically just multiply all your samples by whatever scaling value you want, but the performance will be quite a bit worse than you'd get with a gain node. And, also, that would just be flat out kind of ridiculous. The way I read the spec doesn't really give me any reason to believe values greater than 1 will be ignored for the GainNode's gain parameter. It's basically just saying 1 is the nominal value. In other words, if you want your audio to pass through unaffected, set the value to 1. Otherwise, you'll get attenuation or amplification.

Categories : HTML

how to remove script tag such {audio}{/audio} or {youtube}{/youtube}
You can use a regular expression $match = "/{audio}[^{]*{/audio}/"; $replace = ""; $text = "your joomla text which has {audio}something{/audio}"; $output = preg_replace($match, $replace, $text); This method removes any text that is in between {audio}{/audio} tags, if that's not what you want change $match = "/{audio}([^{]*){/audio}/"; $replace = "\$0"; which will leave the content in the middle back in the output text.

Categories : PHP

Streaming audio. How does 10 seconds of audio are loaded in 2 seconds?
It's the second option. If you would stream audio in "real time" without any delay, you would have serious problems when the connection is lost or data is delayed, for example, for 100ms. Than the user wouldn't hear anything for 100ms, which would be pretty annoying. This especially happens with mobile connections, which have much higher error rates and while you move have a hard time to keep a stable connection. Usually the acutal playback is delayed and the next seconds are buffered. When the connection is down and comes back in the buffered time frame, than the user doesn't notice that the connection was lost. In you example the connection can be lost for up to 8 seconds without any problems.

Categories : Objective C

Conversion of WMA audio file to MP3 audio file
If you can access the file from a computer, you can download FormatFactory at http://download.cnet.com/FormatFactory/3000-2194_4-10968547.html and do a simple file conversion with that program. If not, could you please clarify if you want to convert the file locally on your Android device or if you want the file to be converted and saved on the server that particular URL points to/

Categories : Android

Cross-domain AJAX withCredentials, PHP returns header content-lenght, but no content
When setting headerAccess-Control-Allow-Credentials to true, you cannot use a wildcard for header Access-Control-Allow-Origin. That is, a specific host must be specified. Instead of: Access-Control-Allow-Origin: * Use: Access-Control-Allow-Origin: http://safedomain.com You can even set the Access-Control-Allow-Origin header to the Origin header received in the request. Not sure about PHP, but using the Java Servlets API: String origin = request.getHeader("Origin"); request.setHeader("Access-Control-Allow-Origin", origin);

Categories : PHP

Load content with Javascript, but still retain a unique link to specific content pages
What you want to achieve seems more like a Single Page Application. There are javascript libraries which can help you build the application the way you described it. Take a look on Sammy.js or History.js libraries.

Categories : Javascript

jQuery toggle slides DIV up and down, but UL content animates left to right. How can I make the content slide up and down?
toggle() simply toggles the showing/hiding, but doesn't specify how to show/hide. Try: $('#myMenu ul').slideToggle('slow'); jsfiddle

Categories : Jquery

Setting appropriate HTTP Content-Length header in WSGI middleware after manipulating content
You dont need to worry about deleting/adding/changing content-length header, that will be auto handled by the server when it sends out the response. Sending a wrong length header might create problems for your website viewers / internet browsers. You can test the Content-length headers here - http://www.dekho-ji.com/website-diagnostics-curl-http-request-response-headers-online

Categories : Python

How do you bind to a listbox.itemtemplate in a style's content template content control
In the ListBoxItem style add ContentTemplate="{TemplateBinding ContentTemplate}" <ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"> <!-- style stuff--> </ContentControl>

Categories : Wpf

UIPickerView change content text size after loading content into picker
If I understood your question correctly, you may want to take a look at this answer. The strategy is basically to truncate (ellipsis) instead of font shrinking. Edit (based on comment) I would strongly advise against setting all text to the minimum font. Lets say you have elements as such: Pear Peach ok, so far these will fit your label perfectly, with a good font size. Now you add a longer item: Pear Peach Strawberry Pineapple and now all your items are a little bit smaller, but thats still readable, so it's acceptable. And then a huge item appears, such as: Pear Peach Strawberry Pineapple SomeKindOfExoticFruitThatHasAnIncredibleLongName which would make all items inside your picker become incredibly small, and difficult to read. But if you still want to go down that roa

Categories : IOS

Drupal 7/Views - Showing similar content with the same tag(s) when adding a new piece of content
Views, similar_by_terms, similar and other modules provide that functionality. See how to create such a block with views at this article http://www.metachunk.com/blog/adding-related-content-view-drupal-7

Categories : Drupal

HTTP Content-Encoding: gzip not recognized and wrong Content-Length
Oh god, I got it working! I dont' know why, but today I booted into my Windows development machine instead of Ubuntu. As it seems, Chrome for Windows doesn't display or process the response correctly. Under Ubuntu, it works at the first try. I want 6 hours of my life back.

Categories : Node Js

How to show data (in front of every content) in div if content come in huge lines in jQuery?
I would do something like this: .data .status, .data .text { float: left; } .data .status { width: 25%; } .data .status span { display: block; } .data .text { width: 75%; } <section class='data'> <div class='status'><span>Changed</span></div> <div class='text'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce condimentum blandit neque. Nulla facilisi. Sed ornare luctus nulla euismod tincidunt. Cras rhoncus semper mi vitae facilisis. Nulla facilisi. Aliquam feugiat quis dui sit amet pretium. Nunc et accumsan risus, non lobortis mi. Donec pulvinar lacus diam, eu feugiat tortor malesuada a. Aenean pretium quam mi, id tincidunt nulla posuere nec</div> </section> var $data = $('.data'); $data.each(function

Categories : Jquery

unable to set hidden field content from div html content on fullscreen iPad Mobile Safari
This is quite old, but after googling around to solve the same issue for me, I have not found a solution. Looks like some weird behaviour from iPad (easily reproducible, no way to fix, at least that I found): the target input field gets changed indeed, but the posted value is the original one (???) So just in case a workaround is useful to somebody, instead of applying the changes from the contenteditable div on form submit, I apply the changes whenever the div is changed (no on change event for contenteditable divs, so really it is done on blur event): <div id="editor_inline_core_body" class="inputbox editor-inline" contenteditable>[initial value here]</div> <input type="hidden" id="jform_core_body" name="jform[core_body]" value="[ initial value here]" /> <script>

Categories : HTML

in Backbone, is it possible to tell fetch that it if it reads content that is content-type:'text/plain' to read it as JSON
Backbone uses jQuery.ajax under the hood for the ajax requests. So you need to use the dataType: 'json' options to specify how jQuery should treat the response when you are calling fetch: yourCollection.fetch({ dataType: 'json' });

Categories : Backbone Js

How to allow cross domain content script on Firefox add-on without firing mixed content blocking errors
Specifying that permission will cause the Sandbox (worker in SDK internal terms, content script in documentation) to simply get a new XMLHttpRequest constructor, that has more than one principal (or "origin", if you like). This will only change how to same-origin-policy is evaluated, but not how security in general and mixed-content policies in particular are implemented. That is: You still cannot do a https to http XHR, as you noticed. There is no work around you can use in your content script. You could however message your main script to do the request and pass the result back (again via message passing) to the content script. Please file a bug. At the very least this limitation should be documented. Personally, I wouldn't be in favor of lifting it. Mixed-content is a security issue,

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.