Skip to content

YouTube snippet shows address bar #16

@zeniko

Description

@zeniko

The YouTube snippet shows the GtWebView address bar above the video.

Under Windows, this address bar contains a data: URL which is quite large (spanning several lines), taking away screen space.
Under OS X, the address bar contains about:blank and clicking reload indeed blanks out the video.

As a work-around, I've added the following to my startup.st:

LeYoutubeReferenceElement compile:
	((LeYoutubeReferenceElement methodNamed: #updatePicture) sourceCode
		copyReplaceAll: '</iframe>'' ' with: '</iframe>''; removeChildAt: 1 ').

which hackily removes the address bar element, as I haven't found a more elegant way of hiding it through GtWebView's API.

Thanks for the fix.

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