mangui / mangui/flashls

Fixed quality level using Flashls parameters?

Open
#562 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
ActionScript
Stars
744
Forks
259
PR merge metrics
No merged PRs in 30d

Description

Is there a way to assign a fixed quality level in Flashls parameters?

In the "flashls - Chromeless HLS Flash player" test page at http://flashls.org/flashls-0.4.0/examples/chromeless, I noticed there is a setting "Set Level". This works, and when it is set, *only* the specified level is used - the bandwidth does not change, and if the buffers run out, the video just stops. However, I see that this page sets that parameter with a direct call using the Flash API, i.e., with `playerSetLevel(level).` However, I don't see this exposed in any of the published settings, and I looked through the source and saw no call to this method other than through the same sample page that was part of the flashls distribution.

How would I do a fixed level setting? Is there a way that I am missing? If there is no way, can you suggest a workaround?

I'm using Flowplayer 6.0.4, and I presently have the following configuration. `startfromlevel` and `seekfromlevel` start and seek the video at a certain level, as designed, but do not keep it there, also as designed. I see nothing in the documentation that is merely called `level`.

```javascript
scope.playerData.api = flowplayer(flowplayerTargetElement,
{
key: lmsEmbedObjectResponse.key,
swf: '/scripts/lib/flowplayer-6.0.4/flowplayer.swf',
swfHls: '/scripts/lib/flowplayer-6.0.4/flowplayerhls.swf',
embed: false,
ratio: 9 / 16,
autoplay: scope.controlData.autoPlay, // NOTE: http://stackoverflow.com/questions/12496144/can-you-autoplay-html5-videos-on-the-ipad
splash: ((scope.controlData.autoPlay || scope.isBackgroundSplashMissing) ? false : (scope.itemData.splashUrl ? scope.itemData.splashUrl : true)),
// splash: (scope.controlData.autoPlay ? false : true), // Force splash with no image
clip: {
autoPlay: false,
subtitles: subtitles,
sources: [
// Good URI, this is the one you want
{type: 'application/x-mpegurl', src: lmsEmbedObjectResponse.hlsVideoSourceUrl}
],
flashls: {
startfromlevel: 0,
seekfromlevel: 0,
lowbufferlength: 10,
minbufferlength: 10
}
}
});
```

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.

Research direction

Start with the chromeless HLS test page and the `playerSetLevel(level)` entry point mentioned in the issue, then compare them with the published settings and the Flowplayer `flashls` configuration shown. Check how `startfromlevel` and `seekfromlevel` are handled. Done means a fixed level can be configured or the supported workaround is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.