I have integrate Dropbox API (Dropbox API) in my project and want to access only audio files.
Create share links using Dropbox API.
Now, I want to play that song using Jukebox or any audio player from shareable URL.
I have tried multiple links to play using Jukebox, it running fine.
I am facing in only Dropbox shareable link.
The shared links, e.g., from createSharedLinkWithSettings, point to an HTML preview page, and not the file content itself.
If you need the actual file content, e.g., to use it in a media player, you have a few options:
1) Use download(path:rev:overwrite:destination:) to download the file to disk.
2) Use download(path:rev:) to download the file to memory. (Not recommended for large files.)
3) Use getTemporaryLink(path:) to get a temporary link to the file. This may be the best option if you need a URL to give to a media player.
Related
I would like to get songs from my computer to my iPhone inside of my own app. This would be a music playing app that would have the ability to load songs into its own directory from some private source like a laptop or cloud storage.
Example: If I have 100 songs on a Google Drive and I write an iOS app that loads those files from the Google Drive into the apps directory.
iOS, iPhone, Swift.
Yes you can download files into your app's Documents directory, which will be private to your app.
Here's a SO question on downloading a file in Swift/iOS that shows some concrete code examples: How to download file in swift?
You can also find many tutorials online on saving files and making HTTP requests in Swift.
You'll need to determine specifically how to make requests to your file provider e.g. Google Drive. This might involve not only the URL itself but also authentication, SSL validation etc. which are deeper topics in themselves but fully supported in Swift/iOS.
Yes, you can definitely download songs to your phone from your computer. You just have to make a directory area in your app and have the song be fetched into that directory.
Music sites like Playmoss and Submissionhub manage to retrieve the YouTube video file URL from the standard player watch URL. When a user pasts a YouTube URL like this into their service, the get the video file URL like this and save them in their system. This is necessary to later reproduce the media files with an external audio player like SoundManager2.
I learned that it's possible to retrieve the info from command line but that's impossible to do so from embedded YouTube videos.
Any idea how the mentioned sites manage to do that?
It is impossible (and illegal) to retrieve YouTube video URL. Music sites like the mentioned in the question seem to play YouTube files controlling the embedded videos. This can be done using Javascript as described here.
I'm not sure whether this question is eligible to ask in this forum. I just want to know how the video streaming applications like,
Hotstar
Youtube
Spuul
and all developed a downloading manager which handle a video downloading process smoothy. How can we develop the same in my application? What are all the things i need to check for developing this? How should i develop it properly?
Any suggestions?
There now exists a Chrome extension which unites segments from m3u8 list and combines them in a video which then is saved to your computer.
Here's the link HLS Video Saver.
Your best shot is HLS. Segment your video file on server side with lets say
apple segmenter. Then create m3u8 playlist with these files. Next open the playlist file with the media player of your choice.
I created an audio recorder app that saves audio files in m4a format. I then decided to add an export feature to allow users to email and text their audio recordings. This works nicely when the audio files are no bigger than 20MB. However, any audio file above 20MB will fail to export. What would be the best way to export files out of the app? I was thinking google drive or dropbox, but the user would have to have a registered account. Are there any services that I can upload a file to and receive a link that can be emailed to the user?
There are plenty of services like that. Dropbox is an example. Here is an overview: http://alternativeto.net/software/dropbox/
I uploaded an audio file to Dropbox and put a link to it in my Rails application. When I clicked the link, it automatically opened an audio player. However, when I tried the same with video, it didn't work, either in S3 or Dropbox (which uses S3). Is there a way to play video from Dropbox or S3 in a Rails application?
I think the reason the audio file opened in the browser and not the video is more a function of your browser and not your Rails app. If you want to control the display of those things you will need to use <video> tags for videos, and <audio> tags for audio. You can find references for both of those here and here.