Skip to content

File Viewer as video webpart #684

Answered by jansenbe
Nevinia210 asked this question in Q&A
Discussion options

You must be logged in to vote

@Nevinia210 : embedding video definitely works, the approach works for any web part. We for example use this approach as part of the PnP Framework provisioning code or in Page Transformation. Here are the docs: https://pnp.github.io/pnpcore/using-the-sdk/pages-webparts.html#generic-instructions-that-apply-for-all-web-parts.

Below code snippet creates a page with an embedded video:

                // Create the page
                var page = await context.Web.NewPageAsync();

                // adding sections to the page
                page.AddSection(CanvasSectionTemplate.OneColumn, 1);

                // get the web part 'blueprint'
                var availableComponents = await page.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Nevinia210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants