Problems with Jwplayer's setCurrentTime Function

Currently, I have integrated the Jwplayer into my website for video playback. I am also incorporating Poll popups that appear at specific intervals and adjust the player's Current Time when closed.

To set the Current Time, I am using _player.setCurrentTime(time).

However, there seems to be an issue with this functionality. For example, setting the time to _player.setCurrentTime(38) actually starts playing the video from 35 seconds instead.

It works correctly when using times like: _player.setCurrentTime(40)//video starts from 40 seconds _player.setCurrentTime(35)//video starts from 35 seconds

The problem only arises with times that are not divisible by 5.

Could you please advise on how to resolve this issue? Any help would be greatly appreciated. Dalvir

Answer №1

The event setCurrentTime is not supported by our API, however onTime is available. For more information on the JavaScript API reference, you can visit . May I ask where you are executing this code?

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to pass a JavaScript object instead of having to manually input image names?

I've been experimenting with the CrossSlide jQuery plugin and while looking at the documentation, I came across this code snippet: <script> $(function() { $('#slideshow').crossSlide({ sleep: 2, fade: 1 }, [ ...

The manner in which sessionStorage or localStorage is shared between different domains

I am looking to persist data across different domains using sessionStorage or localStorage. How can I achieve this? The data needs to be shared between a Vue project and a React project. English is not my strong suit, so I hope you are able to understand ...

What could be causing my toggle button to not trigger my responsive menu in JavaScript?

How can I make the navigation menu open when clicking the hamburger menu in the first list item? I tried using JavaScript to target the `nav-list` class in the second list item, but nothing happens on click. Initially, I had the hamburger icon and links i ...

Using Javascript to segregate JSON object attributes into a fresh array

I have over 100 JSON objects in this specific format: { "grants":[ { "grant":0, "ID": "EP/E027261/1", "Title": "Semiconductor Research at the Materials-Device Interface", "PIID": "6674", "Scheme": "Platform Grants", "StartDate": "0 ...

The issue arises when each child within a list lacks a distinct key property

Hello, I am encountering a minor issue. I would like to create a product details page where all the information about the product is displayed. This can be done by clicking on the product link. However, I am facing the following error: "Each child in a lis ...

Emphasize a passage by clicking on a different section of text

Seeking Assistance I am currently customizing this template which incorporates the MixItUp plugin. My query pertains to highlighting the "filter tab" upon clicking on the corresponding text when hovering over each image, a task I find challenging as a new ...

Exploring the elements of Ext.js gridpanel and content components

Currently, I am diving into the world of Ext.js and finding it to be quite distinct from the asp.net ajax library despite some initial similarities. My goal is to populate a grid with test data formatted in JSON. The code snippet below illustrates my atte ...

Struggling to implement a variety of animated kebab menus with dropdown lists in Laravel 8 without success

If you require more information, feel free to ask. Thanks in advance. In Laravel 8, I have a button named "create app". When I click on it, it takes me to a page where I can add some data. After adding the data, it displays many apps in a list view. Each i ...

How to eliminate grid lines and labels from Chart.js graphs?

Is there a way to hide the grid lines in the Radar chart using chart.js v2 for react? Desired Result, I am looking to hide the inner lines and numbers while keeping the outermost line visible. I tried to implement the following code, but it resulted in a ...

Is there a difference in performance when adding objects to $scope.array compared to using var x = [ ] in AngularJS?

When it comes to tasks like this, I find myself needing to handle situations like the following: $scope.my_array = []; var obj; for (var i = 0; i < data.length; i++) { obj = {}; obj.item1 = data.something; obj.item2 = data.somethingElse; ...

Ensure the text value of a collection of web elements by utilizing nightwatch.js

Recently, I started using nightwatch.js and I am trying to retrieve a list of elements to verify the text value of each element against a specific string. Here's what I have attempted: function iterateElements(elems) { elems.value.forEach(funct ...

The custom policy used in AWS CloudFront getSignedCookies is either invalid or the argument type is incorrect

I need assistance crafting a custom policy for the getSignedCookies function, but I am unsure about the correct format the policy should adhere to. Below is my current code snippet: import { getSignedCookies } from "@aws-sdk/cloudfront-signer" ...

Can the Browser Handle Quick Sorting of Enormous XML Data?

Currently, our team is facing a problem due to server restrictions that are beyond our control. We are required to use an XML file and parse it using JavaScript/jQuery instead of utilizing a database for a job. Moreover, we do not have direct write access ...

Guide on placing the back arrow button in React Navigation

I recently started working with react-native and I have been experimenting with react-navigation. One issue that I am facing is the positioning of the back-arrow in the navigation tab. I want to target the back-arrow so that I can adjust its position. Her ...

What steps are involved in testing a nextjs endpoint with Jest?

One of my challenges is an endpoint responsible for user sign up: import { createToken } './token'; // Unable to mock import { sendEmail } './email'; // Unable to mock export default async function signUp( req: NextApiRequest, res: ...

Troubleshooting Cache Problems in Express.js 4.0 during Development

Recently, I created a fresh express.js application using the express-generator. However, when I attempt to make modifications, none of them seem to reflect when I refresh the browser. I have tried various solutions found online, including: Disabling Chr ...

Error encountered with select2 when using a remote JSONP dataset

When attempting to query the Geonames data using select2, everything seems to work fine with formatting the results. However, an error occurs once the results are populated, which I suspect is preventing the formatSelection function from running properly. ...

The navigation controller, responsible for updating navbar values, is only executed once

My goal is to construct a simple Angular application and familiarize myself with the basics. To start, I'm utilizing Yeoman's angular-generator for scaffolding. This generator comes with a predetermined .config featuring $routeProvider, which I ...

Why isn't Jquery validate working for the day input?

I am facing an issue with a script that triggers only when I click on a textbox for the first time: var day = parseInt($("#day_birthdate").val(), 10); jQuery('input#day_birthdate').bind('input propertychange', function () { ...

What are some other popular JavaScript classes, aside from Set and Map, that do not cooperate well with JSON.stringify()?

After applying JSON.stringify to a Map or Set in JavaScript, the result is empty: console.log(JSON.stringify({foo: new Map([[1,2], [3,4]])})); The output is simply: {"foo":{}} To address this issue, one workaround is to use: console.log(JSON.stringify ...