Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
can't play embedded youtube swf on some computers
chunlei
15y
2.4k
1
Reply
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!
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
ArcGIS, .NET, Urgent! Please Help!
Windows Service that detects logon/logoff events