InbandTextTrackPrivateLegacyAVFObjC.h [plain text]
#ifndef InbandTextTrackPrivateLegacyAVFObjC_h
#define InbandTextTrackPrivateLegacyAVFObjC_h
#if ENABLE(VIDEO) && USE(AVFOUNDATION) && !HAVE(AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT) && !PLATFORM(IOS)
#include "InbandTextTrackPrivateAVF.h"
#include <wtf/RetainPtr.h>
OBJC_CLASS AVPlayerItemTrack;
namespace WebCore {
class MediaPlayerPrivateAVFoundationObjC;
class InbandTextTrackPrivateLegacyAVFObjC : public InbandTextTrackPrivateAVF {
public:
static PassRefPtr<InbandTextTrackPrivateLegacyAVFObjC> create(MediaPlayerPrivateAVFoundationObjC* player, AVPlayerItemTrack *track)
{
return adoptRef(new InbandTextTrackPrivateLegacyAVFObjC(player, track));
}
~InbandTextTrackPrivateLegacyAVFObjC() { }
InbandTextTrackPrivate::Kind kind() const override;
bool isClosedCaptions() const override;
bool containsOnlyForcedSubtitles() const override;
bool isMainProgramContent() const override;
bool isEasyToRead() const override;
AtomicString label() const override;
AtomicString language() const override;
void disconnect() override;
Category textTrackCategory() const override { return LegacyClosedCaption; }
AVPlayerItemTrack *avPlayerItemTrack() const { return m_playerItemTrack.get(); }
protected:
InbandTextTrackPrivateLegacyAVFObjC(MediaPlayerPrivateAVFoundationObjC*, AVPlayerItemTrack *);
RetainPtr<AVPlayerItemTrack> m_playerItemTrack;
};
}
#endif // ENABLE(VIDEO) && USE(AVFOUNDATION) && !HAVE(AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT) && !PLATFORM(IOS)
#endif