I have created a Rails app which uploads a video to a Box account. All works fine when a video is small sized video. However, when video is a big file, I get c9.io's bad gateway error. To avoid this, I wanna add a background process which will upload the video for me, as I have no issue with Box's API's session.
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.
I'm developing an iOS app that is going to use plenty of videos. The app in summary is a quiz app, where after each question it shows your a video relevant to that question.
my question is, should I use local videos or just referencing youtube links to show the videos? keep in mind that all of the videos that I am going to show are youtube videos that I have already downloaded and added to the app bundle.
what are the benefits and downfalls of each? in terms of app development and user interaction?
Most of the things that you need to consider are
Size of the app with all videos inside. If you add everything in the
bundle than the size of the application will be big and some people
will reject to download it especially if they are not in wifi
network
Do you need these videos if you don't have a network? If yes, you
have two options, the first one to add everything in the bundle and the second one to download them inside the app when the app starts.
What about the speed? Is it okay to wait for the stream or you need instant play?
I think these are the 3 main points for this. (Size, Offline, Speed)
If you have everything in the bundle Offline support and speed of playing will be okay. But for sure you can have a problem with the size. If everything is in youtube the size will be fine but then you will have problems with the speed and the offline mode.
I have a page where users see the uploaded videos. Above the videos, there is an "Update" form with the ability to upload videos to the collection. The form uses realtime uploading (Upload starts as soon as user chooses file). And when the upload progress is 100%. The user hits "Update" button to update video collection.
The problem occurs when the user wants to upload a file when watching a video. The upload does not progress. There are no messages or errors in server development log or client javascript console. It just hangs (the video continues playing though). The upload usually hangs at the start (5%, 20% depending on the video file size).
By the way; i use refile gem for managing realtime uploads, storage, file serving, etc. Also it should be known that, i use same rails application server (Thin 1.6.3) to serve files and accept uploads. (Maybe the server gets busy and can not accept uploads? Because if i don't start playing the video, the upload progresses smoothly and completes without a problem.)
Could anyone point me in the right direction? Where to look? Are there any parameters i should set somewhere?
I'm writing a Blackberry Z10 app for use in onsite events where we take photos or short videos of attendees and the photos are available immediately on a website. We take the photo, enter a message to be displayed with it and the photo gets uploaded right then. We initially used blackberry.io.filetransfer.upload but the videos could be up to 30MB so would have a long wait time, so we switched to an XHR transfer where we could have a progress bar so at least the app user would have something to look at.
We've found that sometimes they're in areas with low connectivity, so would like to just copy the file to a folder that is watched by a background process and anything deposited there gets uploaded to the server. How can we get an app functioning basically as a service, doing file transfers even when minimized?
I want to automatically load local video and audio without clicking/swiping, etc. on a PhoneGap application on the iPad. I'm considering creating an objective-c plugin, would this be the correct way or is there another work around i.e. a plugin, javascript way etc?
Given that a phonegap app is basically a wrapped webapp, I think you may be out of luck, apple requires a user action to play media on the iPad (actually, audio, I don't know either way for video). Here's a source.
See the user controls or media playback controls section. Even though your data is local, the play action is disabled without an action