![]() ![]() The app fetches a list of videos from a remote web server and provides a list for the user to browse. Note, as you're working through this codelab, you will need to rehost the sample on your server depending on the service. Run the app using your server and explore the UI.Select the app-start directory from your sample code download.Now you're ready to build on top of the starter project using your favorite text editor: ![]() a receiver app runs on the Google Cast device.a sender app runs on a mobile device or laptop,.Here are some Google Cast terminology that we will be using in this codelab: We need to add support for Google Cast to the start app you downloaded. Click on the play button in the video element to continue playing the video again.Ĭlick on the Cast button to stop casting to the Google Cast device. The video will start playing on your Google Cast device.Ĭlick on the pause button in the video element to pause the video on the receiver.Select a video, click on the play button.Click the Cast button and select your Google Cast device.In your browser, visit the https URL for the sample you hosted. Once you have the service of your choice set up, navigate to app-done and start your server. If you don't have a server available to use, you can use Firebase Hosting or ngrok. To be able to use the completed, it needs to be hosted. The user can select a video from a list and can then play the video locally on the device or Cast it to a Google Cast device. app-done-The complete code for the finished sample video app.įirst, let's see what the completed sample app looks like.app-start-The starting code that you'll build upon in this codelab.The cast-videos-cast codelab repository contains two sample projects: You can download all the sample code to your computer. How will you use this tutorial? Read it through only Read it and complete the exercises How would you rate your experience with building web apps? Novice Intermediate Proficient How would you rate your experience with watching TV? Novice Intermediate Proficient If you are in a location where the WiFi network isn't reliable, then the Chromecast device can be wired by using an ethernet adapter for Chromecast or for Chromecast with Google TV. You will also need previous knowledge of watching TV :).You will need to have previous web development knowledge.If you do not have one, feel free to skip the Add Cast Connect Support step, towards the end of this tutorial. A Chromecast with Google TV is required to test Cast Connect integration but is optional for the rest of the Codelab. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |