✅ Black screen and player size

🆓 Auto embed HTML5 video. Webm, MP4 and OGG attachments


Post Reply
DAE avatar
JeffersonCode
Novice
Novice
Posts: 7
Joined: 28 Aug 2020 02:13

✅ Black screen and player size

Post by JeffersonCode »

Hello 3Di, first I would like to thank you for this wonderful extension.
Technically I’m not having any problems with the extension, however, the screen goes black before playing, which is kind of uncomfortable because the user doesn’t know what he’s clicking on.

Another thing, when you press play, the screen expands, but when you finish the video the player is still big, having to press F5 to return it to its original size, would you implement an “x” to return to the original size?

Thank you very much for your attention.

Jefferson


User avatar
3Di
Founder
Founder
Posts: 1454
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

Black screen and player size

Post by 3Di »

Hello and welcome. :)

Hmm, I have never encountered a similar issue in my tests, I will check it out but I need more details about your browser, phpBB version, PHP version etc.. first.

regards.

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


DAE avatar
JeffersonCode
Novice
Novice
Posts: 7
Joined: 28 Aug 2020 02:13

Black screen and player size

Post by JeffersonCode »

3Di wrote:
18 Feb 2021 19:21

Thank you very much for the quick response


Yes of course.

My phpbb is at version 3.3.3

PHP version 7.3.27

I’m using prosilver, but I modified the color by colorizeit

I use google chrome, but I also tested it on opera.

See how it looks. >> https://i.postimg.cc/xTvMz3Xc/texte.png


User avatar
3Di
Founder
Founder
Posts: 1454
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

Black screen and player size

Post by 3Di »

JeffersonCode wrote:
18 Feb 2021 19:04

Technically I’m not having any problems with the extension, however, the screen goes black before playing, which is kind of uncomfortable because the user doesn’t know what he’s clicking on.

OPEN
ext/phpbbstudio/eva/styles/prosilver/template/event/attachment_file_prepend.html


FIND (line # 10)

<video src="{{ _file.URL }}" type="{{ _file.MIMETYPE }}" class="eva-video" controls preload="none"></video>

REPLACE WITH

<video src="{{ _file.URL }}" type="{{ _file.MIMETYPE }}" class="eva-video" controls preload="metadata"></video>

And PURGE THE CACHE once done.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video wrote:

preload

This enumerated attribute is intended to provide a hint to the browser about what the author
thinks will lead to the best user experience with regards to what content is loaded before the video is played.

It may have one of the following values:

    none: Indicates that the video should not be preloaded.
    metadata: Indicates that only video metadata (e.g. length) is fetched.
    auto: Indicates that the whole video file can be downloaded, even if the user is not expected to use it.
    empty string: Synonym of the auto value.

The default value is different for each browser. The spec advises it to be set to metadata.

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


User avatar
3Di
Founder
Founder
Posts: 1454
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

Black screen and player size

Post by 3Di »

JeffersonCode wrote:
18 Feb 2021 19:04

Another thing, when you press play, the screen expands, but when you finish the video the player is still big, having to press F5 to return it to its original size, would you implement an “x” to return to the original size?

Not tested yet, I will check it when I get some spare time. :think: Doesn’t the ESC key do the trick?

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


DAE avatar
JeffersonCode
Novice
Novice
Posts: 7
Joined: 28 Aug 2020 02:13

Black screen and player size

Post by JeffersonCode »

Thank you very much.

Both problems have been solved :D :+1:

Thank you so much for taking your time with me.


Post Reply