TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chunlei
NA
2
0
can't play embedded youtube swf on some computers
Jun 26 2009 1:17 PM
I embedded a youtube video in my C# application like this :
string url =
http://www.youtube.com/watch?v=x3r0ilu2Rzk
;
StreamWriter
sw =
new
StreamWriter
(
"utube.html"
);
string
PlayString = url.Trim().Replace(
"watch?v="
,
"v/"
);
string
Finalplaycode =
"<embed src="
+ PlayString +
"&hl=en&fs=1& type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=425 height=344></embed>"
;
sw.Write(Finalplaycode);
sw.Close();
string
PathToNavigate =
Directory
.GetParent(
Application
.ExecutablePath) +
@"\utube.html"
;
webBrowser1.Navigate(PathToNavigate);
I can play it on my computer, but if I copy my dlls to someone else's computer, it won't work any more. It will only appears as a small red cross on the left top corner. We both have Adobe flash player installed. What is the problem? Please help me. Thank you!
Reply
Answers (
0
)
WebParts
Windows Service that detects logon/logoff events