{"id":2086,"date":"2013-03-19T11:49:51","date_gmt":"2013-03-19T10:49:51","guid":{"rendered":"http:\/\/www.ralentirtravaux.com\/le_blog\/?p=2086"},"modified":"2013-04-13T12:59:36","modified_gmt":"2013-04-13T11:59:36","slug":"comment-importer-une-video-youtube-dailymotion-etc-dans-ibooks-author","status":"publish","type":"post","link":"https:\/\/www.ralentirtravaux.com\/le_blog\/comment-importer-une-video-youtube-dailymotion-etc-dans-ibooks-author\/","title":{"rendered":"Comment importer une vid\u00e9o YouTube, DailyMotion, etc. dans iBooks Author ?"},"content":{"rendered":"<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.33.25.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.33.25-1024x593.png\" alt=\"YouTube\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2133\" srcset=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.33.25-1024x593.png 1024w, https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.33.25-300x173.png 300w, https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.33.25.png 1219w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><br \/>\nEn principe, lorsque vous souhaitez int\u00e9grer une vid\u00e9o dans votre site ou votre blog, vous copiez et collez une portion de code, et le tour est jou\u00e9. Ce sont quelques lignes que vous obtenez en cliquant sur <em>Partage<\/em>, et qui ressemblent \u00e0 \u00e7a :<\/p>\n<pre class=\"brush:xml\">&lt;iframe width=\"480\" height=\"360\" src=\"http:\/\/www.youtube.com\/embed\/z4CLpA3Y1Kg?rel=0\" frameborder=\"0\" allowfullscreen&gt;&lt;\/iframe&gt;<\/pre>\n<p>Il n\u2019en va pas de m\u00eame avec <a href=\"http:\/\/www.apple.com\/fr\/ibooks-author\/\" title=\"iBooks Author\" target=\"_blank\">iBooks Author<\/a>. Vous ne pouvez pas simplement copier et coller le code qui vous a \u00e9t\u00e9 donn\u00e9. Il faut r\u00e9aliser un widget.<br \/>\nSouvenez-vous, je vous avais expliqu\u00e9 <a title=\"Comment importer des exercices interactifs ?\" href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/?p=1930\" target=\"_blank\">comment importer des exercices interactifs<\/a> que vous aviez obtenus avec un exerciseur du type HotPotatoes. La m\u00e9thode est sensiblement la m\u00eame. Vous pourrez alors int\u00e9grer dans iBooks Author n\u2019importe quelle vid\u00e9o, que celle-ci provienne de <a title=\"YouTube\" href=\"http:\/\/www.youtube.com\" target=\"_blank\">YouTube<\/a>, <a title=\"DailyMotion\" href=\"http:\/\/www.dailymotion.com\/fr\" target=\"_blank\">DailyMotion<\/a>, <a title=\"Vimeo\" href=\"http:\/\/vimeo.com\" target=\"_blank\">Vimeo<\/a> ou l\u2019<a title=\"Ina.fr\" href=\"http:\/\/www.ina.fr\" target=\"_blank\">Ina<\/a>&#8230; \u00c9videmment, on se dira qu&rsquo;on aura plus vite de recourir aux services d&rsquo;un site comme <a href=\"http:\/\/bookry.com\/author\/widget\/library\/?from=classwidgets\" title=\"Bookry\" target=\"_blank\">Bookry<\/a>, mais il faut s&rsquo;inscrire et la cr\u00e9ation du widget qui nous int\u00e9resse ne concerne que les seuls YouTube et Vimeo.<\/p>\n<p><strong>Pour commencer :<\/strong><\/p>\n<p>Tout d\u2019abord, cr\u00e9ez un dossier. Vous pouvez, par exemple, lui donner le nom de votre vid\u00e9o. Dans notre cas, ce sera <em>verbe<\/em>. On obtient donc un dossier intitul\u00e9 <em>verbe<\/em>.<\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.16.56.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.16.56-1024x648.png\" alt=\"Nouveau dossier\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2135\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.17.32.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.17.32-1024x651.png\" alt=\"Dossier verbe\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2137\" \/><\/a><\/p>\n<p><strong>Cr\u00e9er un fichier HTML :<\/strong><br \/>\nDans ce dossier, placez un fichier HTML. Celui-ci doit imp\u00e9rativement s\u2019appeler Main et porter l\u2019extension .html. Votre fichier sera donc <em>Main.html<\/em>.<br \/>\nDans ce fichier, placez le code suivant :<\/p>\n<pre class=\"brush:xml\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;&lt;\/title&gt;\r\n\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>Entre les balises <em>title<\/em>, mettez le titre de votre vid\u00e9o. Entre les balises <em>body<\/em>, placez le code obtenu sur le site de partage de vid\u00e9o. Dans notre cas, cela donnera ceci :<\/p>\n<pre class=\"brush:xml\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Le verbe&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n&lt;iframe width=\"480\" height=\"360\" src=\"http:\/\/www.youtube.com\/embed\/z4CLpA3Y1Kg?rel=0\" frameborder=\"0\" allowfullscreen&gt;&lt;\/iframe&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.44.32.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.44.32-1024x630.png\" alt=\"Main.html\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2139\" \/><\/a><\/p>\n<p><strong>Cr\u00e9er une image :<\/strong><br \/>\n\u00c0 pr\u00e9sent, cr\u00e9ez une image de la dimension que vous voulez. Cette image va permettre d\u2019afficher votre vid\u00e9o dans votre livre fait avec iBooks Author. Ce peut \u00eatre un simple rectangle affichant le titre de votre vid\u00e9o. Vous pr\u00e9f\u00e9rerez probablement mettre une image provenant du film. Pour cela, affichez votre vid\u00e9o en plein \u00e9cran et faites une capture d\u2019\u00e9cran.<\/p>\n<p>Placez votre image dans le dossier verbe cr\u00e9\u00e9 au tout d\u00e9but de ce tutoriel. Attention votre image doit s\u2019appeler <em>Default<\/em> et \u00eatre au format PNG. Votre image s\u2019appellera donc <em>Default.png<\/em>.<\/p>\n<p><strong>Cr\u00e9er un fichier PLIST :<\/strong><\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.44.22.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.44.22-1024x634.png\" alt=\"Info.plist\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2141\" \/><\/a><\/p>\n<p>Derni\u00e8re \u00e9tape avant import dans iBooks Author, cr\u00e9ez un fichier PLIST. Pour cela, copiez ce code :<\/p>\n<pre class=\"brush:xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"&gt;\r\n&lt;plist version=\"1.0\"&gt;\r\n&lt;dict&gt;\r\n\t&lt;key&gt;CFBundleDevelopmentRegion&lt;\/key&gt;\r\n\t&lt;string&gt;French&lt;\/string&gt;\r\n\t&lt;key&gt;CFBundleDisplayName&lt;\/key&gt;\r\n\t&lt;string&gt;Le verbe&lt;\/string&gt;\r\n\t&lt;key&gt;CFBundleIdentifier&lt;\/key&gt;\r\n\t&lt;string&gt;com.widget.Untitled&lt;\/string&gt;\r\n\t&lt;key&gt;CFBundleName&lt;\/key&gt;\r\n\t&lt;string&gt;Le verbe&lt;\/string&gt;\r\n\t&lt;key&gt;CFBundleShortVersionString&lt;\/key&gt;\r\n\t&lt;string&gt;1.0&lt;\/string&gt;\r\n\t&lt;key&gt;CFBundleVersion&lt;\/key&gt;\r\n\t&lt;string&gt;1.0&lt;\/string&gt;\r\n\t&lt;key&gt;Height&lt;\/key&gt;\r\n\t&lt;integer&gt;360&lt;\/integer&gt;\r\n\t&lt;key&gt;MainHTML&lt;\/key&gt;\r\n\t&lt;string&gt;main.html&lt;\/string&gt;\r\n\t&lt;key&gt;Width&lt;\/key&gt;\r\n\t&lt;integer&gt;480&lt;\/integer&gt;\r\n&lt;\/dict&gt;\r\n&lt;\/plist&gt;\r\n\r\n\r\n<\/pre>\n<p>Ce code doit figurer dans un fichier intitul\u00e9 <em>Info<\/em> et portant l\u2019extension PLIST. Votre fichier sera donc <em>Info.plist<\/em>.<br \/>\nL\u2019essentiel \u00e0 retenir de ce fichier XML est qu\u2019il d\u00e9livre un certain nombre d\u2019informations \u00e0 propos de votre vid\u00e9o. Les plus importantes \u00e9tant les dimensions de cette vid\u00e9o. Soyez s\u00fbr que ces dimensions correspondent \u00e0 celles qui se trouvent dans votre fichier PLIST. Ma vid\u00e9o est de 480 par 360. Ce sont des dimensions qui m\u2019ont \u00e9t\u00e9 donn\u00e9es par YouTube (naturellement, j\u2019aurais pu en obtenir d\u2019autres). Elles doivent donc figurer dans le fichier PLIST.<\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.26.02.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.26.02-1024x635.png\" alt=\"Cr\u00e9er le fichier plist\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2142\" \/><\/a><\/p>\n<p><strong>Pour finir :<\/strong><br \/>\nMaintenant que vous avez les 3 fichiers <em>Main.html<\/em>, <em>Default.png<\/em> et <em>Info.plist<\/em> dans votre dossier verbe, il vous reste une chose \u00e0 faire.<\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.28.34.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.28.34-1024x647.png\" alt=\"Trois fichiers\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2143\" \/><\/a><\/p>\n<p>Il faut ajouter l\u2019extension WDGT \u00e0 votre dossier qui sera d\u00e9sormais un widget intitul\u00e9 <em>verbe.wdgt<\/em>. Il n\u2019y a plus rien \u00e0 faire si ce n\u2019est glisser et d\u00e9poser le widget dans iBooks Author. Branchez votre iPad. Cliquez sur Aper\u00e7u et v\u00e9rifiez que votre vid\u00e9o fonctionne.<\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.24.32.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-20.24.32-1024x649.png\" alt=\"Le dossier est devenu un widget\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2147\" \/><\/a><\/p>\n<p>Si quelque chose ne fonctionne pas, si vous d\u00e9sirez modifier votre widget, il faudra faire un clic droit et choisir <em>Afficher le contenu du paquet<\/em>. Vous pourrez alors modifier le fichier HTML, PLIST ou PNG.<\/p>\n<p><a href=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.30.08.png\" rel=\"lightbox[2086]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-content\/uploads\/2013\/03\/Capture-d\u2019\u00e9cran-2013-03-18-\u00e0-21.30.08-1024x647.png\" alt=\"Afficher le contenu du paquet\" width=\"450\" height=\"260\" class=\"aligncenter size-large wp-image-2144\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En principe, lorsque vous souhaitez int\u00e9grer une vid\u00e9o dans votre site ou votre blog, vous copiez et collez une portion de code, et le tour est jou\u00e9. Ce sont quelques lignes que vous obtenez en cliquant sur Partage, et qui ressemblent \u00e0 \u00e7a : &lt;iframe width=\u00a0\u00bb480&Prime; height=\u00a0\u00bb360&Prime; src=\u00a0\u00bbhttp:\/\/www.youtube.com\/embed\/z4CLpA3Y1Kg?rel=0&Prime; frameborder=\u00a0\u00bb0&Prime; allowfullscreen&gt;&lt;\/iframe&gt; Il n\u2019en va pas de [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-2086","post","type-post","status-publish","format-standard","hentry","category-informatique"],"_links":{"self":[{"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/posts\/2086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/comments?post=2086"}],"version-history":[{"count":49,"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/posts\/2086\/revisions"}],"predecessor-version":[{"id":2235,"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/posts\/2086\/revisions\/2235"}],"wp:attachment":[{"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/media?parent=2086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/categories?post=2086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ralentirtravaux.com\/le_blog\/wp-json\/wp\/v2\/tags?post=2086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}