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.
Related
I have a react application hosted on heroku, which relies heavily on playing audio with an audio tag. There are two different "pages" (I'm using conditional rendering rather than react router, so everything is all one page), that essentially do the same thing:
Bring the user to a screen with album links
Update the src attribute of a hidden audio tag to point to a google drive hosted mp3 file when a given album link's play button is clicked, then utilize the autoPlay attribute to play the resource.
To ensure fair use (this is a hobby project), copyrighted audios have been trimmed to 25 seconds before hosting. These are pulled into the "music player" section of the app (accessible through the nav bar), one at a time as needed. I have other audio files of my own recordings that are not trimmed and run at about 3.5-5mins long, which appear in the "covers" section of the app.
All of the album links update the audio src and play correctly on Android and desktop devices. On iOS, regardless of browser, the "covers" audios will not play, but the "music player" audios will. I have spent hours trying to find a workaround for this, because it doesn't seem to have to do with browser auto-play policies as much as with some policy on iOS itself? The site is rendered in such a way that the user must interact with it before playing audio, so it satisfies autoPlay policies. Has anyone run across a similar issue?
You can find the site here:
thekillersmusic.herokuapp.com
This issue has been resolved. The problem for me was that the audio files were converted from wav to mp3 by changing the extension on my local device before hosting. This caused range headers to be included on the http requests made for the resources, and partial content responses to be sent back. For whatever reason, iOS devices had issues resolving the partial content responses. However, android and desktop systems did not. After redownloading the files as mp3, rather than wav, and then hosting the new files, the requests were handled with 200 status codes rather than 206 status codes, and the audio worked across all platforms.
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 can not play a video from Wowza. I have some videos as .mp4 extension. How can i play these videos onto a html web site?
I created some stream files and SMIL files. But I can not have URL to run these videos.
I need to URL format to play videos from Wowza Server.
How can I get the URL to play videos?
Using the HTML5 video tag element for Wowza Streaming Engine streaming URLs can be a bit limited depending on the browser and OS platform you are using. Check to make sure that your browser/platform supports this playback. The latest version of Wowza has the new HTML5 Wowza Player that is supported cross-platform (and is available to users with a valid key).
I also see that your HLS playback format looks to be incorrect. It should be:
http://[wowza-ip-address]:[port-number]/[application-name]/[instance-name]/[stream-path]/playlist.m3u8
Your port-number by default is usually 1935, and can be set from the Virtual Host Setup page. For application name, the pre-installed app is called "vod", and the default instance is "_definst_" (which is optional, but is recommended to use if you are using sub-folders for your VOD content). The stream path is the path and name of your VOD file, and is usually prefixed by either "mp4:" or "flv:", depending on the kind of file. Try playing back the installed sample.mp4 file:
http://192.168.1.59:1935/vod/_definst_/mp4:sample.mp4/playlist.m3u8
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.
I have an application that will take care of recording video using UIImagePickerController object and videos are saved in the shared library of IOS.
I have only one problem.
If you record video from an external application to my application, unfortunately I can see both the videos recorded with my application is the video recorded by the other application.
Is there a way to make the filter of assets not recorded with my application?
Thank you,
Vincenzo
Save video to apps document folder and while using, pick it from the same location.
Refer this link to save video in documents folder.
But your other apps are unable to access those and deleting app deletes captured videos too.