Jump to content

Archived

This topic is now archived and is closed to further replies.

oseehys

Media Player Script on Media Box Not Displaying

Recommended Posts

oseehys

Can someone give me a breakthrough out here?

I have been on the media player for like 5 hours now yet it is still not displaying on my media box or the textbox,

its a free media player on soundclound

Great day ahead to the developers out here...

am trying to install the Toneden media player https://www.toneden.io/player to display my songs on sound cloud, i followed everything on the doc, but obviuosly am missing something i did everything i can for 5 hours yet no breakthrough, am using the textbox as display.

This is the html script i used, what am i missing here? see it below

  1.  
  2. (function() { var script = document.createElement('script')
      script.type = 'text/javascript';
      script.async = true;
      script.src = 'http://sd.toneden.io/production/toneden.loader.js'
      var entry = document.getElementsByTagName('script')[0];
     entry.parentNode.insertBefore(script, entry);
    
    }()); ToneDenReady = window.ToneDenReady || []; ToneDenReady.push(function() { ToneDen.player.create({''enter code here'' dom: '#player', urls: [''https://soundcloud.com/reginaspektor'' ] }); });

Share this post


Link to post
Share on other sites
Simon

please copy your code using the code button in the editor forum, its untreadable just pasting it like that

Share this post


Link to post
Share on other sites
oseehys

Hi guys,

I am currently working on a music website for an artist for bookings, downloads, and sales of his tracks from soundcloud, ever since i showed the client The Toneden Music Player, https://www.toneden.io/player# nothing is good enough again, i followed all the instructions on how to display the player on a textbox and on a media box, yet i could not display it, i went to stack overflow for help with the script, i got the script below from there, that too could not display, so please guys, i have been on this player since one week now, i need some help, am also testing the pl5 on a test site, to try and master it before launch date, while doing that, i also need to work this player, what am i missing? why i cant i display the player easily like a youtube video or a webform, someone said he displayed his own in 5 minutes, in 5 days i have not displayed 1 letter, its so upsetting, please show some love out here, thanks.

<div id="player"></div>

<script>
   (function() {
   var script = document.createElement('script')

      script.type = 'text/javascript';
      script.async = true;
      script.src = 'http://sd.toneden.io/production/toneden.loader.js'
      var entry = document.getElementsByTagName('script')[0];
     entry.parentNode.insertBefore(script, entry);
   }());

   ToneDenReady = window.ToneDenReady || [];
   ToneDenReady.push(function() {
      ToneDen.player.create({''enter code here''
        dom: '#player',
         urls: [''https://soundcloud.com/reginaspektor''
         ]
      });
   });
</script>

 

Share this post


Link to post
Share on other sites
Simon

you have double quotes in the code for a start...

urls: [''https://soundcloud.com/reginaspektor''
ToneDen.player.create({''enter code here''

 

Share this post


Link to post
Share on other sites
oseehys

Dear Simon,

I cannot get the player to  display with that script, but i found a new media play that uses short-code, i have noticed for a long time now that Short-code do not render on my pages, but i came across this link http://englishmike.net/2008/07/07/wordpress-quick-tips-3adding-a-shortcode-to-a-sidebar-widget/  on how to render shortcode on websites that do not render, i inputed this php filter  add_filter('widget_text', 'do_shortcode');  on my child theme style css, funny enough this render the player to display, but after the first display, if i try to refresh the page again, that page will refuse to render, it will just be showing dms loading screen on the page with the shortcode, so i removed the filter and the shortcode is just displaying text on the page.

As i was doing research on it i came across @Simon  git hub https://gist.github.com/Pross/a466bb21785847624eae response on how to render chronos shortcode to display, here by adding that to mu-plugin folder, i will like to tweak that function to my needs for this plugin LBG AUDIO4 HTML5,Radio Player With Playlist - Shoutcast and Icecast, http://codecanyon.net/user/LambertGroup/portfolio?ref=LambertGroup

How can i do that, because that function seems written for the chronos shortcode

Regards

Share this post


Link to post
Share on other sites

  • Similar Content

    • IDdigital
      By IDdigital+
      Hi,
      A site of ours irregularly does not finish loading. The page in question is https://rw360.org/grievance-process/
      In Safari, I'll occasionally get the following error:
      [Error] TypeError: undefined is not an object (evaluating 'a.plModel.init')
          (anonymous function) (site.js:5:91)
          i (jquery.js:2:27455)
          add (jquery.js:2:27750)
          ready (jquery.js:2:29819)
          (anonymous function) (site.js:5)
          Global Code (site.js:5:3421)
      This seems to be a bug in PageLines as far as I can tell. Any suggestions or a fix coming?
      Thanks,
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using a plugin called Speed Booster Pack to speed up the load time of michaelkummer.com. One of the plugin settings, Minimize HTML and JavaScript causes an error that I only get with Pagelines. With other themes, such as WordPress' Twenty Seventeen, I do not get that error.
      I have reproduced the problem on my staging site and if you look at the JavaScript console, you will see the following error:
      SyntaxError: Unexpected end of script
      Any clue what PageLines may be doing differently to be contributing to this issue? I contacted the plugin developer and they, of course, pointed me to the theme developer
      Thanks
      Michael
    • flourishdesignstudio
      By flourishdesignstudio+
      Hello,
      We are working on a site and the customers are complaining that the site loads too slowly. They contacted their host who mentioned that the Java Script is all loading at the beginning. Is it possible to delay the load of the less important Java Script until after the initial load to speed up the site? The goal is to load the page faster by minimizing the initial javascript calls.
      Are there any preferred plugins that you would recommend or does this end up causing excessive problems with plugins, etc.?
      Thanks for the help!
    • chamois_blanc
      By chamois_blanc+
      I am trying to clone a container on a page. It throws the following javascript error:
      function l(b, c, e, f) { var g = m.a.f.get(b, p); if (!c) { if (g) throw Error("You cannot apply bindings multiple times to the same element."); m.a.f.set(b, p, !0) } I would appreciate guidance and a fix. Thank you
    • Jeremiah
      By Jeremiah+
      Error: editing.js?ver=930684:5 Uncaught TypeError: Cannot read property 'getData' of undefined
      I have all of the plugins disabled and I still receive the error.
      Page Editor will not load on page.
       
×