JTV Chat Embed

From Justin.tv API Wiki

Jump to: navigation, search

The IFrame Chat Embed is a simple IFrame that renders a Javascript chat very similar to what is found on JTV channel pages. By default it includes JTV, Facebook, MySpace and Twitter chat, and can be modified to show any subset of those options. Chatters using the Twitter chat room will also have their messages post to Twitter. The Chat Embed is located at http://www.justin.tv/chat/embed?channel=channel_name (channel param is required).

URL Parameters

Required:

 channel
 The name of the channel to chat in. 

Optional:

 hide_chat 
 Comma seperated list of chat types that should be hidden.
 default_chat
 Chat type that is enabled once the page is loaded.
 tweet_suffix
 The string that will be appended to the Tweets of users who use the Twitter chat. Useful for appending URLs.
 over18
 Set to 'true' if user has already confirmed they are 18 on your site.

Chat types:

 jtv facebook myspace twitter

Example Usage

Chat with Myspace & FaceBook disabled

 <iframe
 style="width:465px;height:500px;"
 src="http://www.justin.tv/chat/embed?channel=officecam&hide_chat=myspace,facebook&default_chat=jtv">
 </iframe>
Client Libraries