To summarize my question:
I have the same structure of manifest as in that example https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/creating_a_master_playlist:
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=150000,RESOLUTION=416x234,CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/low/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=240000,RESOLUTION=416x234,CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/lo_mid/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=440000,RESOLUTION=416x234,CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/hi_mid/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=640000,RESOLUTION=640x360,CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/high/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=64000,CODECS="mp4a.40.5"
http://example.com/audio/index.m3u8
And case the next: I play the video with audio (by AVPlayer)-> tap button “Audio mode” and want to switch to “Only audio mode” and play only http://example.com/audio/index.m3u8. without downloading video chunks. Also vice versa(switch from audio only to audio with video). Is It possible?
What I have tried:
Select media option selectMediaOption as described in developer.apple.com/documentation/avfoundation/mediaplaybackandselection/selectingsubtitlesandalternativeaudiotracks
Remove player from view as described in developer.apple.com/documentation/avfoundation/mediaplaybackandselection/creatingabasicvideoplayeriosandtvos/playingaudiofromavideoassetinthebackground
Set player view frame to 0x0
All above options together
And the result in all cases the same: Audio is playing but I see(by Charles proxy) that AVPLayer also download video chunks. Is it possible to avoid downloading video chunks and save user traffic?
Post
Replies
Boosts
Views
Activity
@Media Engineer
Thank you for your answer.
<<Have you tried -[AVPlayerItem selectMediaOption:inMediaSelectionGroup:]?
I have tried but unfortunately it also doesn't work for me. I see no changes after applying media option: video is continue playing. (video chunks still downloads) The main goal to "say" player to download only audio segments because we have audio only playlist
//.visual doesn't exist
playerView.item?.select(nil, in: asset!.mediaSelectionGroup(forMediaCharacteristic: .legible)!)
playerView.item?.select(audible?.first, in: asset!.mediaSelectionGroup(forMediaCharacteristic: .audible)!)
po playerView.item?.currentMediaSelection
Optional(<AVMediaSelection: 0x60000206cc40, group characteristics and selected options = { AVMediaCharacteristicAudible : <AVMediaSelectionKeyValueOption: 0x6000037ccf80, language = eng, mediaType = 'soun', title = eng> }>)
Hello, I have the same issue.
I've downloaded apple sample project for Managing Audio with SiriKit
https://developer.apple.com/documentation/sirikit/media/managing_audio_with_sirikit
And when I'm trying to handle "Play Game of Thrones on ControlAudio" or "Play Game of Thrones using ControlAudio" phrases in resolveMediaItems(for:with:) method I receive an empty intent.
But it works fine for "Play Game of Thrones in/from ControlAudio".
I have also tried the same queries on Spotify.
And Spotify starts playing music from Game of Thrones to any of those phrases.
What could be the problem?
Thanks in advance.
Thanks a lot. Now it is clear.
I have one more additional question related to this section:
<<An app clip for other business will have separate icons for each business. Please see Create app clips for other business for more information.
As I understood, we can apply custom icons for App Clips for other business only by Maps Connect. If there is no information for other business in Map Connect - default icon with will be used. Imagine situation, that user will download two different App Clips for other business and both of them have the same default icon(for example "Parking" icon). How it will look in App Library?
@Apple Staff Thanks a lot for your answers!
For to be on the same page:
<<An app clip cannot be published independently of its full app. A change in publication status will affect both your app clip and full app.
As I understood, you mean that we cannot deactivate App Clip for current published version and it can be done only for the next release of my app. But I found this help https://help.apple.com/app-store-connect/#/dev5b665db74 (please see section "Deactivate an advanced app clip experience
") . Is this option only available before submitting my app to review? Or this option is only for advanced app clip experience? Or smth else?
<<Details presented in the App Clip Card can be edited for the currently published version of your app clip. These edits will not be immediate as the changes must first be reviewed and then pushed live.
Am I right understood that editing App Card for my currently published application is possible(so, I can replace my header image and text) and after review directly this changes(without resubmitting my app) it will be available for users?