I'm developing a tutorial style tvOS app with multiple videos. The examples I've seen so far deal with only one video.
Defining the player and source(url) before body view
let avPlayer = AVPlayer(url: URL(string: "https://domain.com/.../.../video.mp4")!))
and then in the body view the video is displayed
VideoPlayer(player: avPlayer)
This allows options such as stop/start etc.
When I try something similar with a video title passed into this view I can't define the player with this title variable.
var vTitle: String
var avPlayer = AVPlayer(url: URL(string: "https://domain.com/.../.../" + vTitle + ".mp4"")!))
var body: some View {
I het an error that vTitle can't be used in the url above the body view.
Any thoughts or suggestions? Thanks
Post
Replies
Boosts
Views
Activity
I have a TVML style app on the app store that no longer seems to work. I'm working on converting it to SwiftUI after seeing the WWDC video "Migrate your TVML app to SwiftUI".
I've got most of the code working up until I'm trying to display video from a remote source (my website). It looks like the network connection is blocked, maybe.
On a macOS app I see a App Sandbox capabilities that include Network access. I don't see that option for the tvOS app. Am I missing something or is it not needed, and I should look elsewhere?
Thanks, David
What do I need to do with my webpages to enable Safari AI summary functionality?
Thanks, David
The actual error:
pkgbuild: error: Could not find appropriate signing identity for “Developer ID installer: My Name (DeveloperID)”.
I'm trying to sign a program written with gfortran. The steps worked the last time (Mar 23) I built this code.
The steps to error:
a) xcrun notarytool store-credentials --apple-id "***" --team-id "yyy"
Giving Profile Name zzz and App-specific password
b) codesign --force --timestamp --options=runtime -s "Developer ID Application: My Name (yyy)" AppName
c) pkgbuild --root ROOT --identifier org.aaa.bbb --version "1.1.1" --sign "Developer ID installer: My Name (yyy)" AppName.pkg
ROOT contains the package contents
At this point I get the error
pkgbuild: error: Could not find appropriate signing identity for “Developer ID installer: My Name (yyy)”
Are there steps that have changed. Any suggestions?
Thanks, David
What is the best way to demonstrate or create 2D video to demonstrate an immersive video app? So far I've shared the AVP to my desktop Mac and screen captured the resulting view. Rather shaky at times. With visionOS 2.0 beta (2) is there a better way?
Thanks, David
I'm just starting with Immersive Spaces. I am able to view one immersive space but when I tried to open a different one (after restarting the app) I got an error that only one space can be opened (at a time). I added
before the openImmersiveSpace call. Now I see a warning shown in the post title. That is
Unable to dismiss an Immersive Space since none is opened
The app still works but it would be nice to detect when a Space is open so I could check and only close the 'old' space when present before opening the 'new' space.
Any suggestions? Thanks.
David
In a tvOS app I have two buttons and would like to determine which one has focus when selected. Using func pressesBegan works for nw.
override func pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent?) {
guard let selected = UIScreen.main.focusedItem else { return }
Xcode tells me that focusedItem is deprecated and I should use -[UIWindowScene focusSystem].focusedItem instead. Any suggestions on a code snippet that could be used.
Thanks
Is it possible to remove/reset GmeCenter scores for my game app? I'd like to remove all scores so new users can start to compete. Is this possible? The games are educationally based and I'fd like to reset score for a new class.
I installed Sonoma beta on my personal laptop and I find it set-up with a profile. This profile seems to prevent logging into iCloud when started up FreeForm. A bug or something I can fix?
Thanks, David
I'm using Xcode 14.1 to start a Core Data project. I created a new Project, checking CoreData. The resulting program works in Preview and in the Simulator.
I've changed the data from a Item/timestamp to Locations/title. I plan to add more Attributes but that's for later.
I think I've got all the Item instances changed to Locations and timestamp to title. It seems to work OK when in Preview for ContentView.swift but crashes in the Simulator with the error
Swift/UnsafeRawBufferPointer.swift:946: Fatal error: UnsafeRawBufferPointer with negative count
Any suggestions on what I have done wrong? Thanks.
PS, the New Project includes the line Text("Select a location") but Select a location doesn't appear in the Preview.
I was able have an app transferred from another AppleID to my personal AppleID. The transfer seemed to go OK (https://help.apple.com/app-store-connect/#/deved688524f) however there seems to be a problem now when I try to update the app. I've changed 'ownership' where I can see but when I uploaded the new version, the old bundleID no longer matches my new AppleID format.
Do I keep the old bundleID? I'd prefer not delete and recreate the app. That was why I chose the transfer method.
Any suggestions, thanks,. David
HI
I've updated my fortran program and I'm trying to get through the notarizing process.
I created a pkg with >pkgbuild ...
I signed the package with >productsign ...
I created an application password for notarytool
I created store credentials with >xcrun notarytool store-credentials ...
Received:
Success. Credentials validated.
Credentials saved to Keychain.
Requested notarization with >xcrun notarytool submit ...
Submission ID received
Successfully uploaded file
Current status: Waiting....
after a minute or two this changed to
Current status: Invalid...
Could this because the notarizing system doesn't understand Fortran executables or is there something else I've done incorrectly? I have a submission id, is there a way to get more information.
Thanks, David
I've run into this problem before but can't resolve this time.I've downloaded researchKit using git clone -b stable https://github.com/ResearchKit/ResearchKit.gitBuilt it and added it to the ORKCatalog sample. On building that sample I get the error "appledoc is required for building ResearchKit's documentation. See http://appledoc.gentlebytes.com"Any suggestions? Thanks