The Room

To use our room functionality, you must include the following code to you website.

Some notes:

  • Here can you find a detailed specification of the variable types (the given specification behind the colon).
  • The structure of all Id’s (Event, EventSeries, Room and User) is displayed here.
  • The constants EDUDIP_CUSTOMERS and EDUDIP_API_KEY are unique per page. You can get your own by contacting us.

 

[...]
<script type="text/javascript" src="http://api.edudip.com/static/v4/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="http://api.edudip.com/static/v1/room.js"></script>
[...]
<script type="text/javascript">
		$(document).ready(function() {
			var pRoom = new com.edudip.room({
			Id: <<RoomId:int>>,
			CreatorId: <<ModeratorId:int>>,
			Output: 'room_div',
			StartTime: '<<StartTime:string>>',
			StopTime: '<<StopTime:string>>',
			Recording: <<Recording:bool>>,
			EventSeriesId: '<<EventSeriesId:int>>',
			EventId: '<<EventId:int>>',
			OsPlatform: '<<Windows | Mac | Linux>>',
			OsVersion: '<<OsVersion:Float>>',
			Customer: '<<EDUDIP_CUSTOMER:string>>',
			I18n: {
				type: 'swf',
				languages: ['de_DE|en_US'],
				urls: ['http://api.edudip.com/static/
				v1/room/bundles/locale_{de_DE|en_US|es_ES}.swf']
			},
			SwfUrl: '<<http|https>>://api.edudip.com/static/v1/room/edudip_main.swf', // Warning: Only use https when the page also is https
			HomeUrl: '<<URL to your installation (i.e. proxy.php must be there)>>'
		});
		pRoom.setUser({
			Id: <<Id:int>>,
			Firstname: '<<Firstname:string>>',
			Lastname: '<<Lastname:string>>',
			DisplayName: '<<DisplayName:string>>',
			Avatar: '<<Url to Avatar:string>>',
			Role: '<<participant | moderator>>'
		});
		pRoom.init();
		});	
</script>

The detection of the OS and the OS-Version can be made with the script described here.

Warning: Only use https in any URL, when the page also is https. In the other case use just http!

Warning: The HomeUrl must be end with a Slash, i.e. http://www.example.com/

Durch die weitere Nutzung der Seite stimmst du der Verwendung von Cookies zu. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

Schließen