<tfoot id='eUfbH'></tfoot>
        <bdo id='eUfbH'></bdo><ul id='eUfbH'></ul>

      <small id='eUfbH'></small><noframes id='eUfbH'>

      <legend id='eUfbH'><style id='eUfbH'><dir id='eUfbH'><q id='eUfbH'></q></dir></style></legend>
      <i id='eUfbH'><tr id='eUfbH'><dt id='eUfbH'><q id='eUfbH'><span id='eUfbH'><b id='eUfbH'><form id='eUfbH'><ins id='eUfbH'></ins><ul id='eUfbH'></ul><sub id='eUfbH'></sub></form><legend id='eUfbH'></legend><bdo id='eUfbH'><pre id='eUfbH'><center id='eUfbH'></center></pre></bdo></b><th id='eUfbH'></th></span></q></dt></tr></i><div id='eUfbH'><tfoot id='eUfbH'></tfoot><dl id='eUfbH'><fieldset id='eUfbH'></fieldset></dl></div>
    1. 如何编写可以与操作系统交互的VLC插件

      How to write VLC plugin that can interact with the operating system(如何编写可以与操作系统交互的VLC插件)

      1. <i id='nHZdh'><tr id='nHZdh'><dt id='nHZdh'><q id='nHZdh'><span id='nHZdh'><b id='nHZdh'><form id='nHZdh'><ins id='nHZdh'></ins><ul id='nHZdh'></ul><sub id='nHZdh'></sub></form><legend id='nHZdh'></legend><bdo id='nHZdh'><pre id='nHZdh'><center id='nHZdh'></center></pre></bdo></b><th id='nHZdh'></th></span></q></dt></tr></i><div id='nHZdh'><tfoot id='nHZdh'></tfoot><dl id='nHZdh'><fieldset id='nHZdh'></fieldset></dl></div>
          <tbody id='nHZdh'></tbody>

          <tfoot id='nHZdh'></tfoot>
        1. <legend id='nHZdh'><style id='nHZdh'><dir id='nHZdh'><q id='nHZdh'></q></dir></style></legend>

              <bdo id='nHZdh'></bdo><ul id='nHZdh'></ul>

              • <small id='nHZdh'></small><noframes id='nHZdh'>

                本文介绍了如何编写可以与操作系统交互的VLC插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我需要找出是否有可能以及如何(我不关心语言 C/C++、Lua、Python ...)来制作一个 VLC 插件,该插件的目的将由 VLC 播放器调用,并且在视频流的特定时间会做一些动作.

                I need to find out if it is possible and how (I do not care about the language C/C++, Lua, Python ...) to make a VLC plugin which purpose will be to be called by the VLC player and at specific times of the video stream will do some action.

                我需要做的操作是打开一个 UDP 套接字并发送一些从当前播放的视频随附的文件中读取的数据.

                The action that I need to do is to open a UDP socket and send some data read from a file that comes along with the video currently played.

                我需要做一个类似字幕阅读器的东西,它最好能初始化UDP套接字并将读取的数据发送到服务器.

                I need to make something like a subtitle reader that on it's best can initialize UDP socket and send the read data to the server.

                我不确定在 Lua 中是否可以创建 UDP 套接字,也许更好的选择是二进制 C/C++ 插件,但找不到任何示例.

                I am not sure that creation of UDP socket is possible in Lua maybe the better option will be a binary C/C++ plugin but can't find any example.

                总的来说,我的要求是:

                In general at the best my requirements are:

                1. 在 VLC 启动时加载设置文件
                2. 需要在视频流的特定时间由播放器触发
                3. 获取源视频流的文件名
                4. 打开同名但扩展名不同的文件(脚本)
                5. 打开一个UDP套接字
                6. 撰写邮件
                7. 发送消息
                8. 继续循环直到视频流结束

                非常感谢任何信息、示例或站点、链接.

                Any information, example or site, link is greatly appreciated.

                推荐答案

                看起来您想创建一个控制界面模块.这些是在 VLC 上下文中用 C/C++ 编写的,反过来需要为您想要定位的每个平台(重新)编译.查看 audioscrobbler 模块,了解如何与当前输入流交互以及如何检索文件名等元数据.由于这些模块是用 C 编写的,因此打开套接字和传输数据并不是什么大问题.

                Looks like you would like to create a control interface module. Those are written in C/C++ within the VLC context and in turn need to be (re-) compiled for each platform you would like to target. Have a look at the audioscrobbler module to see how to interact with the current input stream and how to retrieve metadata such as file name, etc. Since those modules are in C, opening sockets and transmitting data is not a big deal.

                最大的警告可能是,如果您想面向 Windows 平台,您需要一个复杂的编译环境.查看 wiki 上的编译 HOWTO http://wiki.videolan.org/Compile_VLC/因为这可能是您在进行任何编码之前想要尝试的.

                The biggest caveat is probably that you need a complex compilation environment if you would like to target the Windows platform. Have a look at the compilation HOWTO's on the wiki http://wiki.videolan.org/Compile_VLC/ since this is probably what you would like to try prior to doing any coding.

                想一想,大概可以用lua实现类似功能的扩展,开发起来更容易(因为不需要自己编译VLC,而且会跨平台).不过,打开 UDP 套接字可能会有问题.TCP 将正常工作.此页面可能是一个不错的起点:http://www.coderholic.com/extending-vlc-with-lua/

                Thinking about it, you can probably achieve a similarly featured extension in lua, which is easier to develop (since you don't need to compile VLC yourself and it will cross-platform). Opening UDP sockets might be problematic though. TCP will just work. This page could be a nice starting point: http://www.coderholic.com/extending-vlc-with-lua/

                这篇关于如何编写可以与操作系统交互的VLC插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)

                  <tfoot id='71uZK'></tfoot>

                    <tbody id='71uZK'></tbody>

                  <legend id='71uZK'><style id='71uZK'><dir id='71uZK'><q id='71uZK'></q></dir></style></legend>

                        • <bdo id='71uZK'></bdo><ul id='71uZK'></ul>
                          <i id='71uZK'><tr id='71uZK'><dt id='71uZK'><q id='71uZK'><span id='71uZK'><b id='71uZK'><form id='71uZK'><ins id='71uZK'></ins><ul id='71uZK'></ul><sub id='71uZK'></sub></form><legend id='71uZK'></legend><bdo id='71uZK'><pre id='71uZK'><center id='71uZK'></center></pre></bdo></b><th id='71uZK'></th></span></q></dt></tr></i><div id='71uZK'><tfoot id='71uZK'></tfoot><dl id='71uZK'><fieldset id='71uZK'></fieldset></dl></div>

                          <small id='71uZK'></small><noframes id='71uZK'>