Raised This Month: $12 Target: $400
 3% 

[ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )


Post New Thread Reply   
 
Thread Tools Display Modes
MaloModo
Veteran Member
Join Date: Aug 2008
Old 10-23-2018 , 19:52   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #121

Does anyone mind patching this up some? It has becoming some "buggy" the last few updates (eg songs don't play after using commands in chat). But you can manually get them to play if you open window and manually start playing. This is obviously some what not ideal.
MaloModo is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 10-24-2018 , 14:43   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #122

I've tried to fix this, but it seems like the ingame browser has had audio/video autoplay disabled, just like the recent chrome updates. Unfurtunately, there doesn't seem to be any way around it.
Alienmario is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 10-24-2018 , 15:12   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #123

Quote:
Originally Posted by Alienmario View Post
I've tried to fix this, but it seems like the ingame browser has had audio/video autoplay disabled, just like the recent chrome updates. Unfurtunately, there doesn't seem to be any way around it.
Ok thx for update m8......
MaloModo is offline
Ivan_hl2dm
New Member
Join Date: Nov 2018
Old 11-02-2018 , 12:30   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #124

Quote:
Originally Posted by Alienmario View Post
I've tried to fix this, but it seems like the ingame browser has had audio/video autoplay disabled, just like the recent chrome updates. Unfurtunately, there doesn't seem to be any way around it.
Hi! Thanks for this best plugin! I solved this problem:
Add in soundcloud.php in <iframe src="xxx" allow="autoplay;">

Iframe delegation
A feature policy allows developers to selectively enable and disable use of various browser features and APIs. Once an origin has received autoplay permission, it can delegate that permission to cross-origin iframes with a new feature policy for autoplay. Note that autoplay is allowed by default on same-origin iframes.

<!-- Autoplay is allowed. -->
<iframe src="https://cross-origin.com/myvideo.html" allow="autoplay">

<!-- Autoplay and Fullscreen are allowed. -->
<iframe src="https://cross-origin.com/myvideo.html" allow="autoplay; fullscreen">
When the feature policy for autoplay is disabled, calls to play() without a user gesture will reject the promise with a NotAllowedError DOMException. And the autoplay attribute will also be ignored.

https://developers.google.com/web/up...changes#iframe
Ivan_hl2dm is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 11-09-2018 , 14:20   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #125

Quote:
Originally Posted by Ivan_hl2dm View Post
Hi! Thanks for this best plugin! I solved this problem:
Add in soundcloud.php in <iframe src="xxx" allow="autoplay;">
I've tried that, didn't work in game. Did you test in-game?

Last edited by Alienmario; 11-09-2018 at 14:21.
Alienmario is offline
Ivan_hl2dm
New Member
Join Date: Nov 2018
Old 12-02-2018 , 06:19   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #126

Quote:
Originally Posted by Alienmario View Post
I've tried that, didn't work in game. Did you test in-game?
Yes it`s work. But:

Need to enter !scopen and click once on play.
after that it will start automatically

I rewrote the soundcloud.php a bit.
Maybe this will help.
PHP Code:
<script type="text/javascript">
    function whenAvailable(name, callback) {
    var interval = 1000; // ms
    window.setTimeout(function() {
        if (window[name]) {
            callback(window[name]);
        } else {
            window.setTimeout(arguments.callee, interval);
        }
    }, interval);
}

whenAvailable("widget", function(t) {

    setTimeout(function () {
            //Check if the current URL contains '#'
            if(document.URL.indexOf("#")==-1){
                // Set the URL to whatever it was plus "#".
                url = document.URL+"#";
                location = "#";

                //Reload the page
                location.reload(true);
                // window.location.href= "https://www.youtube.com/watch?v=iFYVYDxUDqA"; // the redirect goes here
            }

    },1000);

    widget.setVolume(<?php echo $volume;?>);
        widget.bind(SC.Widget.Events.PLAY_PROGRESS, function() {
        widget.seekTo(<?php echo $seek;?>);
        widget.getPosition(function(position) {
            if(position == <?php echo $seek;?>){
                widget.unbind(SC.Widget.Events.PLAY_PROGRESS);
            }
        });
    });
    //alert("It's loaded!");

});
</script>

<script type="text/javascript">
//window.onload = function () { alert("It's loaded!") };

    var widget = SC.Widget(document.querySelector("iframe"));

    widget.bind(SC.Widget.Events.READY, function() {
        widget.setVolume(<?php echo $volume;?>);
    });
    console.log(widget);
    widget.bind(SC.Widget.Events.PLAY_PROGRESS, function() {
        widget.seekTo(<?php echo $seek;?>);
        widget.getPosition(function(position) {
            if(position == <?php echo $seek;?>){
                widget.unbind(SC.Widget.Events.PLAY_PROGRESS);
            }
        });
    });

var iframe = document.querySelector("iframe");


</script>
Ivan_hl2dm is offline
Ivan_hl2dm
New Member
Join Date: Nov 2018
Old 12-02-2018 , 06:28   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #127

Chrome's autoplay policies are simple:

Muted autoplay is always allowed.
Autoplay with sound is allowed if:
User has interacted with the domain (click, tap, etc.).
On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously play video with sound.
On mobile, the user has [added the site to their home screen].
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.

Last edited by Ivan_hl2dm; 12-02-2018 at 06:28.
Ivan_hl2dm is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 12-02-2018 , 12:01   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #128

Quote:
Originally Posted by Ivan_hl2dm View Post
Yes it`s work. But:

Need to enter !scopen and click once on play.
after that it will start automatically

I rewrote the soundcloud.php a bit.
Alright, turns out you just need that part which reloads the page, then it works, strangely. I've updated the main post. Thanks.
Alienmario is offline
NormanThebeast
New Member
Join Date: Apr 2017
Old 12-24-2018 , 13:10   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #129

How do I fix this?

Blocking HTML info panel '<url here tht works inside crome but not in game>'; Using plain text instead

EDIT:
Game, half life based: No More Room in Hell

Last edited by NormanThebeast; 12-24-2018 at 13:59.
NormanThebeast is offline
ayrton09_arg
Senior Member
Join Date: Nov 2017
Old 02-22-2019 , 09:08   Re: [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #130

hello, in csgo plugin not working, no error logs.
ayrton09_arg is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode