{"id":88,"date":"2018-06-22T15:40:28","date_gmt":"2018-06-22T15:40:28","guid":{"rendered":"https:\/\/integrations.pressbooks.network\/pressbooks101\/chapter\/embedding-kaltura-mediaspace-videos-and-playlists\/"},"modified":"2020-05-15T01:05:27","modified_gmt":"2020-05-15T01:05:27","slug":"embedding-kaltura-mediaspace-videos-and-playlists","status":"publish","type":"chapter","link":"https:\/\/integrations.pressbooks.network\/pressbooks101\/chapter\/embedding-kaltura-mediaspace-videos-and-playlists\/","title":{"raw":"Embedding Kaltura Mediaspace Videos and Playlists","rendered":"Embedding Kaltura Mediaspace Videos and Playlists"},"content":{"raw":"<h2>Embedding a Kaltura Video<\/h2>\n<div>\n<div><\/div>\n<div>[h5p id=\"1\"]<\/div>\n<\/div>\n<ol>\n \t<li>Navigate to your Kaltura video and click on the \"<strong>Share<\/strong>\" tab below your video.<\/li>\n \t<li>Select \"<strong>oEmbed<\/strong>\" and copy the address.<\/li>\n \t<li>You can post the video simply by pasting this oEmbed code into your visual (WYSIWYG) editor.<\/li>\n \t<li>However, because Kaltura automatically adds video width and height information to the oEmbed code, a simple pasted oEmbed may not resize elegantly in your Pressbook. To address this, first navigate to your Pressbooks text editor.<\/li>\n \t<li>You'll see a Mediaspace\u00a0oEmbed code that includes weight and height estimates each followed by an ampersand. (Example: <em>width=1298&amp;height=802&amp;).\u00a0<\/em>Remove this text. (See below for an example.)<\/li>\n \t<li>Save your document. You're set!<\/li>\n<\/ol>\n<strong>Note:<\/strong>\u00a0In order for viewers to be able to play an embedded Kaltura video in Pressbooks, the video's privacy settings must be set either to \"Unlisted\" or to \"Public.\"\n<div class=\"textbox shaded\">\n<h3>Example of default oEmbed code<\/h3>\n<pre>https:\/\/mediaspace.wisc.edu\/id\/0_xdc0m8tp?<span style=\"background-color: #ffff00;\">width=1298&amp;height=802&amp;<\/span>playerId=25717641\n<\/pre>\n<h3>oEmbed code with height and width information removed<\/h3>\n<pre>https:\/\/mediaspace.wisc.edu\/id\/0_xdc0m8tp?playerId=25717641<\/pre>\n<\/div>\n&nbsp;\n<h2>Embedding a Kaltura Playlist<\/h2>\n[h5p id=\"2\"]\n\n&nbsp;\n<ol>\n \t<li>Navigate to your Kaltura Mediaspace page and locate your Playlists menu.<\/li>\n \t<li>Click \"Embed.\"<\/li>\n \t<li>You'll have the option to choose a vertical or a horizontal display for your playlist. Copy the embed code for your preferred format.<\/li>\n \t<li>Navigate back to your Pressbooks page and switch from the visual editor to the text editor. Paste in the embed code and save.<\/li>\n<\/ol>\n&nbsp;","rendered":"<h2>Embedding a Kaltura Video<\/h2>\n<div>\n<div><\/div>\n<div>\n<div id=\"h5p-1\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-1\" class=\"h5p-iframe\" data-content-id=\"1\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Embedding a Kaltura Video in Pressbooks\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<\/div>\n<ol>\n<li>Navigate to your Kaltura video and click on the &#8220;<strong>Share<\/strong>&#8221; tab below your video.<\/li>\n<li>Select &#8220;<strong>oEmbed<\/strong>&#8221; and copy the address.<\/li>\n<li>You can post the video simply by pasting this oEmbed code into your visual (WYSIWYG) editor.<\/li>\n<li>However, because Kaltura automatically adds video width and height information to the oEmbed code, a simple pasted oEmbed may not resize elegantly in your Pressbook. To address this, first navigate to your Pressbooks text editor.<\/li>\n<li>You&#8217;ll see a Mediaspace\u00a0oEmbed code that includes weight and height estimates each followed by an ampersand. (Example: <em>width=1298&amp;height=802&amp;).\u00a0<\/em>Remove this text. (See below for an example.)<\/li>\n<li>Save your document. You&#8217;re set!<\/li>\n<\/ol>\n<p><strong>Note:<\/strong>\u00a0In order for viewers to be able to play an embedded Kaltura video in Pressbooks, the video&#8217;s privacy settings must be set either to &#8220;Unlisted&#8221; or to &#8220;Public.&#8221;<\/p>\n<div class=\"textbox shaded\">\n<h3>Example of default oEmbed code<\/h3>\n<pre>https:\/\/mediaspace.wisc.edu\/id\/0_xdc0m8tp?<span style=\"background-color: #ffff00;\">width=1298&amp;height=802&amp;<\/span>playerId=25717641\n<\/pre>\n<h3>oEmbed code with height and width information removed<\/h3>\n<pre>https:\/\/mediaspace.wisc.edu\/id\/0_xdc0m8tp?playerId=25717641<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>Embedding a Kaltura Playlist<\/h2>\n<div id=\"h5p-2\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-2\" class=\"h5p-iframe\" data-content-id=\"2\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Embedding a Kaltura Playlist in Pressbooks\"><\/iframe><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<ol>\n<li>Navigate to your Kaltura Mediaspace page and locate your Playlists menu.<\/li>\n<li>Click &#8220;Embed.&#8221;<\/li>\n<li>You&#8217;ll have the option to choose a vertical or a horizontal display for your playlist. Copy the embed code for your preferred format.<\/li>\n<li>Navigate back to your Pressbooks page and switch from the visual editor to the text editor. Paste in the embed code and save.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"author":14,"menu_order":9,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-88","chapter","type-chapter","status-publish","hentry"],"part":19,"_links":{"self":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/users\/14"}],"version-history":[{"count":2,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/88\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/88\/revisions\/114"}],"part":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/parts\/19"}],"metadata":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapters\/88\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/pressbooks\/v2\/chapter-type?post=88"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/contributor?post=88"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/pressbooks101\/wp-json\/wp\/v2\/license?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}