Accessing YouTube live streams with Web Audio API - google-plus

Is it possible to access YouTube live stream content (video/audio) in Javascript and Web Audio API e.g. for real-time mixing of the audio content?
Is the payload HTML5 compatible or is it Flash only?
... or is access to these streams limited via CORS or licensing clauses?
In my case, live streams would be created in Google Hangout http://www.google.com/+/learnmore/hangouts/onair.html

You can only access the content for HTML5 streams, and of course I'd expect this would not be available in the future for encrypted streams. Hangouts use a plugin right now, so you can't do this.

Related

Use WebRtc to deliver hls to Safari on IOS

I found this github repo which allows me to use WebRtc to deliver hls over the WebRtc Datachannel.
The Problem is that it does not support Safari on IOS.
The newest versions of Safari on IOS do support WebRtc datachannels and they have native support for hls playback.
This is my problem is it only possible to use WebRtc for data transfer on Browsers which support Media Source Extensions or can I also use WebRtc to deliver the .ts files to the Safari Browser on IOS?
I am a developer of P2P Media Loader and we are working on iOS support right now. Hopefully, we will have a prototype soon.
On iOS Safari you can exchange video and audio data using WebRTC Data Channels but you can not put that data and play into HTML video element without API like Media Source Extensions.
We are currently testing a different approach to do that on iOS Safari.
iOS Safari doesn't support Media Source Extensions of HTML5 video element.
Therefore, you cannot play synchronized audio and video on iOS Safari by any hand-made approaches that use various API such as Canvas, Web Audio API etc..
iOS Safari has two built-in methods for playing synchronized audio and video:
a. Native HLS playback
b. WebRTC PeerConnection
If you choose WebRTC PeerConnection, you will have to transcode AAC audio used in HLS to Opus audio required by WebRTC, and to transmux HLS to WebRTC.
Ugly, CPU-consuming and really pointless. What does it buy you? Why not to use native HLS playback on iOS Safari? But if you insist on option b, then there is number of software media servers that will do it for you.

Youtube Java live stream

I am using Youtube provided API for live steam, I am able to run the live stream example provided by youtube, but i didn't find any option in the example to cast my local video,
Does any one know how to cast local video on youtube live?

How to protect Streaming Key from public?

I am sending a live RTMP stream from OBS to Wowza Streaming Engine and playing it back in JW Player on my website. Members of my website will be able to stream to their own "channels".
The only issue is that if a viewer on my website views the source, he/she can access the stream key. If a user gets another users stream key, then they would be able to stream to their channel.
What is a good way to protect this stream key?
You can write a module that does a server issued token based authentication. There also exist a free limited version of some commercial modules for similar purpose. Here is an article that shows how to start the work: https://streamtoolbox.com/hello-wowza-module-tutorial

Testing a HLS playlist

I have generated a HLS adaptive streaming playlist with 3 different quality of videos using AWS elastic transcoder, which is configured to stream over cloudfront.
How do I test if this playlist is properly adapting based on the internet speed and other parameters?
regards
Abhishek
If you have access to Apple's HTTP Live Streaming tools, you can validate your HLS video streams by using the mediastreamvalidator tool.
Alternatively, you could try using a web proxy that allows bandwidth throttling, such as Charles or Fiddler. Try altering the bandwidth setting then check if the player fetches a different playlist that corresponds to the (simulated) bandwidth available.

Getting video stream from different pages WebRTC

Can we get all the video stream of peers on one page, and peer would be streaming it from any other page. The diagram explain the rest
graphical representation
When developing a web application, your code lives inside it's own special little sandbox. This sandbox does not extend to other pages and sharing resources between tabs is therefore impossible.