Play a song Using Deezer SDK for Iphone - ios

I’m integrating my application with the Deezer SDK, I already made the code so that I could authenticate myself now all I need my application to do is when I push a button a song starts how can I do this?
Is there any way to do it without having to click on the album artist and song?
With a pre defined playlist or something?

You can use the play function on the PlayerFactory object whenever you'd like. The only you need to do before that is to configure the player with the preparePlayerForTrackWithDeezerId:stream:forUserWithToken:andId: method.

Related

How to use ''SpotifyiOS" framework and Authorize app without acutally playing a song

I am using 'SpotifyiOS' framework recommended by Spotify (https://github.com/spotify/ios-sdk) to access their APIs. To login/Authorise the App we must login to Spotify and it is invoked by following available methods:
where appRemote is an instance of SPTAppRemote
It plays a song even if I pass empty String as URI as shown below:
How can I authorise app without playing any song using 'SpotifyiOS' famework?
You can use the SPTSessionManager to authenticate without playing a song.
The flow is a bit more convoluted and better followed at the documentation link than copy/pasted here, but in short you configure the SPTSessionManager and provide it a delegate that on successful authentication provides a token to your SPTAppRemote which can then be used to control the application.

How can i upload video to Twitter using IOS

I have a local video link, and i want when the user press the button -> show twitter app with my video and title there (without using UIActivityViewController), just by pressing the button
You have to choose which way you want to go to upload a video, i.e. post a tweet with just that title you've mentioned.
Option 1
Use the HTTP API and create a URLRequest that contains the video as 'attachment'. You have to handle authentication first or the request will most likely fail.
Option 2 (Not really an option anymore)
Another way would be the iOS SDK provided, as given in the other example here. Problem is: there is no longer an official Twitter SDK for iOS. You could try your luck with the archived OpenSource SDK but maintainability is pretty decent with this.

Is there a possibility to save a video to the gallery when the camera is called with a <input type="file">?

I'm trying to build a hybrid iPhone app that makes use of the html-tag for video uploads.
Camera opens when the input is clicked, users can record video and upload works fine.
I'm quite new into swift and iOS-development, therefore my question:
How can I address the video inside the native app part, to additionally store it on the phone inside the gallery? Is this possible?
You should use accept="video/mp4,video/x-m4v,video/*"
MIMEType webkit

GameCenter get GKPlayer photo URL

How can I access the GameCenter player's photo URL? I know about loadPhotoForSize but it seems to return UIImage. I need the URL as I would like to send this URL to my backend and show this photo for users from non-iOS devices.
There is no available GameCenter player's photo URL. It may exist right now, but Apple can change it any moment. And it is not in open access.
Correct way to show player's photo on another non-iOS platforms is to upload this photo to your game servers. Use loadPhotoForSize to obtain UIImage and than upload it to your server. For example you can use answers from here: ios Upload Image and Text using HTTP POST

email a video in iOS

I have an app that records a video and saves it straight to the photo library on the iPhone. I want to, as soon as the user finishes recording, have the app open up in mail, with the video attached. How should I go about doing this?
I am using this basic idea: http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/
How do I get the file path for the video?
You could either store the video in your app and then attach that into the email before copying it to the photo library or show the user their photo library in the app via UIImagePicker - This may help or just google it ...
http://developer.apple.com/library/ios/#samplecode/MyImagePicker/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010135

Resources