Programatically upload a video to Youtube - ios

I am currently trying to programmatically upload a video from an iOS device to Youtube, but all of the information I am finding is incredibly dated.
I have explored the Google API Cocoapod, but the documentation around using it is rather weak, so I could not find a good starting point.
Other answers on here lead off to four year old projects that are now broken.
Hoping someone can point me to a current example, tutorial or other documentation on how to upload through iOS.

I have never done this but I m sure following link will help you.
1.Upload Videos to YouTube with iPhone custom App
2.Uploading Video with iPhone
3.YouTube Data API.
4. Upload Video on you tube.

Related

Convert a video into an IOS Live Photo format without an Apple device

I'm currently making live/animated wallpapers for Android phones, which is pretty easy with GIF/Mp4 files. But I would also like to make the live wallpapers compatible natively with ios/iPhones. I've seen many tutorials on how to convert a video to a Live photo but they all involve some kind of app you need to install on your IPhone. Issue is, I don't own an iPhone or any iOS device to do that and apparently iOS emulators are not a thing, so my question is :
Is it possible to convert a (mp4) video to an iOs Live photo through a 3rd party ? If so, how would you do it ?
I'm pretty inexperienced with the iOS environnement so thank you for your help !
Well, a live photo is a container that holds both a .jpeg and a H.264-encoded .mov file. More details here.
Do you have an Apple computer to do so, or do you want to create it independently from any apple hardware?
For the first case, there are a bunch of (demo) applications on github you could take a look into.
For the second case, I'm not sure if anything exists.

Azure Media Services - Captions on iOS - Native not AMP

I'm trying to get captioning working on iOS and Android. Android seems relatively straight forward but I can't seem to figure out how (nor do the docs really tell you) to setup WebVTT captions like you can easily do with Windows 10 UWP and AMP.
On Android I am just doing videoView.AddSubtitleSource and it appears to work. On iOS I'm at a loss. From what I can tell it appears that it's possible to load captions not embedded in the file, but I can't find any example of how it works with MediaSelectionOptions and specifying a stream or similar.
I've done this in my own custom renderer in Xamarin Forms but I'm fine converting it from swift or Objective C if needed.
Anyone get this working or know how?
If your interest is iOS native player, check this tutorial video from Apple: https://developer.apple.com/videos/play/wwdc2012/512/ (about 20 min into it)
If your interest is Safari based player, check the examples here: https://developer.apple.com/streaming/examples/ (3 of the examples include webVTT)
The issue with iOS and Safari not playing back VTT side car files appears to be fixed now in the latest iOS release. Not sure exactly when it was fixed, but I'm on 14.7.1 and the following sample is working now
https://ampdemo.azureedge.net/azuremediaplayer.html?url=%2F%2Famssamples.streaming.mediaservices.windows.net%2Fbc57e088-27ec-44e0-ac20-a85ccbcd50da%2FTearsOfSteel.ism%2Fmanifest&subtitles=English,en,%2F%2Famssamples.streaming.mediaservices.windows.net%2Fbc57e088-27ec-44e0-ac20-a85ccbcd50da%2FTOS-en.vtt;Spanish,es,%2F%2Famssamples.streaming.mediaservices.windows.net%2Fbc57e088-27ec-44e0-ac20-a85ccbcd50da%2FTOS-es.vtt;French,fr,%2F%2Famssamples.streaming.mediaservices.windows.net%2Fbc57e088-27ec-44e0-ac20-a85ccbcd50da%2FTOS-fr.vtt;Italian,it,%2F%2Famssamples.streaming.mediaservices.windows.net%2Fbc57e088-27ec-44e0-ac20-a85ccbcd50da%2FTOS-it.vtt

How to fill metadata info for tvOS info panel when using Airplay?

I'm barely new to iOS.
I'm able to reproduce streams(no local video) via AVPlayer using Airplay.
Also, MPNowPlayingInfo and RemoteCommandManager are supported, using external medatada, not included into the streams.
But, I would like to fill the info panel with title, artwork, etc. on AppleTv/tvOS.
The image is part of WWDC17 talk titled "Now Playing and Remote 
 Commands on tvOS".
My question is not about tvOS apps, which the referenced talk is about, but about a iOS app that plays video via Airplay.
My guess is that the played AVAsset needs to have medatada, which currently would be empty.
I've been checking AVMutableMetaDataItem, but still don't understand if that's what I would need to use, nor how to do it.
Does anyone has any hint?
The WWDC 2019 Talk :( https://developer.apple.com/videos/play/wwdc2019/503/ ) which is about Delivering Intuitive Media Playback with AVKit speaks about using the external metadata during Airplay and how they have provided the API for iOS now which is similar to what was present on tvOS. (Refer from duration of 7 minutes in the Video mentioned above where they explain the same.) Hope this helps:)

How to embed a live stream using the Youtube API on tvOS

I need the ability to embed a Youtube live stream into a tvOS app. Due to the lack of an UIWebView, this was not possible with all previous tvOS. I hoped, that this feature will be included in the current tvOS 10 or Swift 3 release but it seems to me, that it is still missing.
Nevertheless, does anybody know a trick / something that I missed out during my journey through the API documentation? I'm not allowed to use Youtube parsers like pod 'youtube-parser', etc. I have to be in full compliance with the terms and conditions of Youtube.
My solution so far is not good enough but it works fine
First, I find youtube playlist by using youtube-dl app
https://rg3.github.io/youtube-dl/download.html
So, I can find link https://manifest.googlevideo.com/api/manifest/hls_playlist/*****.m3u8 in this format. Then, I just embedded this link to TVOS application.

How to make a 360 panorama app using DJI Mobile SDK like DronePan?

I saw DronePan's app on Facebook recently. DronePan is a simple app to control DJI's Inspire 1 to take a cool 360 panorama, it's really awesome. You can check its video: https://www.youtube.com/watch?v=sZJImZhqcqE, so I am excited about it and want to make an iOS app like it too. I google it and figure out that DronePan is using DJI Mobile SDK to make the app. Now I am wondering if someone can give me some clues to start this project? Like using which API of the DJI SDK can I make the Inspire 1 to rotate the camera to take photos? Thanks!
Good topic! The panorama feature is quite popular for the drones’ app recently. I just get started to play with DJI Mobile SDK for 2 weeks, google it and found DJI SDK’s github page. It’s really helpful for the starters like us. In the page, I found the Creating a Panorama Application tutorial, I recommend you to check it! You can use
DJI Mobile SDK’s Intelligent Navigation Waypoint missions and Joystick to control the aircraft’s camera to rotate and take photos. For the joystick feature, please check DJIGimbal.h file, there is a method called:
-(void) setGimbalPitch:(DJIGimbalRotation)pitch Roll:(DJIGimbalRotation)roll Yaw:(DJIGimbalRotation)yaw withResult:(DJIExecuteResultBlock)block;
By using it, you can send command to control the aircraft to rotate the gimbal manually. The tutorial also teach you how to stitch the photos you take and using OpenCV library to generate them into a panorama.
Hope this help!

Resources