El enlace Estándar muestra el código de incrustación iframe y el enlace Avanzado muestra el código de incrustación In-Page. Desde el punto de vista de la Player Management API, también verá el código de reproductor Avanzado referido como la implementación embed_in_page.
Aunque la integración del código de publicación In-Page puede ser más compleja, el uso del código In-Page es mejor cuando la página que contiene el reproductor necesita comunicarse con él. Algunos ejemplos de cuándo utilizar el código de incrustación In-Page incluyen:
Se considera una buena práctica utilizar la implementación Estándar (iframe)) a menos que alguna lógica de aplicación requiera el uso del código Avanzado (en la página). Si utiliza el módulo Audience para realizar un seguimiento de la participación de los espectadores, debe utilizar el código de incrustación avanzado (en la página).
Mi objetivo es mostrar el contenido de una página web externa (empresa SharePoint) en el Portal. Estoy tratando de hacer esto mediante la visualización de un iframe, pero a pesar de añadir la solución sugerida aquí, y la adición de cabeceras de política de seguridad de contenido HTTP, así (Content-Security-Policy ), no he tenido éxito mostrando el iframe. Simplemente dice que <site-url> se negó a conectarse. ¿Hay alguna otra configuración del sitio (quizás otra cabecera HTTP) que deba probar? También he probado el método ajax .load() y he intentado mostrar el canal RSS del sitio, sin éxito. Si alguien tiene una solución, se lo agradecería mucho. Gracias
Hola @gt_ , No puedes arreglar esto desde el lado de Power Apps Portal. Lo más probable es que el sitio web que intentas incrustar como iframe no permita ser incrustado. Necesitas actualizar las opciones de X-Frame en el sitio web que estás tratando de incrustar para permitir tu Power Apps Portal (si tienes control sobre ese sitio web). Puedes encontrar más información aquí.
Hola @gt_ , No se puede arreglar esto desde el lado de Power Apps Portal. Lo más probable es que el sitio web que intentas incrustar como iframe no permita ser incrustado. Necesitas actualizar las opciones de X-Frame en el sitio web que estás tratando de incrustar para permitir tu Power Apps Portal (si tienes control sobre ese sitio web). Puede encontrar más información aquí.
Each embedded browsing context has its own session history and document. The browsing context that embeds the others is called the parent browsing context. The topmost browsing context — the one with no parent — is usually the browser window, represented by the Window object.
Warning: Because each browsing context is a complete document environment, every <iframe> in a page requires increased memory and other computing resources. While theoretically you can use as many <iframe>s as you like, check for performance problems.
Specifies a feature policy for the <iframe>. The policy defines what features are available to the <iframe> based on the origin of the request (e.g. access to the microphone, camera, battery, web-share API, etc.).
A targetable name for the embedded browsing context. This can be used in the target attribute of the <a>, <form>, or <base> elements; the formtarget attribute of the <input> or <button> elements; or the windowName parameter in the window.open() method.
The URL of the page to embed. Use a value of about:blank to embed an empty page that conforms to the same-origin policy. Also note that programmatically removing an <iframe>’s src attribute (e.g. via Element.removeAttribute()) causes about:blank to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.
Cada contexto de navegación incrustado tiene su propio historial de sesiones y documento. El contexto de navegación que incorpora a los demás se denomina contexto de navegación padre. El contexto de navegación superior -el que no tiene padre- suele ser la ventana del navegador, representada por el objeto Window.
Advertencia: Dado que cada contexto de navegación es un entorno de documento completo, cada <iframe> de una página requiere más memoria y otros recursos informáticos. While theoretically you can use as many <iframe>s as you like, check for performance problems.
Specifies a feature policy for the <iframe>. The policy defines what features are available to the <iframe> based on the origin of the request (e.g. access to the microphone, camera, battery, web-share API, etc.).
A targetable name for the embedded browsing context. This can be used in the target attribute of the <a>, <form>, or <base> elements; the formtarget attribute of the <input> or <button> elements; or the windowName parameter in the window.open() method.
The URL of the page to embed. Use a value of about:blank to embed an empty page that conforms to the same-origin policy. Also note that programmatically removing an <iframe>’s src attribute (e.g. via Element.removeAttribute()) causes about:blank to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.