// Path: app/src/main/java/com/pushapp/press/interfaces/YouTubeFragmentInterface.java
// public interface YouTubeFragmentInterface {
//     String getYouTubeVideoId();
// }


import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.youtube.player.YouTubeInitializationResult;
import com.google.android.youtube.player.YouTubePlayer;
import com.google.android.youtube.player.YouTubePlayerFragment;
import com.pushapp.press.R;
import com.pushapp.press.interfaces.YouTubeFragmentInterface;
package com.pushapp.press.fragment;



/**
 * Created by christopher on 1/8/16.
 */
public class YouTubeFragment extends Fragment {

    private static YouTubePlayer mYoutubePlayer;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

// Path: app/src/main/java/com/pushapp/press/interfaces/YouTubeFragmentInterface.java
// public interface YouTubeFragmentInterface {
//     String getYouTubeVideoId();
// }


// Path: app/src/main/java/com/pushapp/press/fragment/YouTubeFragment.java
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.youtube.player.YouTubeInitializationResult;
import com.google.android.youtube.player.YouTubePlayer;
import com.google.android.youtube.player.YouTubePlayerFragment;
import com.pushapp.press.R;
import com.pushapp.press.interfaces.YouTubeFragmentInterface;

package com.pushapp.press.fragment;



/**
 * Created by christopher on 1/8/16.
 */
public class YouTubeFragment extends Fragment {

    private static YouTubePlayer mYoutubePlayer;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        YouTubeFragmentInterface parentActivity = (YouTubeFragmentInterface)getActivity();