I have a question that, Is it possible to get and play the iPod library songs / playlist using AVAudioPlayer instead of using MPMusicPlayer?
Thanks in advance,
Chandra.
One way i tried with is just copy the song from iPod library to your app then you can play. When you close then you can delete also those songs. But makes your app heavy in terms of size. See my post.
Another way i found is using AVPlayer of AVFoundation framework. This supports iPod library. For reference of AVPlayer you can go to post
Related
All questions about this topic are outdated and left unanswered. There is no answer and I am trying to create a music app that uses Spotify to search songs and then play the first related song. How do I can achieve this? Is there any module about that topic?
I found a script that uses Selenium to achieve the solution but it doesn't help me so much.
If this is not achievable, is there such a method for YouTube? Like search the song name and get the first related song (or video).
I hope you can give me an answer. Have a good day.
try using
https://pypi.org/project/pyspotify/
refer the documentation for more information
https://pyspotify.readthedocs.io/en/latest/
Hope this helps u
Thank you
have you had i look at spotipy to access Spotify Web Api##
Spotify's Web API only supports 30 second clips,You can do playback of the full track using the mobile SDKs
https://spotipy.readthedocs.io/en/2.13.0/
Actually there is such a method for YouTube. There is a module named "pywhatkit".
It is actually a WhatsApp server but you can use it to play music on YouTube. First install it using pip install pywhatkit then :
import pywhatkit
songOrArtist = input()
pywhatkit.playonyt(songOrArtist)
This will open the desired song, you can also give name of any artist and it can play the song.
In Blogger I am trying to recreate the audio feature used in this web site http://www.talkenglish.com/lessondetails.aspx?ALID=2001 where you click on text and hear the audio (an mp3 file) instantly. When I embed identical code into a Blogger page and click it, it wants to play the mp3 file by kick starting Windows Media Player. I don't want a solution like SoundCloud that creates visible player controls. Can anyone suggest a solution. I am hoping to use it to create an online amateur speech therapy package to support some voluntary work I do in this area.
Thanks
That site is using a file called audioplayer.js. To be honest, I am not exactly sure if that's custom built or not. You can look at the source for that here. You have a bunch of options to get the functionality you're looking for. A couple are below.
You can use SoundManager2 which is a very robust JS Sound plugin.
You can also use HTML5's built in <audio> element. You can read more about that here
I have an app that I have written using Xamarin forms. I wanted to know if there is any media
class I could use to record audio as well as stream audio from a server. All articles I have found on the web are platform specific so far.
thanks in advance
There currently isn't any audio support in Xamarin.Forms. You will need to write platform specific code for handling the audio and use the XF DependencyService (or something similar) to call it from your shared code.
I'm using the Spotify API 11.1.60 for iOS and created successfully an app that can download / play songs from Spotify, download and show the covers, execute searches. But I can't find a way to crossfade songs. I only can play one song a time.
Does anybody know how to crossfade songs?
I did not implement crossfade but I think the only solution is to bufferize your current song to be able to crossfade.
You have to update your music_delivery callback and your code used to play the sound. The solution depend on the sound engine your using (OpenAL, CoreAudio, ...)
I'm building a web application to support RPG games, like Dungeons & Dragons. It's
like a AJAX chat room with dice rollers, avatars, shared information, character sheets and
so on...
One of my desired features is to let the game master to play music to all game members.
How can I implement that?
I'm building the application with Asp.NET, using C# 3.5.
In the client side I'm using jQuery (latest version).
I intend to avoid Flash and Silverlight (even if the music resource will be available to
some browsers only).
I tryed to use ogg format, but I don't know how to make it work with my own audio
files. Do I need to implement a stream or something?
The application already is online. If someone want to see it, let me know. But
it's only available in portuguese (Brazil).
Any tip will be apreciated.
You have a better chance of integrating the sound if its a mp3, then using javascript or HTML5.
HTML5 Code:
<audio src="anyone-there.mp3" autoplay controls></audio>
Read more here - http://www.html5laboratory.com/playing-with-audio-files.php
HTML5 is not supported by many browsers, so using a javascript to play the sound would be alot better.