<ul><li>Displaying video and photo previews in chat windows </li></ul>Kumar Lav IIT Bombay
Displaying the Previews <ul><li>Youtube, DailyMotion, MetaCafe, Google Video, Flickr </li></ul><ul><li>Ordinary image link...
For Youtube, GoogleVideo, Flickr, MetaCafe, DailyMotion Image Title Description
For Image Image
Other URL Image Title Description SlideShow
Implementation Options - I <ul><li>Get the data from the link when the user sends it from his window and send the data to ...
Implementation Options - II <ul><li>Data is retrieved by each independently. </li></ul><ul><li>Advantage : </li></ul><ul><...
Code Current code Modification Extra parameter  MessageType Condition here to check the MessageType  If MessageType  !=  {...
Code Current code Modification Check LinkQueue Spawn Thread Call GetLinkData() method <div > <a href =link>  <img src=  da...
Code  <ul><li>Files </li></ul><ul><ul><li>GetLinkData.java </li></ul></ul><ul><ul><ul><li>Methods </li></ul></ul></ul><ul>...
Upcoming SlideShare
Loading in …5
×

Displaying video and photo previews in chat windows

410 views

Published on

Project proposal for "Displaying video and photo previews in chat windows"

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
410
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Displaying video and photo previews in chat windows

  1. 1. <ul><li>Displaying video and photo previews in chat windows </li></ul>Kumar Lav IIT Bombay
  2. 2. Displaying the Previews <ul><li>Youtube, DailyMotion, MetaCafe, Google Video, Flickr </li></ul><ul><li>Ordinary image link </li></ul><ul><li>Other URL </li></ul>
  3. 3. For Youtube, GoogleVideo, Flickr, MetaCafe, DailyMotion Image Title Description
  4. 4. For Image Image
  5. 5. Other URL Image Title Description SlideShow
  6. 6. Implementation Options - I <ul><li>Get the data from the link when the user sends it from his window and send the data to the other user </li></ul><ul><li>Advantage : </li></ul><ul><ul><li>Data has to be retrieved only one time. </li></ul></ul><ul><li>Disadvantage : </li></ul><ul><ul><li>Internet speed of the Sender is the bottleneck. It cause delay for the Recv too. </li></ul></ul><ul><ul><li>ChatMessage has to be changed to hold extra parameters. </li></ul></ul>Sender Recv Get data of the link Send the data to other user
  7. 7. Implementation Options - II <ul><li>Data is retrieved by each independently. </li></ul><ul><li>Advantage : </li></ul><ul><ul><li>No need for changing ChatMessage </li></ul></ul><ul><li>Disadvantage : </li></ul><ul><ul><li>Data has to be retrieved two time. </li></ul></ul><ul><li>I have implemented this in the prototype and the Code part describe this approach </li></ul>Sender Recv Get data of the link Send link Get data of the link
  8. 8. Code Current code Modification Extra parameter MessageType Condition here to check the MessageType If MessageType != {HISTORY_INCOMING_MESSAGE, INCOMING_MESSAGE} Use this type of processing for links Else Add previews(see next slide) Package : net.java.sip.communicator.impl.gui.main.chat File : ConversationChatPanel
  9. 9. Code Current code Modification Check LinkQueue Spawn Thread Call GetLinkData() method <div > <a href =link> <img src= data.getImageURL() /> <h2> data.getTitle() </h2> <p> data.getDescription() </p> </a> </div> Package : net.java.sip.communicator.impl.gui.main.chat File : ConversationChatPanel
  10. 10. Code <ul><li>Files </li></ul><ul><ul><li>GetLinkData.java </li></ul></ul><ul><ul><ul><li>Methods </li></ul></ul></ul><ul><ul><ul><ul><li>isLink,isYoutube …. </li></ul></ul></ul></ul><ul><ul><ul><ul><li>getData(),processData() </li></ul></ul></ul></ul><ul><ul><li>LinkObj.java </li></ul></ul><ul><ul><ul><li>Methods: </li></ul></ul></ul><ul><ul><ul><ul><li>Getter, setters for title, description, imageaddress </li></ul></ul></ul></ul>

×