How to Trigger custom Video player While playing any video in iphone? - ios

I want to create a Custom Video Player with some more features and settings .
So My question is:
1) Can i trigger my app when user clicks any video ?
2)How can i get list of all videos saved in iPhone (not in camera roll) ?i want to play them inside the video player i created.
Please guide me, thanks.

I don't think you can capture all video. External Apps tend to use Apple's native video support.
The only exception to this is if you register your application to open certain filetypes. Then applications can allow you to open the file in an external app such as yours. But this will require the cooperation of the other apps to implement "Open In" functionality; Very few apps tend to offer this functionality due to native support of video.
See here Apple Documentation
The filesystem is locked down, if it's not in the camera roll or "Open In" you can't access it.

Related

Control music of other apps within my app

I'm currenty trying to find out if it's possible to control the music of other apps, e.g. Spotify, within my app. The two solutions I found are:
using the SDK of the specific service (e.g. Spotify SDK)
take over the audio session in my app, but this only allows me to stop/ play the music
I'm trying to find a solution that provides me with pause, play, forward, backward control and access to the title, maybe also the cover. Then I came across the "Sony Headphones Connect" app. It has a page with media control buttons, the title of the current song and is does not require any kind of sing in to Spotify or something else.
Picture is from the app from the App Store, I tested the controls and they work.
So somehow it must be possible, does anyone have an idea how I can achieve my desired result or how the "Sony Headphones Connect" app is handling this issue?
I think I found the answer, the "Sony Headphones Connect" app is controlling the music over bluetooth. So it's not directly possible to control the music of another app.

I want to integrate vimeo video with the app

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.

Application that plays videos from the video library

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.

Simplest way to get an audio file from an iOS app into the user's music library without violating app store terms

I'm making an iOS app in which I'd like to allow the user to save an audio file (a specific file that the app uses internally, not just any arbitrary audio file) to their music library so they can play it from other apps on the device. Ideally I'd like to save a sound directly to the users music library, but it seems from other similar questions that this is not possible. File sharing with iTunes seems to be the next best solution.
Is there anything about using the iTunes file sharing option for saving audio in this way that violates the app store terms?
Is this the path of least friction for the user, or is there another way to achieve this that I'm missing?

I want to automatically load local video and audio in a phone gap application on the iPad

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

Resources