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.
Related
I want to connect vimeo video with an android app, the process is like this:
I want to upload the video on Vimeo, and want to see the list of video uploaded in the vimeo from the android app and play it from the android app.
In simple words I don't want to upload the link of every new video in my code.
Is that possible, help me with this
What sort of technology require for this
and what is the process ?
Honestly I am new to Android apps too. If you wish to save links you had already accessed, then I assume you should look at "Room" (The name of Android Internal Storage). Room would helps you to remember links/videos even if you close the app.
In regards listing items, I'd look at "RecyclerView".
I don't have enough knowledge on that field, to provide you with an accurate answer but I'd suggest start looking on these two topics.
I am currently working on an iOS app where users can watch several videos (e.g. fitness videos). The videos are all captured by my team, so I don't need access to external videos.
Now my question is, does it make more sense to store the video files offline right in the app or use some kind of online server (and which one would you recommend)? I don't want to embed Youtube videos.
Thanks in advance!
It is always better to go online. Because the size of video may vary and huge video files would scrap user device's memory. SO it is recommended to use an external server to host the video files.
You can also add an option to download the files if needed.
I would like to create a simple app that does some video playback (with a few extra controls) of videos that you would find in the videos app. I've been searching and searching for a way to access the videos but I haven't found a single API that plays from the videos app.
Every solution I find plays videos from the photos app. I have apps that access the videos library on my iPad/iPhone so I'm assuming it's possible. Does anyone have the api for this?
Apps cannot access data from other applications on iOS, you cannot access the data of other apps unless it's made available by the app via a web server etc.
Your best bet is to use UIImagePicker to load the videos and images that are on your phone.
You can check out a reference here.
As for getting the videos off the videos app, that's not really possible (as far as I know), but you are able to show just photos or just videos with UIImagePicker using the mediaTypes property.
My application has a custom video player which should be played with youtube links (just to save me the hassle and money from making my own server side and stream videos from there).
Here are some facts that I believe are true:
Youtube prohibits any use of custom players except UIWebView and MPMoviePlayerController.
Youtube doesn't share rtsp links for iOS devices, so I'm left with progressive downloading.
Apple clearly states in the documentation that progressive downloading is possible only for small clips (under 10 minutes or 5MB/5min ratio).
I've downloaded the application 'iTube' which allows you to watch youtube links with playlist control in the device. I was wondering how did they make it work for them. The app obviously uses progressive download as it downloaded 30MB after I've watched ~1 minute of the video (over 3G).
Question: Does Apple allow applications to break the policy of progressive download when youtube links are involved (because youtube doesn't offer any alternative)? or is this application just went under Apple's radar?
Thank you
OK as it turns out, this application just slipped under Apple's radar.
I've asked this question in the developer's forum and got the answer from one of Apple's employees:
You would have to disable downloading over cellular if the clip is over 10 minutes.
I'll forward this to the app review people.
The question I've asked is here: https://devforums.apple.com/message/966814#966814
(You need developer account to get in there)
Thanks all
If your video longer than 10 minutes, you need to use HLS streaming for your apps. For example you can upload your videos to http://int10h.com get HLS link and stream. Good luck
I'd like to stream video from the camera on an iOS device to a receiver via wifi, in effect turning the device into a wireless webcam. Is there a way to build a small app that captures video input on an iOS app and sends it via an RTSP stream or similar?
As this is an ad hoc experiment, I'm not concerned about App Store guidelines and can jailbreak if necessary.
If I interpret your question correctly you more or less need to solve four problems:
Get the camera feed.
Convert/encode this to the right format.
Stream the data.
Prevent the phone from locking itself and going into deep sleep.
The first one is fairly simple and Apple has as always provided good documentation and examples -> API link. Make sure you check out their example in the end as you will get a CMSampleBufferRef data object back.
For the second and third part, you should check out the CFNetwork framework and specially CFFTPStream for streaming using FTP.
If your are only building this for yourself then you can always turn off the Auto-Lock feature in the settings. If you on the other hand would like to distribute this to other users you could use a trick to play a mute sound every 10 seconds. This is more or less how all the alarm clocks work in the App Store. Here's a tutorial. =)
I hope I helped a little bit at least.
Good luck and best regards!
I'm 70% of the way to doing the same thing. Here's how I did it:
Capture content from video input
Chop video into files for use in HTML Live Streaming.
Spin up a web server on the iPhone and make the video files available.
Connect to the IP address of the phone and viola! you've got live streaming video.
Last time I touched the code I was trying to debug my Live Streaming not working. I'll try and get my source code posted on github this weekend, if you'd like to take a look.