2016-07-22 21 views
6

क्या आर मार्कडाउन में यूट्यूब वीडियो एम्बेड करना संभव है? अब तक मैं क्या हैआर मार्कडाउन में यूट्यूब वीडियो

<a href="http://www.youtube.com/watch?feature=player_embedded&v=Q8rakpF7duU 
" target="_blank"><img src="http://img.youtube.com/vi/Q8rakpF7duU/0.jpg" 
alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> 

है लेकिन यह केवल एक छवि कहते हैं। इस छवि पर क्लिक करने से मुझे अपने ब्राउज़र में ले जाता है जहां वीडियो खेलना शुरू होता है। क्या कोई ऐसा तरीका है जो मुझे मार्कडाउन दस्तावेज़ में वीडियो चलाने की इजाजत देता है?

संदर्भ: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#videos

+2

करता है 'काम iframe'? –

उत्तर

6

आपको iframe का उपयोग करने की आवश्यकता होगी।

--- 
title: "iframe" 
author: "Example" 
date: "22 July 2016" 
output: html_document 
--- 

```{r setup, include=FALSE} 
knitr::opts_chunk$set(echo = TRUE) 
``` 

## R Markdown 

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>. 

<iframe width="560" height="315" src="https://www.youtube.com/embed/6A5EpqqDOdk" frameborder="0" allowfullscreen></iframe> 

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: 

```{r cars} 
summary(cars) 
``` 

## Including Plots 

You can also embed plots, for example: 

```{r pressure, echo=FALSE} 
plot(pressure) 
``` 

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. 

ध्यान दें कि वीडियो पूर्वावलोकन विंडो में दिखाई नहीं देंगे, लेकिन जब एक ब्राउज़र इंटरनेट से जुड़ा हुआ में देखा होगा: उदाहरण के लिए बुनियादी आरएमडी टेम्पलेट के लिए एक markdown वीडियो जोड़ने।

-2

जवाब इस के रूप में सरल हो सकता है, मुझे लगता है कि:

![](https://youtu.be/zNzZ1PfUDNk) 
संबंधित मुद्दे