Embedding Video

Die Einbettungsfunktion ermöglicht dir, unsere Videos auf einer Webseite außerhalb von Commodity-TV zu veröffentlichen. So kannst du zum Beispiel ein Video in deinem Blog einbetten und Leute können es sich dort anschauen, ohne Commodity-TV aufrufen zu müssen. 

Um den Einbettungscode eines Videos zu erhalten, begib dich zu der jeweiligen Videoseite und klicke auf den „Embed“-Button. Alle Videos können mit der Suchfunktion gefunden werden.

Code example

https://www.rohstoff-tv.com/embed/watch&v=[VIDEO_ID]

Embed via iframe

Default iframe not responsive (not recommended)

<iframe width="640" height="360" src="https://www.rohstoff-tv.com/embed/watch&v=[VIDEO_ID]" frameborder="0" allow="autoplay; encrypted-media;" allowfullscreen></iframe>

Bootstrap (responsive)

<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="https://www.rohstoff-tv.com/embed/watch&v=[VIDEO_ID]" allow="autoplay; encrypted-media;" frameborder="0" allowfullscreen></iframe>
</div>

Example with additional CSS (responsive)

<div class="embed-container">
  <iframe class="embed-responsive-item" src="https://www.rohstoff-tv.com/embed/watch&v=[VIDEO_ID]" allow="autoplay; encrypted-media;" frameborder="0" allowfullscreen></iframe>
</div>
<style>
.embed-container { 
  position: relative; 
  padding-bottom: 56.25%; /* 16:9 */
  /* padding-bottom: 75%; *//* 4:3 */
  height: 0; 
  overflow: hidden; 
  max-width: 100%; 
} 
.embed-container iframe, .embed-container object, .embed-container embed { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
}
</style>

Embed via JavaScript

<script src="https://www.rohstoff-tv.com/rtvplayer.js"></script>	
<div id="your_id"></div>
<script>
  rtv = new rtvPlayer('your_id',{
    videoId: 1919, //required [VIDEO_ID]
    width: 960,  //optional in px, default is 640
    height: 540, //not required see notes below but optional in px, default if no width is 360
    addClass: 'embed-responsive-item', //optional inserts a certain class, useful for responsive settings
    //optional options
    options: {
      autoplay: 1 //default is 0
    }
  });
</script>

Notes: The integration via Javascript creates an iframe in the given div. The height of the iframe is calculated automatically in 16:9 based on the width. For a responsive implementation you can add your own class to the iframe with 'addClass'.

Additional parameter

The following parameters are available and optional.

https://www.rohstoff-tv.com/embed/watch&v=[VIDEO_ID]?[PARAMETER]
Parameter Info
autoplay This parameter specifies whether the initial video will automatically start to play when the player loads. Supported values are 0 or 1. The default value is 0.

Recommended 16:9 sizes in pixel

640 x 360
854 x 480
960 x 540
1024 x 576
1280 x 720
1366 x 768
1600 x 900
1920 x 1080

Commodity-TV

Die Welt der Rohstoffe in einer App!

CEO- und Experteninterviews • TV-Projektbesichtigungen • Berichte von Messen und Konferenzen aus der Welt • aktuelle Mineninformationen • Rohstoff-TV, Commodity-TV und Dukascopy-TV • JRB-Rohstoffblog • und vieles mehr...

Kostenloser Download im App Store!

Commodity-TV

SRC News

Alle zeigen
U.S. GoldMining Inc. kündigt Pläne zum Beginn einer wirtschaftlichen Erstbewertung  vom Whistler Gold-Kupfer-Projekt in Alaska an

News

U.S. GoldMining Inc. kündigt Pläne zum Beginn einer wirtschaftlichen Erstbewertung vom Whistler Gold-Kupfer-Projekt in Alaska an

U.S. GoldMining Inc. freut sich, sein Vorhaben bekannt zu geben, eine erste wirtschaftliche Bewertung für das Gold-Kupfer-Projekt Whistler, das sich 105 Meilen nordwestlich von…

Hannan grenzt 750 m lange und bis zu 192 m breite Kupfermineralisierung in Previsto, Peru, ab

News

Hannan grenzt 750 m lange und bis zu 192 m breite Kupfermineralisierung in Previsto, Peru, ab

Hannan Metals Limited freut sich, die Identifizierung eines bedeutenden Kupfer-Porphyr-Ziels auf seinem zu 100 % unternehmenseigenen Projekt Previsto in Peru bekannt zu geben.

Fortuna durchschneidet 7,2 g/t Au auf 31,5 Metern bei Kingfisher,  Séguéla-Mine, Elfenbeinküste

News

Fortuna durchschneidet 7,2 g/t Au auf 31,5 Metern bei Kingfisher, Séguéla-Mine, Elfenbeinküste

Fortuna Mining Corp. freut sich, ein Update zu seinen Explorationsprogrammen in der Mine Séguéla in Côte d'Ivoire bekannt zu geben.

Southern Cross Gold beginnt Genehmigungsverfahren für Sunday Creek Explorationsstollen

News

Southern Cross Gold beginnt Genehmigungsverfahren für Sunday Creek Explorationsstollen

Southern Cross Gold Consolidated Ltd. freut sich bekannt zu geben, dass das Unternehmen mit dem Genehmigungsverfahren für einen unterirdischen Explorationsstollen auf dem zu 100 %…

Kurznews

Alle zeigen

Tudor Gold Increases Overall Gold Recoveries to Over 80%, Produces a High-grade Copper, Gold and Silver Concentrate for the Goldstorm Deposit at Treaty Creek, Northwestern B.C.

TUDOR GOLD Announces Appointment of Ms. Diana Swain to the Advisory Board

Revival Gold Delivers Compelling PEA Results and Attractive Potential Re-development Timeline for the Mercur Gold Project

Revival Gold Enters Marketing Services Agreement

Partners