最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

qt - YouTube Live Streaming in Javascript - Stack Overflow

programmeradmin1浏览0评论

I have some questions regarding the YouTube Live Streaming API:

  • Is there any support or code samples for javascript?

  • Is it possible to embed the live streaming functionality into Qt applications by using the Qt-WebKit and javascript code, e.g. create broadcasts, bind to streams etc. via HTTP requests?

I have some questions regarding the YouTube Live Streaming API:

  • Is there any support or code samples for javascript?

  • Is it possible to embed the live streaming functionality into Qt applications by using the Qt-WebKit and javascript code, e.g. create broadcasts, bind to streams etc. via HTTP requests?

Share Improve this question edited Mar 9, 2016 at 17:46 JAL 42.5k23 gold badges176 silver badges310 bronze badges asked Mar 9, 2016 at 15:36 OnurAOnurA 6512 gold badges11 silver badges26 bronze badges 6
  • Any particularly reason you're still using the QtWebKit module now that it's no longer actively maintained? – MrEricSir Commented Mar 9, 2016 at 19:17
  • @MrEricSir I am looking into possibilites of embedding Youtube functionality into a Qt GUI Application. And I assume, QtWebkit is the way to do it in Qt. What is your opinion? What would you suggest? – OnurA Commented Mar 10, 2016 at 9:21
  • 1 WebEngine/WebView would be the obvious choices if you're using a recent version of Qt. – MrEricSir Commented Mar 10, 2016 at 18:23
  • Isn't the whole module called WebKit, as you include it by Qt+=webkit? – OnurA Commented Mar 10, 2016 at 19:41
  • No, the entire QtWebKit module is no longer maintained. It's only available for legacy reasons. – MrEricSir Commented Mar 10, 2016 at 19:51
 |  Show 1 more ment

1 Answer 1

Reset to default 6

Creating a Live Event and Live broadcast is language-independent, just use YouTube's Live Streaming HTTP API. Read through the Core Concepts and Life of a Broadcast guides.

Your flow might look something like this:

  1. Authenticate the user.
  2. Set up and schedule your Live Broadcast object.
  3. Start your video encoder and create a Live Stream Object.
  4. Bind your Live Stream to your Live Broadcast.
  5. Test to verify your video is going through.
  6. Set your Live Broadcast to Live.
  7. At the conclusion of your event, set your Live Broadcast to Ended.

Note that setting up your encoder is on you. Asking "How do I create an RTMP video encoder in JavaScript" (or qt) is too broad of a question for Stack Overflow.

发布评论

评论列表(0)

  1. 暂无评论