Skip to content

Issue with Youtube videos #22

@ipodishima

Description

@ipodishima

If you play a youtube video in fullscreen, you won't be able to touch the movie ...
So, after inspecting the hitTest in CLSplitCascadeView, I saw some views :
MPTransportButton, MPDetailSlider, UINavigationButton, MPVideoView

So, place the code at the begining of hitTest :
(maybe the substring to index MP is not ideal, but works for my project).

UIView *normalBehaviourView = [super hitTest:point withEvent:event];

if([normalBehaviourView isKindOfClass:NSClassFromString(@"UINavigationButton")] 
   || [[NSStringFromClass([normalBehaviourView class]) substringToIndex:2] isEqualToString:@"MP"])
{
    return normalBehaviourView;
}

Or

if( [normalBehaviourView isKindOfClass:NSClassFromString(@"UINavigationButton")]
|| [normalBehaviourView isKindOfClass:NSClassFromString(@"MPTransportButton")]
|| [normalBehaviourView isKindOfClass:NSClassFromString(@"MPDetailSlider")]
|| [normalBehaviourView isKindOfClass:NSClassFromString(@"MPVideoView")])
{
return normalBehaviourView;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions