Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load 及 slientload 方法改造 #55

Closed
4 tasks done
toxic-johann opened this issue Dec 6, 2017 · 5 comments
Closed
4 tasks done

load 及 slientload 方法改造 #55

toxic-johann opened this issue Dec 6, 2017 · 5 comments
Assignees

Comments

@toxic-johann
Copy link
Member

toxic-johann commented Dec 6, 2017

@songguangyu 提供需要重启 kernel 的相关环境。

以及天翔建议的目前config里面其实就有src了,所以是否考虑load的时候不一定有第二个参数,如果是string,就当作src,如果是obj,就当错config解析,路径用config.src

另外 load 的时候需要支持给各个 kernel 做参数的支持。现有额外参数需要提供给 kernel 层。

关联问题#39

相关参数示例

  • load 的时候对于要重建 kernel 的情景自动进行 kernel 切换
  • 支持传递特定的参数到 kernel 中去
  • chimee-kernel 支持 presetConfig
  • 支持单独对象传入的 api
@toxic-johann toxic-johann self-assigned this Dec 6, 2017
@toxic-johann toxic-johann changed the title load 方法改造 load 及 slientload 方法改造 Dec 7, 2017
@skyline0705
Copy link
Contributor

希望增加对kernel-flv增加stashSize字段,用于控制缓存大小

toxic-johann referenced this issue in Chimeejs/chimee-kernel Dec 10, 2017
toxic-johann referenced this issue Dec 10, 2017
1. if box do not equal to 'native', we switch kernel
2. if box is not the same as the old kernel, we switch kernel
3. if you pass some sepecific option, we switch kernel
related to [https://github.com/Chimeejs/chimee/issues/55](https://github.com/Chimeejs/chimee/issues/55)
@toxic-johann
Copy link
Member Author

chimee 现已支持 presetConfig, 但是观察 chimee-kernel 及 chimee-kernel-flv 还是比较混乱。双方需要结合一起解决。

#54 相关。

希望能做一个简单的梳理吧。

@toxic-johann
Copy link
Member Author

chimee 层会将相关配置以如下形式传给 kernel 层。

{
    preset: {
       flv: Function
    },
    presetConfig: {
      flv: Object
    },
}

所以在 kernel 中建议根据自己选中的 box ,读取配置,并保存在实例上。

现在假设该配置在运行中不能更改。

@toxic-johann
Copy link
Member Author

@toxic-johann
Copy link
Member Author

published in 0.7.1

toxic-johann referenced this issue May 31, 2019
…. if box do not equal to 'native', we switch kernel 2. if box is not the same as the old kernel, we switch kernel 3. if you pass some sepecific option, we switch kernel related to [https://github.com/Chimeejs/chimee/issues/55](https://github.com/Chimeejs/chimee/issues/55)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants