One place the operating system displays that data is within something called "Now Playing." Now Playing is a great way for users to quickly see and control the media that they’re enjoying right now. Once the Browser has all this metadata available, it can provide that metadata to the rest of the operating system and present it to your users outside of the browser window itself. It can even tell the browser that the current content is an advertisement that can be skipped. It can provide artwork for the current playback item. Your site can tell the browser the current play state, the duration of your content. Media Session is a standard Web API which allows your site to tell the browser - Safari - more about the current state of media playback within your page. Once the fallbackURL is loaded in Safari, your site will need to implement a few simple but important Web APIs. When a Watch Together invitation is issued by an iPhone user to a user on a Mac, Safari will be launched and asked to load the URL that you provide in GroupSessionActivity. The fallbackURL must identify not just your website, but the specific content to be played. In order to join a GroupActivities session with Safari, a user with your iPhone or iPad app will need to create a GroupSessionActivity with a fallbackURL that points to your website. #APPLE SHAREPLAY WWDC HOW TO#It's going to be really great! So, what will it take to add GroupActivities support to the movie trailers website? Before we take a look under the hood of Safari - at the new Web APIs available in Safari 15 - let's talk about how to get your app ready to work with Safari through GroupActivities. I can pause, play, and even seek the video here in Safari, and everyone else in the session will see those same commands reflected in their local video at the same time. When I click that notification, Safari will be launched with a URL for the shared content, and when Sam starts playing the trailer, it will play here in Safari at the same time. It will give me the option to join the session in Safari. When they start playing a new trailer in that app during our call, I’ll be invited to watch that trailer through a notification. Sam loves watching movie trailers, so I’ve asked them to help me test this new Movie Trailers app. I’m on a FaceTime call with my friend Sam. And here’s how it should look once I add support for GroupActivities in that web page as well. But my movie trailers app also has a website. I’ve already added support for GroupActivities to my app, and that lets friends watch movie trailers together over FaceTime. I’ve been working on an iPhone application that lets you watch movie trailers. And that’s what I’m going to show you how to do in this session. #APPLE SHAREPLAY WWDC DOWNLOAD#And if your application has a companion website, you can bring that same amazing SharePlay experience to your Mac Safari 15 users, without requiring those users to download your app from the App Store. And on macOS Monterey, you can bring that same experience - along with your great iPhone and iPad apps - to Mac using Catalyst. In the previous session, you learned how to create an amazing SharePlay experience in your iPhone and iPad applications with GroupActivities. So let’s start by talking a little bit about SharePlay and Safari. An introduction to coordinated playback in Safari how to prepare your iOS app to work with SharePlay in Safari how to adopt the Media Session API in your app's web page and a new web API for coordinating playback across multiple devices. In this session, we'll cover four topics. And now with GroupActivities, it’s easier than ever to provide a SharePlay experience to your users, wherever they are. People love watching their favorite shows and movies and listening to their music together, whether it’s with people in the same room, next door, or on the other side of the world. ♪ Bass music playing ♪ ♪ Jer Noble: Hello, I'm Jer! And I work on media playback in WebKit and Safari here at Apple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |