Keyword

[SOLVED] Media controls always visible in audio player

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • New Member
More
7 years 6 months ago - 7 years 6 months ago #164828 by Carlos
Hi!

Using audio player with mp3 local file, media controls are automatically hidden when cursor exit player. It's possible to get media controls always visible?

Thanks!
Last edit: 7 years 6 months ago by Carlos. Reason: Correct typo

Please Log in or Create an account to join the conversation.

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • New Member
More
7 years 6 months ago #164836 by Carlos
I've finally solved this issue myself. I've edited plugins/content/jw_allvideos/jw_allvideos/includes/sources.php file and add this line in the clapprEmbed block:

hideMediaControl: false,

Is possible to add a plugin option to control this?

Thanks!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 5 months ago #164892 by Krikor Boghossian
Replied by Krikor Boghossian on topic Media controls always visible in audio player
Thank you Carlos for your feedback.
This is an enhancement that is worth looking into.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #164897 by Joomlaguy
Replied by Joomlaguy on topic Media controls always visible in audio player
This is a problem, not a request for an enhancement.

I have been using this plug in for years without issue. The player controls for audio files were always visible, as they should be. The controls for videos would Auto hide, as they put to, after a few seconds.

Suddenly, however, the auto hide behaviour is happening for all files. I need the previous behaviour, which distinguishes between audio and video files. Not the same behaviour for each.

Can the software developer restore the functionality that already existed in previous versions of the software?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 5 months ago #164953 by Krikor Boghossian
Replied by Krikor Boghossian on topic Media controls always visible in audio player
As mentioned earlier, you can post this is as a bug or a feature request on our repo.
Furthermore I want to thank you for your feedback.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #165034 by TheAnt

Carlos wrote: I've finally solved this issue myself. I've edited plugins/content/jw_allvideos/jw_allvideos/includes/sources.php file and add this line in the clapprEmbed block:

hideMediaControl: false,

Is possible to add a plugin option to control this?

Thanks!


Please, can you post exactly the correct block here?
Thanks

Please Log in or Create an account to join the conversation.

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • New Member
More
7 years 5 months ago - 7 years 5 months ago #165035 by Carlos
Yes, of course, this is the code:
$clapprEmbed = "
<div id=\"avID_{SOURCEID}\" style=\"width:{WIDTH}px;height:{HEIGHT}px;\" title=\"JoomlaWorks AllVideos Player\"></div>
<script type=\"text/javascript\">
    var player = new Clappr.Player({
        source: '{SITEURL}/{FOLDER}/{SOURCE}.{FILE_EXT}',
        poster: '{PLAYER_POSTER_FRAME}',
        height: '{HEIGHT}',
        width: '{WIDTH}',
        autoPlay: {PLAYER_AUTOPLAY},
        loop: {PLAYER_LOOP},
        //hideMediaControl: {JWPLAYER_CONTROLS},
        hideMediaControl: false,
        parentId: '#avID_{SOURCEID}'
    });
</script>
";
Last edit: 7 years 5 months ago by Carlos.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #165036 by william white
Replied by william white on topic Media controls always visible in audio player
It appears that there is a commented line in the source code already refering to JWPLAYER_CONTROLS but there is no language string for it or a field defined in the xml file.
There are more than one instance of JWPLAYER_CONTROLS in sources.php and there may be a reason it was commented and left out.
Needs testing as it may have broken something else we are not aware of

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #165037 by TheAnt
Thanks a lot

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #165222 by Arco
Same issue here. Only black rectangles on my website. Videos worked fine (Youtube), but the plugin’s appearance for audio files was horrible. Changing the sources.php file did not do the trick for me; I had to increase the height to at least 50 pixels for the audio player (whereas before it was only 24), but still there was only one centered play button. The other controls appeared after clicking it. That wasn’t an option for me. Besides that, doubling the height messed up the page layout. So here’s what I did: uninstall version 4.8 and then install version 4.7 that I still had on my pc. Works like a charm now.

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #165457 by Alex Walker
Replied by Alex Walker on topic Media controls always visible in audio player
I have the same issue. I tried rolling back but that didn't work. The audio plays but there are no controls. I do have admintools installed. Do I need to create an exception rule for the htaccess file?

www.acalltoaction.org.uk/news/397-the-bishops-statement-on-magnum-principium

Joomla: 3.8.2
php: 7.0.25
MySQLi 5.6.36-82.1-log
Allvideos: 4.8.0

imgur.com/PXJj9QS

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #165697 by Camille
Replied by Camille on topic Media controls always visible in audio player
Hello ! Same problem after update. Thanks to Carlos for its idea (adding a line in sources.php). It helps before to have an update to repair this bug.
Yes, it's necessary to increase the height of the box (for me : 64px).
Yes, first we have only the arrow, controller appears only after clicking on the arrow. But it's beter than nothing.

Yes, there is a commentated line in sources.php, the same line hideMediaControl. It seems the corresponding setting in the plugin is missing, no ?

I compare with the file from an older version. This line was
controls:{JWPLAYER_CONTROLS},
In the new file, this line is only there in theJW Player embed templates for $jwPlayerEmbed and $jwPlayerEmbedRemote.

I see an other difference between both files : in the new version there are no '' around source, poster, .... Why ?

thanks a lot !

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 4 months ago #165718 by Krikor Boghossian
Replied by Krikor Boghossian on topic Media controls always visible in audio player
Hello, JWPLAYER_CONTROLS refers to JWPlayer, the main player is now Clappr. In the sources file you can manually select which player to use

github.com/joomlaworks/allvideos/blob/master/plugin/jw_allvideos/includes/sources.php#L155-L156

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #167540 by Oliver Pfister
Replied by Oliver Pfister on topic Media controls always visible in audio player
Patch to show correct audio player height of 84px

In AllVideos plugin configuration:
Default height (in px) for audio player: 84 (that should now be the default)
Display JW Player controls: yes (here the developer could remove "JW")


In sources.php:
$clapprEmbed = "
...
hideMediaControl: !{JWPLAYER_CONTROLS},
...
$clapprEmbedRemote = "
...
hideMediaControl: !{JWPLAYER_CONTROLS},
...


In responsive template.css:
...
.avAudio .avPlayerContainer .avPlayerBlock > div {min-width:100%!important;width:100%!important;height:84px!important;}
...

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #167541 by Oliver Pfister
Replied by Oliver Pfister on topic Media controls always visible in audio player
To fix also the manual download height in responsive template.css:

...
.avAudio .avPlayerContainer .avPlayerBlock > div {min-width:100%!important;width:100%!important;height:84px!important;}
.avAudio .avPlayerContainer .avPlayerBlock .avDownloadLink {height:24px!important;}
...

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 4 days ago #167568 by Krikor Boghossian
Replied by Krikor Boghossian on topic Media controls always visible in audio player
Thanks :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #167673 by Goran Aasen
Replied by Goran Aasen on topic Media controls always visible in audio player

Arco wrote: Same issue here. Only black rectangles on my website. Videos worked fine (Youtube), but the plugin’s appearance for audio files was horrible. Changing the sources.php file did not do the trick for me; I had to increase the height to at least 50 pixels for the audio player (whereas before it was only 24), but still there was only one centered play button. The other controls appeared after clicking it. That wasn’t an option for me. Besides that, doubling the height messed up the page layout. So here’s what I did: uninstall version 4.8 and then install version 4.7 that I still had on my pc. Works like a charm now.


I had the same problem with only black rectangles, and after reinstalling the 4.7 version everything is back working again.
Thanks a lot for sharing.

I do hope the developer fixes this in the later versions.

Reg.
Goran

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #167687 by Krikor Boghossian
Replied by Krikor Boghossian on topic Media controls always visible in audio player
Can you send me a link to the issue please?
(With 4.8 installed)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago - 6 years 11 months ago #167690 by Goran Aasen
Replied by Goran Aasen on topic Media controls always visible in audio player
Have a look at : www.samerhatoum.com/my-works/listen-to-my-music
The above is with an Artisteer template.

The link below is same website with Themler:
www.samerhatoum.com/my-works/listen-to-my-music?template=samhat387&is_preview=on
Last edit: 6 years 11 months ago by Goran Aasen. Reason: Added link to another template

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #167714 by Goran Aasen
Replied by Goran Aasen on topic Media controls always visible in audio player
Hi again Krikor,
I didn't hear back from you, so have now downgraded to 4.7 again as this is a live site.
Let me know if and when you need to look at this, and I can upgrade again accordingly.

Reg.
Gøran

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum