How to have a custom audio for a Voiceover element? - ios

Now, our app, pikSpeak Camera, was recently found useful to blind iOS community as it allowed to capture photos with sound as it allowed them to easily navigate through older pics just using the the audio tags.
The issue that I am facing is that I want to override the Voiceover audio tag associated with an element when a user selects it and instead have a custom audio in the UICollectionViewController cell selection.
Basically, I guess it's easy to disable the VO tag audio but then how do I play a custom audio on VO selection?

Related

Youtube Iframe Player API Developer Policy Inquiries

I would like to ask about developer policies of Youtube Iframe Player API(https://developers.google.com/youtube/iframe_api_reference).
Our team is currently developing an iOS app including Youtube embedded player.
We would like to check if our use cases below violate the rules for embedded youtube player.
Would it be okay if we use invisible player which we set opacity zero for purpose of getting thumbnail images in video?
Thumnails are taken by invisible player in the way as seeking to specific time and capture view at the time.
The thumnails are solely used for progress bar which consist of sequential images as green box in the below image and each image indicates each parts of video and there is no other purposes.
Images are made and used only in client local environment and not saved in our database.
Additionaly, can we provide the thumbnail extracted in the above method which background is removed?
Would it be possible that we hide below title bar which shows when player paused by adjusting CSS style, view frame size ?
Is there the other way to hide title bar ?
it seems that there are other mobile app services in Korea also using embeded player without titlebar like ‘Cake’ ( https://apps.apple.com/kr/app/cake-케이크-영어회화/id1350420987 )
We are developing feature ‘Metronome’ using BPM(beat per minute). for this, we need to use Audio PCM data in Video. regarding this we are currently examining three cases.
is it allowed to extract audio file from video to get PCM data?
is it allowed to access to device’s audio buffer to get PCM data?
is it allowed to record audio with mobile device to make audio file ?
Is it possible to provide a Metronome function that repeatedly plays a specific sound simultaneously with the audio of the Youtube video?
Would it be okay if we invert embeded player left and right? we plan to provide a mirror mode for user so that they practice dance conveniently.
Is it possible to provide a function that play repeatedly the specific time range (ex. from 00:05 to 00:10)?
Is it possible to provide a function that does not play immediately when the play button is pressed, but counts down for a certain period of time, such as 3 seconds, to play?

Is there a way to show custom subtitles track name in AVPlayerViewController

AVPlayerViewController can perform a lot of work like switching audio/subtitles tracks, draw progress bar, retrieving thumbnails etc. On tvOS it automatically display builtin tracks in top bar and accept event from remote control.
It recognize WebVTT subtitles and can display user selected track. But it doesn't work with SMPT-ETT/TTML subtitles. There is a way to manually decode and display subtitles of these formats. But is there a way to add a button with track language to a "Subtitles" chapter?
If you create a new AVMediaSelectionOption of type AVMediaCharacteristicLegible and add it to AVAsset's mediaSelectionGroup(AVMediaSelectionGroup) and provide that asset to the AVPlayer it should show up in that list above the player.

Implement Audio Trimming in iOS

I want to implement audio trimming in iOS, I want something like a two way slider that the user can slide over a particular period of the recorded audio, and then I will save that audio.
Are there any libraries available for it?

AirPlay View in YTPlayerView doesn't appear

I'm using YTPlayerView (YouTube helper library) in my iOS application and according to requirements, I've made custom controls for airplay, share, play etc. For that I've hidden the default controls of YTPlayer using "control" tag.
The problem I'm facing is that, when I play video via airplay on some other media (e.g. appleTV, air server), the default view of YTPlayerView saying "Streaming to ... " Doesn't appear.
I guess it's because I've hidden the default controls.
I want this view to appear on screen whenever user choose other route for video. Unfortunately I'm unable to find the solution. Is there any way to do this or any notification that's fired whenever user switches video route, so that I can place my custom view for that scenario.

Set Airplay manually?

I have an iPad app and I have a video playing in a view. I would like to play video using Airplay but by pressing my own button.
I have set allows airplay = YES and so forth, this works if I enable the full controls, but I want to set no controls and have my own button to play the video using Airplay.
So far, I have found no information that would allow me to play a video on AppleTV without allowing the normal controls.
So just using an UIButton action to force the airplay, or at least get available devices and set it manually. Anything that would allow me to do this.
MPVolumeView will only control audio, it won't control video. For that you'd need iOS 5's AVPlayer, or a movie controller.
An alternative for you might be to use AirplayKit, a 3rd party library.
https://github.com/rothacr/AirplayKit
To answer my own question.
This is quite possible without jailbreak.
Here is apple's own page explaining this, so this will pass the review process.
Apple developer library document explaining how to do this

Resources