Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8331819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:32:05+00:00 2026-06-09T02:32:05+00:00

My idea is to save the player’s current state(play, pause or stop), playlist and

  • 0

My idea is to save the player’s current state(“play”, “pause” or “stop”), playlist and the track’s time as soon as user navigates away from this page or reloads it. As soon as the page reloads, the player should continue playing last track (if we reloaded the page when player was playing) from the last location (time).

But I’m facing a strange behaviour. When the player is playing the track and I reload the page, the player, it does does what I wanted plus it plays the same track twice overlapping each other One more thing, you can control one track but I don’t know where the other one is playing?

Try to pause and then play to see if two tracks are playing.

Here’s the code that loads the playlist, calls play() and then seek() of flowplayer

            function reLoadPlaylist(id){
                $f(id).play(playlist);
                $f(id).pause();
                window.setTimeout(function(){
                    $f(id).seek(currentTime);
                    switch(playState){
                      case 'play':
                          $f(id).resume();
                          break;
                      case 'pause':
                          $f(id).pause();
                          break;
                      case 'stop':
                          $f(id).stop();
                          break;
                    }
                  },2000);
                }

playlist is a JSON object, if defined it looks like this:

    playlist: [{
      url : 'framing.mp3',
      title : 'Farming'
    }]

Any idea what’s wrong?
Check out the behaviour live (URL Updated)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:32:07+00:00Added an answer on June 9, 2026 at 2:32 am

    For the record, I am adding this as the answer.
    So re posting my comment as an answer.

    Ok, I have figured it out my self! $f(id).pause(), after the $f(id).play() caused the problem. This question is closed from my side. thanks to @RyanKina for helping

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had an idea to save time involving creating a temporary function to use
I'm trying to implement the following idea: When you save a User is a
Any idea on how to create and save a new User object with devise
Is it a good idea to save user generated values in a .xml file
The idea: I'm just trying to save some Chinese characters to a MySQL database.
Idea: I want to make smth like real time electronic blackboard. Many users have
Any idea on how can I track users bookmarking event? I want to find
When is a good idea to save information in a XML file and when
I have three buttons and need to save some data. I have a idea,
idea Via jQuery, I was able to mark all :first-child and :last-child elements in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.