Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.
Options

JavaScript Embed APIs — Branching Videos

Just finished watching Meghal's overview video of Panopto 9. I would like to get more information on the JavaScript Embed API, specifically relating to the conditional branching videos aspect he mentioned. Is there some documentation somewhere on how that works exactly? I know there's some developer code he linked to, but anything on the Panopto support site?

Thanks

Kevin Hartman, University at Buffalo

Answers

  • Options
    Kevin BaumKevin Baum Panopto Employee

    Hi Kevin,

    We don't yet have any sample code showing conditional branching using the JavaScript embed API. The only documentation we currently have is the developer API documentation (https://developers.panopto.com/docs/embedapi.html).

    There are a couple of ways to handle conditional branching using the JavaScript API. If all of the destinations are in the same Panopto video, you could use the "seekTo()" function of the JavaScript Embed API to seek to the correct position in the video based on their choice. If the user's choice may result in different videos, you could have them make the choice before loading the Embed API, and use that to determine the correct session ID to pass when initializing the Embed API.

    Please let me know if you have any other questions. I'll also make a request to the team in charge of this API to see if we could get a sample showing how this could be implemented.

    Thanks,

    Kevin

  • Options

    @Kevin Baum Thanks for the update.

    Do I need to turn on or create an API on my hosted site, and if so how? I still would need to confer with my other admins to see if this is something people want to think about doing.


    Thanks

    Kevin

  • Options
    Kevin BaumKevin Baum Panopto Employee

    Hi Kevin,

    Access to the Embed API should already be enabled on your hosted site. You should not need to do anything to start using it.

    Thanks,

    Kevin

Sign In or Register to comment.