Change seconds display in 360 player?

Is it possible to change the display from just seconds to minutes and seconds in the 360 player? It's hard to figure out how long something has been playing when it shows something like "692"!
1 person has
this question
+1
Reply
  • Scott (Official Rep) June 24, 2011 00:03
    Indeed, there's a config option for that. I agree, not useful if you have long sounds playing! ;)

    In the 360player.js file, set "showHMSTime" to true. By default, it's false.
    showHMSTime: false, // hours:minutes:seconds vs. seconds-only
    The only thing you may also need to consider here is font size, if you're using the small player UI - the font may not always fit within the circle if you get up to an hour, and so on.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • I had tried that, but it didn't work. I ended up changing the line
    showHMSTime: has_vis
    to
    showHMSTime: true
    in the thisSound._360data section, and then it worked. Is there some sort of bug or bad coding preventing the this.config options from affecting this?
    • view 1 more comment
    • I just made the circle bigger so I could enlarge the fonts and show the whole time string. That's easy enough to do.
    • Scott (Official Rep) June 24, 2011 13:54
      Perfect. Glad you were able to sort that out. This code is optimized (I guess :D) for the most common use cases, ie., less-experienced users/developers who want a few layout options to switch. Usually the options are more flexible, the timing and size stuff gets a little tricky here because of the logic around space constraints.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • I couldnt get this working either it was the only setting in my config that didnt work for me. I changed it to true directly in the 360player.js file and it still didnt work so I looked at the specific lines of code and there must be an error as I had to hack it. I commented it out and just set it to do that regardless of whether it is true or false.

    Not nitpciking but for a track you really need track style time. Awesome work!!!

    this.updatePlaying = function() {
    //var timeNow = (this._360data.showHMSTime?self.getTime(this.position,true):parseInt(this.position/1000, 10));

    var timeNow=self.getTime(this.position,true);
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated