ustream / embedapi Goto Github PK
View Code? Open in Web Editor NEWEnables sites using the Ustream embed iframe, to build and adapt on the embed live player.
License: MIT License
Enables sites using the Ustream embed iframe, to build and adapt on the embed live player.
License: MIT License
The README indicates that at present, I can get events when the user starts or stops playback via addListener
and removeListener
...
viewer.addListener('playing', function (isPlaying) {
// code
});
... but what if I just want to check, once, whether the video is playing? It would be nice to able to do
viewer.getProperty('isPlaying', function (isPlaying) {
// code
});
We can create our own variable to keep track of such state and update it via the event handler, but this is less than ideal for two reasons:
Would it be possible to allow all the events listed in the readme to be given corresponding getProperty
calls? i.e.
I can't find the solution or, at least, an error. All it's ok, simply.. not work.
It would make it much easier to get the latest changes to the embedAPI if it was installable via npm.
When adding a listener for the "playing" event, I notice that it's throwing 3 instances on initial play, 2 on pause, and then 2 on every play and pause after that.
You can even see this on the basic embedded player example on the documentation site:
http://developers.ustream.tv/player-api/basic-example.html
It should only throw one event per player state change, just like Youtube and Kaltura do.
Repro:
Expected:
Player should NOT throw an SecurityError and should gracefully degrade and display a message letting the user know that they need to enable Third Party Cookies to use the player.
A lot of the properties only get loaded after a set amount of time when the video gets loaded. It would be nice to know when this actually is through a callback or event...
The 'volume' calMethod option does not do anything on iOS...
When fetching duration either immediately after creating the Embed object, or even 10 seconds after, it returns 0...
Hi developers,
Here in the examples I can only see the player embed demos but I am looking something that I can embed on my webpage and broadcast the video rather going to ustream.tv or opening a desktop app.
Are there any plans to integrate more properties that can be fetched with getProperty?
I'd like to fetch info from the player about the current playing video/stream, i.e. getProperty("id");
I currently switch feeds on the player, but have no way of verifying if the source has changed from the original embed channel - for example if an ad was playing when I called viewer.callMethod('load') - then this call is ignored.
It would greatly enhance the embed API if it was possible to get this property, and maybe a few others getProperty("type"), "isAd", "isFullscreen"...
// Seb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.