/*
* Copyright (C) 2013 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.sourceforge.servestream.widgets;
import net.sourceforge.servestream.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
/**
* A compound component that provides a superset of functionalities required for the global access
* requirement. This component provides an image for the album art, a play/pause button, a seekbar
* for trick-play with current time and duration and a mute/unmute button. Clients can add this
* compound component to their layout xml and register that with the instance of
* {@link VideoCastManager} by using the following pattern:<br/>
*
* <pre>
* mMiniController = (MiniController) findViewById(R.id.miniController1);
* mCastManager.addMiniController(mMiniController);
* mMiniController.setOnMiniControllerChangedListener(mCastManager);
* </pre>
*
* Then the {@link VideoCastManager} will manage the behavior, including its state and metadata and
* interactions.
*/
public class MiniController extends RelativeLayout {
/**
* @param context
* @param attrs
*/
public MiniController(Context context, AttributeSet attrs) {
super(context, attrs);
LayoutInflater inflater = LayoutInflater.from(context);
inflater.inflate(R.layout.mini_controller, this);
}
/**
* Constructor
*
* @param context
*/
public MiniController(Context context) {
super(context);
}
}