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 theQt-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 theQt-WebKit
and javascript code, e.g. create broadcasts, bind to streams etc. via HTTP requests?
- 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
1 Answer
Reset to default 6Creating 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:
- Authenticate the user.
- Set up and schedule your Live Broadcast object.
- Start your video encoder and create a Live Stream Object.
- Bind your Live Stream to your Live Broadcast.
- Test to verify your video is going through.
- Set your Live Broadcast to Live.
- 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.