Giter VIP home page Giter VIP logo

embedapi's People

Contributors

ajnasz avatar bienor avatar dodderjs avatar matenadasdi avatar moczolaszlo avatar necccc avatar pcdevil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embedapi's Issues

more info in getProperty?

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

Allow straightforward getProperty calls for 'live', 'playing', 'quality', and other state currently only acquirable through events

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:

  • It requires us to write our own bookkeeping code when the library could handle that for us
  • We (presumably) can't get the value until the first time it changes after us adding our handler

Would it be possible to allow all the events listed in the readme to be given corresponding getProperty calls? i.e.

  • isLive
  • isPlaying
  • size
  • quality

Is there a embed for broadcasting the video

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.

Disabling third party cookies results in player throwing a SecurityError

Repro:

  • disable third party cookies on browser
  • navigate to a page with an embedded player
  • attempt to play video
  • Should see error in console.

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.

screen shot 2015-11-16 at 7 47 12 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.