Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Long streams return RTMP that fail on Chrome

Open
#52 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Start with audiomanager.js and compare its Flash detection with the behavior described for tracks longer than 60 minutes in Chrome 50. Use the linked issue comment as context, then reproduce a long-track stream and verify that seek() and pause() no longer trigger the reported exception.

Written by the indexing model from the issue text.

Description

It seems that any stream() referencing a track resource longer than 60 minutes uses RTMP rather than HTTP, on Chrome 50 while tracks < 60m use HTTP as expected. With these longer tracks the Flash stream is loaded without error but when manipulating it with seek() or pause() the following error is thrown.

"Error: Error: An invalid exception was thrown. at Error (native) at i.setVolume (https://connect.soundcloud.com/sdk/sdk-3.0.0.js:12:8154) at i.setVolume (https://connect.soundcloud.com/sdk/sdk-3.0.0.js:8:19529) at Function.k.extend.toggleMute (https://connect.soundcloud.com/sdk/sdk-3.0.0.js:13:19990) at Function.r [as setAudioManager] ....

Bypassing the Flash detection in audiomanager.js rescues for these long tracks on Chrome. See https://github.com/soundcloud/soundcloud-javascript/issues/39#issuecomment-207823313

Dominant language
JavaScript
Stars
388
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from soundcloud/soundcloud-javascript

All issues in soundcloud/soundcloud-javascript

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.