共享时钟 [英] Shared Clock

查看:98
本文介绍了共享时钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何在不同进程中共享2个或更多媒体会话的演示时钟的任何指针?无论如何我们可以指定用于生成时钟时间的网络设备吗?

Any pointers on how we can share a presentation clock for 2 or more media sessions in different processes? Is there anyway we can specify a network device to be used to generate the clock times?

推荐答案

去年有人提出这个问题或者前一年。您基本上必须实现自己的时钟接口并覆盖通常为自己创建的时钟媒体会话。

Someone brought this problem up last year or the year before. You basically have to implement your own clock interface and override the clock media sessions usually create for themselves.

据我所知,您只能使用系统源作为计时源。网络资源需要定制。使用网络资源来解决这些问题的最大问题是漂移,延迟等,它们可以完全停止媒体会话
或至少产生令人眼花缭乱的播放行为。

As far as I know, you can only use system sources for timing sources. Network sources will need to be custom built. The biggest issues with using network sources for these things are drifting, latency, etc which can halt the media session altogether or at least produce bizzare playback behaviour.

进程有自己的内存池,所以我不相信你只能在两个进程之间共享该对象指针。您必须将对象从一个进程序列化到另一个进程,然后您仍然有两个单独的时间源。您的自定义
时间源必须在进程之间同步。

Processes have their own memory pools so I don't believe you can just share that object pointer between the two processes. You'd have to serialise the object from one process to the other and then you'd have two individual time sources anyway. Your custom time source would have to synchronise between processes.


这篇关于共享时钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆