Media Accessibility

RSS for tag

Coordinate the presentation of closed-captioned data for your app's media files using Media Accessibility.

Media Accessibility Documentation

Posts under Media Accessibility tag

5 Posts
Sort by:
Post not yet marked as solved
0 Replies
353 Views
Hello, I want to fetch all local music files from an iPhone device. I tried MPMediaQuery but I can get only that file which is in the document folder.If we use UIDocumentpicker we can fetch all files from the iPhone (downloads, File Application)after selection by the user. I want to fetch all music files like UIDocumentpicker but without user interaction. Thanks in Advance for your guidance.
Posted Last updated
.
Post not yet marked as solved
0 Replies
404 Views
This is my first time here, and I'm excited to seek assistance in creating my own VPN app. While I do have some experience with Swift 5, I'm not sure where to begin. I've successfully set up my VPN server using L2TP IPsec, and it has been running smoothly for several months. I can manually connect to it using my iPhone and Mac without any issues.
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.3k Views
0 I am adding a demo code here of my problem. For this I have created a parent view in which I have 2 child views, I have added "accessibilityElement(children: .combine)" code to the parent view, which combines all the elements while I tap on the view. but I want if the user tap on the parent view then the voiceover should speak all views but if the user taps on a button, then it should separately speak the button. Requirement: If the user taps on the parent view then it should speak all the elements of the view but if the user taps on the button then it should only speak the button, not the full view again. Demo Video link: https://drive.google.com/file/d/1aOuDoTiDizQstfEHiTy-8OoGqXcD_uk0/view?usp=sharing In this video, I want if the user taps on the button it should speak only button, not the full view again. The sample code: import SwiftUI struct ContentView: View { var body: some View { VStack(alignment: .leading, spacing: 10) { topView Button("Show details") { print("Tapped show detail") }.accessibilityElement() .accessibilityLabel(Text("This is show detail")) // I want if user tap on this button separatly then it should only speak the button lable only, not the full content again. bottomView }.accessibilityElement(children: .combine) // By this code it will read the topView, button, and bottomView .padding() } @ViewBuilder private var topView: some View { VStack(alignment: .leading, spacing: 5) { Text("First Text") Text("Second Text") } } @ViewBuilder private var bottomView: some View { VStack(alignment: .leading, spacing: 5) { Text("Third Text") Text("Fourth Text") } } } Requirement: If the user taps on the parent view then it should speak all the elements but if the user taps on the button then it should only speak the button, not the full view again.
Posted Last updated
.
Post not yet marked as solved
0 Replies
699 Views
With the availability of Whisper.cpp I've found myself making transcripts of hour long podcasts and other media and using javascript and HTML 5 have made some locally running websites that can play my audio or video with the transcript below where I can click anywhere in the transcript and the media will jump to that location. To do this I have to manually code in the files in my local HTML file as I am not doing any actual web hosting and wanted to see how would I do this in Swift either as a playground or as an application. I'm not a programmer by profession so I'm out of my depth but this is for personal use on my Mac and possibly on my iPad. Any help or helpful links would be appreciated that could help me as I'd need to: -add audio or video file (not streaming) -add webvtt file -show media controls -show transcript with time code hidden for readability -sync and highlight audio that is spoken -jump/skip media when another part of transcript is tapped or clicked And lastly more of a wish list item but ability to save paired media within app as a project and be able to store hundreds more and just tap on a project and have it load the accompanying saved media and vtt I've loaded. An HTML example of this I got working locally in an HTML file was inspired by the following: https://github.com/umd-mith/webvtt-player Demo Page: https://umd-mith.github.io/webvtt-player/index.html
Posted
by Jman.
Last updated
.