can Apple watch stream music as standalone app - ios

We have an iphone app which is used to stream Music and video and we are planning to develop a Watchkit extension for same.
is it possible for applewatch extension to stream music without iPhone, or
say it is possible to do streaming music when you are not near to your iPhone. or
Watch extensions are depends upon phone to make network calls.
before starting development we are confused .

I don't think that is possible. You can't play a sound on the Apple Watch speaker.
When you play a sound from the extension, it is played on the iPhone as the extension lives on the iPhone.
The only way to play a custom sound through the Apple Watch is to set a custom sound file for a notification but I don't think this fits your case.

As of watchOS 6, it is now possible to both build a standalone watchOS app and stream audio as well.

Related

Notification Service Extension errors in iOS 12.1 with AVFoundation

Our app use notification service extension to play custom audio. It works fine before iOS12.0(include 12.0).
But when i upgrade to 12.1, and found it can't play custom audio in background.
Most extensions are not allowed to activate an audio session, and so cannot play audio or use speech synthesis. This wasn't being enforced consistently prior to iOS 12.1, but now it is.
Some extensions (such as notification content extensions) present UI to the user, and those are allowed to activate an audio session.
Background modes in info.plist are not allowed for app extensions (and will get your app rejected by App Review)

DLNA support for iOS video app

I am developing an video player app on iOS and I am now thinking about how to support DLNA so that my app can mirror its online video to the TV with some DLNA-supported device.
Notice that the online video is playing on my app via WIFI or cellular network and I could switch it to be played on TV and my app becomes a remote control and a server to the TV.
Which framework should I use?
I already know Cyberlink and PlatinumKit.
I have worked on DLNA with iOS and Android device. I did not used the Cyberlink or PlatinumKit. I learned how it works and write with swift and java.
Here is my blog about the subject, if you only want the part of DLNA to find DLNA device and stream the video to the device, then control events like play, pause and seek. You could find all the material you need here.
https://eliyar.biz/DLNA_with_iOS_Android/

Play Apple Music through 3rd party app on tvOS?

As we can play apple music songs by third party applications on iOS.
As we know Apple given Apple Music Support on tvOS as well. So is it possible to play Apple Music songs from my tvOS application like iOS
On Apple Documentation here it is clearly said that Apple Music is only possible to play by using MPMusicPlayerController but it seems that Apple haven't given access of MPMusicPlayerController in tvOS
any idea.
Short Answer: No, you are not able to play music from Apple Music in your own apps.
Music Library
MPMusicPlayerController and the rest of the MediaPlayer.framework are a set of classes that allow you to play (and browse) the users Music Library.
The Music Library is actually different to Apple Music, it's the collection of music stored on the users device. This could be music purchased through the iTunes store, songs synced through iTunes on a computer or tracks from Apple Music downloaded to the device for offline playback.
Because the Apple TV isn't a portable device, it doesn't really make sense to have a physical music library on the device (it's permanently connected to the internet) so without a physical music library there is no point giving developers access to it.
This is why MPMusicPlayerController isn't available on tvOS.
Apple Music API
If however you wanted access to an actual Apple Music API (like the one Sonos use), you are also out of luck i'm afraid.
This API allows third parties to connect with the Apple Music platform and allow streaming of music directly from Apple's servers however as far as i've seen, Apple only work with select manufacturers (currently only Sonos that we know of) and it doesn't really make sense for them to open something like that up to the public.
With multitasking and the ability to play Apple Music already on the Apple TV already there isn't really a reason why Apple should need to give developers access to play Apple Music within their own apps.
Own Music
If you actually wanted the ability to play your own music files on tvOS, you could do this using AVAudioPlayer.
The Apple Music API is iOS only and isn't (yet) available for apps written for tvOS.

How to manage multiple Airplay receivers on iOS?

I want to create an app that can play music from my iOS device to multiple Airplay speakers. I know that MPVolumeView natively lets you do this on 1 Airplay receiver, so that is not the solution I need. There is an iOS app in the store that does this: Whaale.
How do they do it? I am happy to use private APIs, as I do not plan to release this as a public app right now.
While I cannot answer specifically, I can point you to a few things I've discovered:
- There are a few apps that do this for IOS.
- All of them have the limitation that they can only stream music that is not through itunes and that exist on the device as music files.
- no streaming is available (Pandora, Spotify, etc.)
Good Luck!
Robert

iOS multiple HTML5 audio status

It is documented all over the web that the iOS does not support multiple HTML5 audio. I ran a test and here are the observation:
iOS 5 (iPad1) - can play only one audio at a time.
iOS 6 (iPad2) - can play multiple audio.
iOS 7 (iPad3) - can play multiple audio.
It looks like on iOS 6 & 7, we can play multiple HTML5 audio, but to my surprise i could not find any discussion regarding this over the web, also apple documentation still says "Currently, all devices running iOS are limited to playback of a single audio or video stream at any time"
I am not sure if multiple HTML5 audio will work across all devices which support iOS6 and iOS7, also will apple continue to support this with next version of iOS, does anyone has any idea about this?

Resources