Connecting Tech Pros Worldwide Help | Site Map

how to make plugins

Member
 
Join Date: Dec 2008
Posts: 36
#1: Dec 31 '08
hi experts,

i have a .net user control. and i am using this in web page.. i want to make a plugin for my control so that it can be run in other Browsers as well.. like opera, mozilaa, netscape etc.. it is working fine in IE..

pls heklp me out how to make a plug in for my control...

thanks inadvance and wishing u all HAPPY NEW YEAR..
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Dec 31 '08

re: how to make plugins


Is your user control a Web User Control or a regular User Control?

If it's a web user control, just test it in every browser that you want it to work in....and modify it so that it works properly.

What specific problems are you having with your control?
Member
 
Join Date: Dec 2008
Posts: 36
#3: Dec 31 '08

re: how to make plugins


i am using .net window user control.. and when i embed this to web page.. and open in IE.. it works.. but as we know mozilla, opera etc doesnot support activex ..and my control is not coming in these. so i need to create a plug in for those.. so that it also work in these bworsers
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#4: Dec 31 '08

re: how to make plugins


I don't know how to do that, sorry. I would assume that you would have to check if the browsers you want to create plug-ins for will allow you to. Mozilla provides support for developers and you might be able to get an idea of how to create Mozilla plug-in there. I'm not sure if you'll be lucky developing plug-ins for Opera and Safari.

An easier way to get around this is to create a Web User Control instead of using the Windows User control. This way it can be accessed by any web browser without the need for creating plug-ins.

-Frinny
Member
 
Join Date: Dec 2008
Posts: 36
#5: Dec 31 '08

re: how to make plugins


Thx for the suggetions sir.. But i think making a web user control will not solve my problem.. b/c webuser control does not have that functinallity that window control has..

actuly i made a window user control that fetch the imge from the server and show in a picture box.. its work same like glance and live look etc...
but these are made in java..
but i m using .net/.. which has some comptibilty issue with other browsers..

but there may b some way to create plug ins. like macromedia flash.. has..
so that it can b open in any browser .....


sir if web user control can have this kind of funtionality .. then pls help me out and show me right path for this..

or tell me any suggestion or advive so that i can make plug in..

thanks..

sandeep
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#6: Dec 31 '08

re: how to make plugins


A PictureBox?
There is an Image control for ASP.NET that will display images.... dynamically if you want it to.

What are your requirements?
Are you trying to stream video?
Member
 
Join Date: Dec 2008
Posts: 36
#7: Dec 31 '08

re: how to make plugins


i need to fetch the images from the server via. web service .. and dispaying them in brower with out refreshing the page.. continueosly

its same as glance and live look..
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#8: Jan 2 '09

re: how to make plugins


The page is going to have to updated if you need to refresh the image...but the whole page doesn't have to refreshed.

You could place the Image control in an UpdatePanel so that only that section of the page is refreshed. You could then place a Timer on the page that calls a method that refreshes the image after a set amount of time passes. Please keep in mind how much bandwidth is going to be used when determining how much time should pass before the image should be refreshed.

If you have a video...you could look into using Silverlight to stream video instead of updating a picture all the time. Silverlight is supported in most major browsers now and it only takes a minute or so to download and install the user's first time accessing a Silverlight application.

-Frinny
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#9: Jan 2 '09

re: how to make plugins


You could also use silverlight to make an image viewer plugin.

Silverlight is basically a direct competitor to Flash. Silverlight can handle webservices and web requests as well. It's a good way to get a rich experience in the browser.

If you decide to go this way, let us know, and we can help you out.
Member
 
Join Date: Dec 2008
Posts: 36
#10: Jan 2 '09

re: how to make plugins


thanks and thanks alot for reply.. i m in deep trouble of plugins..
b/c i m not able to find the way to make plugins for my control..

so if there is any other alternative thorugh which i m able to run my project in every browser and os then i m ready to change and move towards that...

pls tell me how to and what to do.. for that... is it much better then ajax???

i just want speed and universality in my project..

so give me guidenace

thanks
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#11: Jan 2 '09

re: how to make plugins


OK, for speed and compatibility, you should use .NET 3.5 and AJAX.

Put an Image control and links or buttons to navigate through the pictures inside an UpdatePanel control, so they will update the page asynchronously.

This will give you an example of how to use an UpdatePanel.
http://msdn.microsoft.com/en-us/libr...datepanel.aspx
Member
 
Join Date: Dec 2008
Posts: 36
#12: Jan 2 '09

re: how to make plugins


sorry i have dotnet 2.0 .. is it ok for that...
pls give me some exmples ...
so that i can proceed further.. and what about the silverlight...

i need that which enable me to run my project on every plateform (window,linux, mac, etc ) and every browsers (ie, opera, firefox etc)..


thanks
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#13: Jan 2 '09

re: how to make plugins


Hey iA...have you tried using SilverLight in Opera?
Silverlight doesn't seem to be supported in Opera...

Quote:

Originally Posted by sandeepdhankar10 View Post

sorry i have dotnet 2.0 .. is it ok for that...
pls give me some exmples ...

Sandeep,

What version of Visual Studio are you using?

Quote:

Originally Posted by sandeepdhankar10 View Post

i need that which enable me to run my project on every plateform (window,linux, mac, etc ) and every browsers (ie, opera, firefox etc)..

If your website runs in a web browser (other than IE) than it is Platform independent (because it's run in a browser and is not specific to an Operating System).
Member
 
Join Date: Dec 2008
Posts: 36
#14: Jan 2 '09

re: how to make plugins


i am using visual studio 2005
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#15: Jan 2 '09

re: how to make plugins


Well, you won't be able to do AJAX or Silverlight in VS 2005.

MS does have a free version of VS 2008 for ASP.NET called Visual Web Developer.

The thing is, the AJAX controls are part of .NET 3.5, and so is Silverlight.

If you're stuck on 2.0, I do have an idea.

You could use the Javascript XmlHttpRequest object in some javascript functions to get links for your pictures.
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#16: Jan 2 '09

re: how to make plugins


It appears that silverlight doesn't work in opera, frinny. Works in Chrome though.
Member
 
Join Date: Dec 2008
Posts: 36
#17: Jan 2 '09

re: how to make plugins


ohhhh!!!... again a confusing situation .. i want the solution for my problem as soon as possible...
and i think ajax is also compitible with visual studio 2005 .. i have worked on it
but just uses the script manger and update panels.. nothing much more/...

so pls tell me which is better....
how to do that..
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#18: Jan 2 '09

re: how to make plugins


Well, if you can get it using the UpdatePanels, then use that.

We can't write the solution for you...so basically I suggest you wrap an Image control and a few buttons inside an UpdatePanel, and write some code for the Image control to switch images whenever you click one of the buttons.
Member
 
Join Date: Dec 2008
Posts: 36
#19: Jan 2 '09

re: how to make plugins


is there any way to to show image in imge control without giving image url..

like a in pictruebox as picturebox.image=image.
actully the data of image coming from the server is in bytes.. and i am converting the byte in image.. and assign to picture box.. e.g
Expand|Select|Wrap|Line Numbers
  1.  BinaryFormatterSvc.Service s = new BinaryFormatterSvc.Service();
  2.  
  3. BinaryFormatterSvc.ImageClass icc = s.GetImage(Img);
  4. byte[] byt = icc.myImage;
  5. MemoryStream ms = new MemoryStream(byt);
  6. Bitmap b = (Bitmap)Image.FromStream(ms);
  7. pictureBox1.Image = b;
binaryformattersvc is a web service .. and i am using serialisation also for bytes..

so how to do this in Image control...
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#20: Jan 2 '09

re: how to make plugins


I don't think that you can...on the web, you have to use a URL.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#21: Jan 2 '09

re: how to make plugins


You have to provide the URL location of the image...otherwise the browser does not know where the image is. Also, this image must exist on the web server. It cannot exist in a local file on the computer hosting the web application or else the web browser cannot access the image.

I would recommend outputting your images to a "temp" folder in your web application's root directory.

In your web application you should
  • Create a folder to temporarily hold images
  • Create a new WebUser control.
  • Place an UpdatePanel and an Ajax Timer control in it
  • In the UpdatePanel place an Image control that will display the images.
  • Create a Web Method that your timer can call which updates the image with a new photo after a given amount of time....implement the logic that retrieves the new image and places it in the temporary folder update the Image control....

It might be a good idea to have a separate ASPX used to return the image to the browser. This ASPX page's content type will have to be an image (instead of html). It could be used to automatically retrieve the image for you and you wouldn't have to use a temporary folder....this is a little complicated but if you google it and take the time to understand how to do this it could be beneficial to you. I know that you're in a hurry to complete the project but if you rush too much while trying to learn new concepts you're just going to get frustrated....so maybe just try the temporary folder idea.
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#22: Jan 2 '09

re: how to make plugins


That would work quite well Frinny. You can write to the Response stream directly from the MemoryStream.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#23: Jan 2 '09

re: how to make plugins


Quote:

Originally Posted by insertAlias View Post

That would work quite well Frinny. You can write to the Response stream directly from the MemoryStream.

The following works:
Expand|Select|Wrap|Line Numbers
  1.  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2.  
  3.   Response.ContentType = "image/jpg"
  4.   Dim fs As FileStream = File.OpenRead(Server.MapPath("~/Images/DogObedienceTraining.jpg"))
  5.   Dim b(fs.Length) As Byte
  6.   For i = 0 To fs.Length - 1
  7.      b(i) = fs.ReadByte
  8.   Next
  9.   fs.Close()
  10.   Response.BinaryWrite(b)
  11. End Sub
So I see no reason why not.

<edit>Hmm for some reason I thought you were asking if you could do this...oh well</edit>
Member
 
Join Date: Dec 2008
Posts: 36
#24: Jan 3 '09

re: how to make plugins


thanks Firnney and Alias... u r so supporting...
But I have doubt about both the ideas.
as Firnney Suggest the idea of temp folder .. i tried this but there is an issuse of refreshing of image.. b/c each time when the imge control get refreshed there is a flickring of refresh.. that what i not want. i need continuos connection means the image should change without flickring... that is what happing in window user control that i made..

and the another option u suggest is same as mine means using the memory stream .. but still there is same issue of showing the image byte.. b/c for showing them we have to save them temp. and then give the imageurl path to image control.. and same issue of flickring of refresh occur..

so i think both the idea may not work for me as i tried..

so pls pls pls.. suggest me the way of making the plugin of my window user control . so that it can easily be worked with firefox, ie and other browser..

and i also made a cab file which contain the setup of window user control and inf file.. but agian it not work means it not get install automatically .. user have to download the setup and agiain run it..
i dont know where i am wrong..

these are the two point which are becoming nightmare for me..

so please please help me out.... i shall be higly thank ful to u.. peaople..
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,559
#25: Jan 4 '09

re: how to make plugins


The problem you are having is ActiveX is a Windows only non-standard method that other browsers have trouble supporting and may not even have an interest in supporting. You're best bet is to drop this way and see how the different browser vendors accept plugins. I would bet that compatibility between all the other browsers would be closer to each other than they would be with IE.

Now the question is whether you mean "plugin" or "add-on or extension". Add-ons for Firefox are done in javascript and XML, essentially (XUL). I don't recall what Opera does.

But what you are trying to do sounds like basic javascript as AJAX, I don't know.
Member
 
Join Date: Dec 2008
Posts: 36
#26: Jan 4 '09

re: how to make plugins


Thanx Haward !!..
actully i m vary new in the area of these plugins etc..
so i dont know the exact diffrence b/w plugin or addon or extension..
my main aim is to run my control in each diffrent browsers.. no matter how..

so pls let me know how to do that.. when any browser run the web page the control get istalled automaticallly on client machine and add in plugins tab under add-ons of firefox.

so please tell me..
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,559
#27: Jan 4 '09

re: how to make plugins


Quote:

Originally Posted by sandeepdhankar10 View Post

Thanx Haward !!..
actully i m vary new in the area of these plugins etc..
so i dont know the exact diffrence b/w plugin or addon or extension

A plugin is used to display content for a particular mimetype that a browser does not display natively, such as Flash. An extension adds functionality to the browser, such as spell checking.
Quote:
when any browser run the web page the control get istalled automaticallly on client machine and add in plugins tab under add-ons of firefox.
That will never happen. No one wants to give up control to a 3rd party automatically.

Firefox Plugins
Firefox Extensions
Member
 
Join Date: Dec 2008
Posts: 36
#28: Jan 5 '09

re: how to make plugins


hi haward ,
i m sending the code of my .net wndow control. that uses a webservice for
fecthing the image in binary form and displaying in picture box.

Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Web.Services.Protocols;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Drawing;
  6. using System.Reflection;
  7. using System.Data;
  8. using System.Text;
  9. using System.Net;
  10. using System.Windows.Forms;
  11. using System.IO;
  12. using System.Runtime.Serialization.Formatters.Binary;
  13. //using ImageClassAssy;
  14. namespace DisplayerControl
  15. {
  16.  
  17.     public partial class UserControl1 : UserControl
  18.     {
  19.         public UserControl1()
  20.         {
  21.             InitializeComponent();
  22.         }       
  23.         private string path;
  24.         public string imgpath
  25.         {
  26.             get { return path; }
  27.             set { path = value; }
  28.         }
  29.     //    public event ControlEventHandler OnClose;
  30.         private void Display(string Img)
  31.         {
  32.             try
  33.             {          
  34.  
  35.                 BinaryFormatterSvc.Service s = new BinaryFormatterSvc.Service();                
  36.             //    s.Proxy = new WebProxy(s.Url);
  37.                //int test= s.coount();
  38.                // MessageBox.Show(test.ToString());
  39.                 BinaryFormatterSvc.ImageClass icc = s.GetImage(Img);
  40.                 byte[] byt = icc.myImage;
  41.                 MemoryStream ms = new MemoryStream(byt);
  42.                 Bitmap b = (Bitmap)Image.FromStream(ms);
  43.                 pictureBox1.Image = b;
  44.  
  45.             }
  46.             catch (Exception e)
  47.             {
  48.                 string sour = e.Source;
  49.                 string stack = e.StackTrace;
  50.                 char[] er = new char[1] { ':' };
  51.                 string[] fr = new string[1] { "-->" };
  52.                 string a = e.Message;
  53.  
  54.                 string[] s = e.Message.Split(fr, StringSplitOptions.None);
  55.                 if (s.Length > 1)
  56.                 {
  57.                     if (s[0].Trim().Equals("Parameter is not valid."))
  58.                     { label1.Text = "Parameter is not valid."; }
  59.                     else if (s[1].Contains(":"))
  60.                     {
  61.                         string[] fet = s[1].Split(er, 2);
  62.                         if (fet[0].Trim().Equals("System.IO.IOException"))
  63.                         {
  64.                             label1.Text = "System.IO.IOException";
  65.                         }
  66.                         else if (fet[0].Trim().Equals("System.IO.DirectoryNotFoundException"))
  67.                         {
  68.                             label1.Text = "System.IO.DirectoryNotFoundException";
  69.                             timer1.Stop();
  70.  
  71.                             MessageBox.Show("Sorry....Sharer Has Been Logged Out!!!!");
  72.                         }
  73.                     }
  74.                 }
  75.                 else
  76.                 {
  77.                     label1.Text = e.Message.ToString()+"       "+e.Source .ToString ()+"       "+e.StackTrace .ToString ();
  78.  
  79.                 }
  80.             }         
  81.  
  82.         }
  83.  
  84.         private void timer1_Tick(object sender, EventArgs e)
  85.         {
  86.             //label2.Text = i.ToString();
  87.             //i++;
  88.             try
  89.             {
  90.                 Display(path);
  91.             }
  92.             catch (Exception)
  93.             { }
  94.         }
  95.      //  NetworkCredential cr = new NetworkCredential()
  96.       // WebProxy wbp = new WebProxy();
  97.         int i = 0;
  98.         private void UserControl1_Load(object sender, EventArgs e)
  99.         {
  100.          //  wbp.Credentials = CredentialCache.DefaultCredentials;
  101.  // System.Net.ServicePointManager.Expect100Continue = false;
  102.             try
  103.             {
  104.                 timer1.Start();
  105.             }
  106.             catch (Exception)
  107.             { }
  108.         }
  109.     }
  110.  
  111. }
  112.  
  113.  
  114.  
and for embendingthis control to the web page .. i am using these follwong lines

Expand|Select|Wrap|Line Numbers
  1.  <object id="myControl"
  2. classid="http:DisplayerControl.dll#DisplayerControl.UserControl1" 
  3. height="768" width="1024"> 
  4. <param name="imgpath" value="<%= Session["id"].ToString()%>" /> 
  5.  

so please let me know where and what code i write so that it is also start working in firefox..or other browsers.

i tried ur link.. and i followed all step .. the exmaple given in that is working in fire fox but i am not able to under stand what the exctly is going on .. they just change the Plugin.cpp by thee code.. suppose to draw some grphis..
but i am not able to under stand where should i write mine code..

so please if u can hellp me in any way . so please help me out ..

i shall be highly thanhful to you..

i also tried the another link
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#29: Jan 5 '09

re: how to make plugins


Sandeep,

Are you aware that you will have to create plugins/extensions for every browser?

That is going to take a lot of work.
You're going to have to first understand how to create plugins/extensions for Firefox, then implement the solution and you'll probably run into multiple problems while implementing it. Then you're going to have to understand how to create plugins/extensions for Opera, then implement the solution and you'll probably run into multiple problems while implementing it. Then you're going to have to understand how to create plugins/extensions for.......the cycle continues.

A much faster, easier, much more flexible way to implement your solution is to write it using code that is standard for all browsers.

The code that is standard for all browsers is HTML.

This is why we have been suggesting that you write a Web User Control. When a Web User Control has finished processing the end result is written as HTML to the web browser. It works in every browser.

This HTML can be manipulated using JavaScript and Ajax.
Now, JavaScript and Ajax code will not be the same for every browser so you will have to modify it so that it takes this into consideration.

Even DrHowardDrFine has suggested this solution:
Quote:

Originally Posted by drhowarddrfine View Post

But what you are trying to do sounds like basic javascript as AJAX..


You do not have to create a plug-in or extensions. If you choose to take this route you are constantly going to be creating these...you're going to be creating work for yourself.


The solution you have posted is still using a Windows User Control.

This control is never going to be outputted as HTML. It's meant to be used in a Windows Application. Just because IE has the functionality that lets the user control access the Windows Operating System to get it to work does not mean that it is going to be easy to get it to work across platforms or in every web browser.

If you implement a Web User control:
  • it will be much easier to maintain
  • it will save you time implementing the solution
  • it will let your code be accessed in multiple operating systems
  • it will work in every web browser because it'll be HTML
  • it will be much easier to develop and we can help you here in the .NET forum

Please take into consideration that this site is meant to help you in developing your solution and we cannot write the solution for you. This particular forum (the .NET forum) is here to aid you with your .NET questions and the experts here may not have any knowledge on how to create plugins or extensions for web browsers. If you choose to go down this path you're going to have to create new projects to implement your plugins and it will likely not be a .NET application at that point.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,559
#30: Jan 5 '09

re: how to make plugins


Quote:

Originally Posted by sandeepdhankar10 View Post

hi haward ,
i m sending the code of my .net wndow control. that uses a webservice for
fecthing the image in binary form and displaying in picture box.

Don't send me anything. I know little about .NET stuff.
Member
 
Join Date: Dec 2008
Posts: 36
#31: Jan 5 '09

re: how to make plugins


thx to all concern persons..

thx again for ur suggestion.. but i told u already that i tried to create a webuser control and using ajax.. i am bit succefully also to implement my concept.. but it is not working in the desired manner..

as i think or know wether we use ajax/webcontrol or not ---> to fetch something from the server our page must have to be refreshed. if we use ajax then onlythe concern control will refreshed.. but this is the main problem which is like a obstacle in my project.. i want to show images that are to be fetched from the sever without any refrshing or flickring.. and i think ajax and web user control can't solve this issue.. this ablitliy is only in the window user control..

and i know i have to do lots of stuff for creating plugins.. and i m going to try hard for that... b/c this is only the last way to me.. but if u provide some help than may be it 'll bt easy to me..

and haward sorry for u sending .net stuff. i dont have any idea that u dont know .net..

so ok expert.. thx for ur kind supprt. and ur time..

but i m not going to loose i must going to make a plugin ... and send the solution in this post as soon as possible...


thanks....
:)
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#32: Jan 5 '09

re: how to make plugins


Quote:

Originally Posted by sandeepdhankar10 View Post

i want to show images that are to be fetched from the sever without any refrshing or flickring.. and i think ajax and web user control can't solve this issue.. this ablitliy is only in the window user control..

Did you use an UpdatePanel?
Did you set to UpdatePanel's UpdateMode to be Conditional?
If you do this, only the content within the UpdatePanel is refreshed and so the page should not flicker.
How quickly were you refreshing the picture?


Quote:

Originally Posted by sandeepdhankar10 View Post

and haward sorry for u sending .net stuff. i dont have any idea that u dont know .net..

Don't worry about posting .NET code in the .NET forum.
.NET isn't DrHowardDrFine's forte (he may have forgotten that he's posting in the .NET forum) but the rest of us can understand it perfectly fine. :)

Please use code tags when posting code snippets though....it makes it easier for us to read and refer to your code.



Quote:

Originally Posted by sandeepdhankar10 View Post

but i m not going to loose i must going to make a plugin ... and send the solution in this post as soon as possible...

Good luck
Member
 
Join Date: Dec 2008
Posts: 36
#33: Jan 5 '09

re: how to make plugins


i tried the updatepanel and also the conditional property..
but i told u that i dont want to get refresed even the control also..

it should look like smooth and contionous..
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#34: Jan 5 '09

re: how to make plugins


Quote:

Originally Posted by sandeepdhankar10 View Post

i tried the updatepanel and also the conditional property..
but i told u that i dont want to get refresed even the control also..

it should look like smooth and contionous..

It seems to me that you are trying to stream video....is it possible for you to access this video stream instead of individual pictures?

It would be a lot smoother if you could output video instead of pictures.

I'm not familiar with SilverLight, but have you looked into using it to implement your solution?
Member
 
Join Date: Dec 2008
Posts: 36
#35: Jan 5 '09

re: how to make plugins


no i am not tring to use video. streaming..
as i already told u that .. my requrnment is to capture pics from one system and send or save them into the server and agian fetch those picture form other system and disply on the webpage with in the control ..

and this all stuff is gooing on at same time..

like glance and live look if u heard about those..
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#36: Jan 5 '09

re: how to make plugins


Maybe explain what you mean by "glance" and "live look"
Member
 
Join Date: Dec 2008
Posts: 36
#37: Jan 5 '09

re: how to make plugins


u can search on google.. about those..

these are desktop sharing...
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#38: Jan 5 '09

re: how to make plugins


Quote:

Originally Posted by sandeepdhankar10 View Post

u can search on google.. about those..

these are desktop sharing...

I am googling...but googling these very common words is popping up with Tons of stuff that doesn't match what you're describing......

Could you please explain in more detail?
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,603
#39: Jan 5 '09

re: how to make plugins


I think that he's refering to
Glance - Screen sharing, web demos, presentations with one click
and
http://www.livelook.com
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#40: Jan 5 '09

re: how to make plugins


Ok, here's an idea:

Use the temporary folder idea.
Have the Service save multiple pictures to the server.

Have your web page download a bunch (a "batch") of the pictures at the same time, but keep them hidden (display:none).

Use JavaScript to display the pictures.....when you start getting towards the last picture have the Ajax timer grab the next "batch" of pictures.


I think this will smooth out your flickering problem.
Member
 
Join Date: Dec 2008
Posts: 36
#41: Jan 7 '09

re: how to make plugins


thx for the suggestion.. but this will create a speed issue.. fecting the bunch of pictures where a avg size is 150kb .. i think is not a gud idea.. and when the ajax time grab is on last index then agin fetch .. the same.. is little look like lazy.. movement..

but never mind.. i m very near to create a plug in.... .. i am refrenceing
This article

and the example giving in it..

it works.. but now i m facing a diifulty to how to call c# dll in c++ code..

b/c if u see this article.. the they are using mozila firefox source code.. and a plugin.cpp. which is like a connecter b/w firefox and control. (as i think /understand)..
so i want my displayercontrol.dll in this c++ code and call that there..

if now u can provide any help then it really works for me..

thx alots for ur suggetions...
Member
 
Join Date: Dec 2008
Posts: 36
#42: Jan 7 '09

re: how to make plugins


and i more thing ... pls look a this link also/..

its really help ful.. but i dont have so much knowledge... as u have.. so pls have look on it..
actully i followed all the steps except 11 and 12.. i m not able to get the auther in these lines..

an d also i not able to under stand .. though this all create a dll file but still where should i give the refrence of my control in it.. or how to attach my control in it..

any advice pls?????

thanks
Nitin646's Avatar
Member
 
Join Date: Oct 2007
Location: मुंबई, India
Posts: 109
#43: Jan 10 '09

re: how to make plugins


hi sandeep,

you are going in wrong way

edit the binaryformattersvc web service .. and directly send the images in .jpg format to the client machine,

use Image control in an UpdatePanel as explained by Frinavale ,

don't waste time in developing plugin for every browser, it is not good approach

best of luck for your app,
JAI HIND
Member
 
Join Date: Dec 2008
Posts: 36
#44: Jan 10 '09

re: how to make plugins


jai hind nitin bhai,,

ya dear i can directly send the jpg ,but dear if i use the update panel with image control.. then each time the updat panel get refreshed there is a flickring.. which i not want.. and the suggestion given by the Frinavale is not suited for me.. b/c fectching a bunch or jpg.. and the showing them one by one agian fetching another bunch... its time consuming.. and i want speed... and even if i do this the flickering issue still there...

but no to mind i m near to complete the plugins.. but facing problem to attach my control with my plugin.

thx for ur suggetiions...,,.

JAI HIND
Nitin646's Avatar
Member
 
Join Date: Oct 2007
Location: मुंबई, India
Posts: 109
#45: Jan 11 '09

re: how to make plugins


Hi, i've found soln for you, you need to embed autoviewer into your page,
Download images on client machine in jpg format and embed into autoviewer

.:DEMO:.
AutoViewer

.:DOWNLOAD PAGE:.
AutoViewer Download

hope it works
<no link spam...MODERATOR>
Member
 
Join Date: Dec 2008
Posts: 36
#46: Jan 11 '09

re: how to make plugins


thx buddy .. thx alot..but can u pls let me know that IS auto viewer able to control by a timer..means inspite of clicking any play button or keyboard control.. the images should change auto matically...actully i m developing a project like Glance or Live look
Nitin646's Avatar
Member
 
Join Date: Oct 2007
Location: मुंबई, India
Posts: 109
#47: Jan 24 '09

re: how to make plugins


you can use JavaScript to control it by timer
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#48: Jan 26 '09

re: how to make plugins


I think that Silverlight is best suited for your problem.

When I mentioned it before I wasn't sure what Silverlight was all about but now that I've played with it a little I have a feeling that this would be the best technology your application.

It would require you updating to a more current framework and also updating to a more current version visual studio (2008). You could take your existing code and implement that into a SilverLight application. You'd have to create a Web Service that would retrieve the images....and change your code to consume the Web Service...

If you're still working on this, I would seriously look into using SilverLight..
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#49: Jul 30 '09

re: how to make plugins


Silverlight is the best suited for this application.

I've recently put a lot of work into researching the topic of streaming live "pictures" to a client.

I did many days of research on the different techniques that could be used for this purpose...the majority of them were topics like Comit/ Reverse Ajax.

What I found was that these solutions (using HTML and JavaScript/Ajax) were not well suited for this solution.

Flash was much better suited because it was able to get around some of the problems that I was finding with these solutions. But I abhor Flash.

As a .NET developer I took a look into using Silverlight and created an application that did exactly what you were trying to do.

There were 3 components to the application:

A Socket server that read image files off of the hard drive into a byte array and pushed these images to the client.

A Policy server that provided Silverlight with a policy allowing it to connect to the Socket server.

A Silverlight client application which ran in the web browser and received the image files that the server pushed to it.

It was not a simple task and require days of research, days of planning, and days of ironing out the bugs: months of my time.

I'm currently writing a 3 part article about how to solve this problem.

-Frinny

A small piece of advice to my fellow developers: take your time and research the problem before you try to produce a solution. You'll never get anywhere if you expect others to give you the answers.
Member
 
Join Date: Dec 2008
Posts: 36
#50: Jul 31 '09

re: how to make plugins


Thanks alot Frinavale ...

i m very greatful to you that you did that much work on this problem ..

but fortunatly .. i have solved the problem earlier. not in direct way .. but in indirect way . .by using JAVA APPLET inspite of activeX..

b/c it run on every browser and OS..

i will highly thankful to you if you liitle eloborate your silverlight idea.
i will try to use silverlight also..
.

thanks again..
Reply