Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've used this code to navigate to a webpage:
XML
<hyperlinkbutton content="Bear" grid.row="2" height="48" horizontalalignment="Left" margin="25,27,0,0" name="hlinkBear" verticalalignment="Top" width="64" navigateuri="http://cespage.com/bear.wmv" />

but it's not working.
Then I used WebBrowserTask like:
C#
Uri url = new Uri("http://cespage.com/bear.wmv", UriKind.Absolute);
wbt.URL = url.ToString();
wbt.Show();

(wbt is WebBrowserTask)
but again, it's not working for all videos.
It plays one and not the other.

I've used mediaelement too, but here also same problem. It is playing a video and not the others (all are .wmv).

How can I navigate to a webpage through a hyperlink.
If that link contains a video, would it be played directly on phone's media player, just like we do on our explorers.

Thanks in advance
Posted
Updated 18-Jan-11 22:22pm
v2

1 solution

For starters, your navigateuri should be written as "http://www.", not "http://". Without that the control could potentially be problematic. We can get away without this in most browsers because they simply put it there if it is missing, but your app via code is likely not doing that. If that doesn't help, I'm not sure what the problem with your code is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900