Added youtube window in the app to view trailers without intent to youtube #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
INITIAL STATE
To see the trailers of a movie, the intent was made to the youtube app and the user was watching the trailer there.
WHAT I ADDED
I have added a youtube player window in the app itself. Now upon clicking on a trailer, the user can see the trailer in the app itself without being sent to the youtube app. He can see the trailer in the full window also if he wants.
EXTRA CHANGES MADE
I have changed the FAB button's position in movie_details fragment because the youtube player cannot play any video if some view is floating/placed above it. So I have put it in the top right end between toolbar and fragment screen.
Also, right now I have my own youtube API in the Config file which I am sharing, please make sure to replace it with your own.