Skip to content

Commit

Permalink
adds demo gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweekriti91 committed Jun 11, 2021
1 parent 64de970 commit 479f27b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Binary file removed Images/Droid_Cast.gif
Binary file not shown.
Binary file added Images/Droid_Cast_DEMO.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Images/iOS_Cast.gif
Binary file not shown.
Binary file added Images/iOS_Cast_DEMO.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ The two UI Components that are native but we will show in our Xamarin.Forms shar

## Xamarin.iOS

<img src='Images/iOS_Cast_DEMO.gif'>

### Setup Player

For the Xamarin.iOS app, the implementation shows how to implement the player page as a full Page Renderer. [PlayerPageRender](XamCast.iOS/Renderers/PlayerPageRenderer.cs) is where we implement the Video Player for local playback , the Cast Button and setup the Session Hooks into the Cast Sessions. The Video player is using [AVPlayer](https://docs.microsoft.com/en-us/dotnet/api/avfoundation.avplayer?view=xamarin-ios-sdk-12) and the setup for that is as you would normally for video playback.
Expand Down Expand Up @@ -173,6 +175,8 @@ CastContext.SharedInstance.UseDefaultExpandedMediaContrtrue;

## Xamarin.Android

<img src='Images/Droid_Cast_DEMO.gif'>

### Setup Player

For the Xamarin.Android app, the implementation shows how to implement the player page as an Embedded Native Activity. [PlayerActivity](XamCast.Android/PlayerActivity/PlayerActivity.cs) is where we implement the Video Player for local playback , the Cast Button and setup the Session Hooks into the Cast Sessions. Another reason needed for this approach is because of the way the Chromecast SDK is implemented for native android, it ties directly into the Activites. The VideoPlayer is using the [VideoView](https://docs.microsoft.com/en-us/dotnet/api/android.widget.videoview?view=xamarin-android-sdk-9) and the setup for that is as you would normally for video playback.
Expand Down Expand Up @@ -338,6 +342,7 @@ As for Testing, unfortunately as seen in the Google [Documentation](https://deve

The Cast Session Management hooks into the video player events pretty agnostic to the player itself, so if you are using a custom player or any third party non-native video player, it should still be possible to connect it with the Chromecast SDK.


## Wrap-up

You can find the [sample here](https://github.com/xamcat/XamCast) and I hope that you found a bit of inspiration in this blog post to make your Video Streaming app. Cast all the things!
Expand Down

0 comments on commit 479f27b

Please sign in to comment.