Click here to Skip to main content
15,908,843 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Calender popup missing Pin
Jaison Peter7-Mar-12 23:55
Jaison Peter7-Mar-12 23:55 
AnswerRe: Calender popup missing Pin
Lakxman16-Mar-12 2:25
Lakxman16-Mar-12 2:25 
QuestionWeb.Config & ConnectionString Pin
GenJerDan6-Mar-12 11:26
GenJerDan6-Mar-12 11:26 
AnswerRe: Web.Config & ConnectionString Pin
walterhevedeich6-Mar-12 18:57
professionalwalterhevedeich6-Mar-12 18:57 
GeneralRe: Web.Config & ConnectionString Pin
GenJerDan7-Mar-12 3:17
GenJerDan7-Mar-12 3:17 
QuestionRemotey access Exchange server 2003 Pin
abbasshaikh5-Mar-12 23:30
abbasshaikh5-Mar-12 23:30 
AnswerRe: Remotey access Exchange server 2003 Pin
hypermellow6-Mar-12 4:44
professionalhypermellow6-Mar-12 4:44 
QuestionHTML5 Player in ASP.NET Pin
ballameharmurali5-Mar-12 23:12
ballameharmurali5-Mar-12 23:12 
Hi,

I want to Bind MP4 video file from Server to Lieral through c# code using HTML5 Player.
i could not able to set the path from the server.I tried a lot of samples from internet but it was not working in either of the browsers.

<u>Here is the Function i used to call the and was not able to set the source path:</u>

<b>
<pre lang="c#">this.Literal1.Text =GetWmaObject(mySourceUrl, isFullSize);

private string GetWmaObject(string sourceUrl, bool isFullSize)
{
string myWidthAndHeight = "";
string myObjectTag = "";
sourceUrl = sourceUrl + "";
sourceUrl = sourceUrl.Trim();

if (sourceUrl.Length > 0)
{
//Continue.
}
else
{
throw new System.ArgumentNullException("sourceUrl");
}



if (isFullSize)
{
myWidthAndHeight = "";
}
else
{
myWidthAndHeight = "width='640' height='480'";
}


sourceUrl = sourceUrl + "";
sourceUrl = sourceUrl.Trim();
if (sourceUrl.Length > 0)
{
myObjectTag = myObjectTag + "<video class='video-js' width='80%' height='264' controls='preload' >";
myObjectTag = myObjectTag + "<source src='" + sourceUrl + "' type='video/mp4; codecs='avc1.42E01E, mp4a.40.2'' />";
myObjectTag = myObjectTag + "<source src='" + Server.MapPath("~/ArtifactFiles/gizmo.webm").ToString() + "' type='video/webm; codecs='vp8, vorbis'' />";
myObjectTag = myObjectTag + "<source src='" + Server.MapPath("~/ArtifactFiles/gizmo.ogg").ToString() + "' type='video/ogg; codecs='theora, vorbis'' />";
myObjectTag = myObjectTag + "<object class='vjs-flash-fallback' width='640' height='264' type='application/x-shockwave-flash'";
myObjectTag = myObjectTag + "data='http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf' />";
myObjectTag = myObjectTag + "<param name='movie' value='http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf' />";
myObjectTag = myObjectTag + "<param name='allowfullscreen' value='true' />";
//myObjectTag = myObjectTag + "<param name='flashvars' value='config={'playlist':['http://video-js.zencoder.com/oceans-clip.png', {'url': '" + sourceUrl + "' ,'autoPlay':true,'autoBuffering':true}]}' />";
myObjectTag = myObjectTag + "<img src='http://video-js.zencoder.com/oceans-clip.png' width='640' height='264' alt='Poster Image'";
myObjectTag = myObjectTag + "title='No video playback capabilities.' />";
myObjectTag = myObjectTag + "</object>";
myObjectTag = myObjectTag + "</video>";
return myObjectTag;
}

return myObjectTag;
}


</b></pre>

In the above c# code sourceUrl - > when i set the source url the video is not playing.

Please do needful for this solution since it is bit urgent.

Thanks
Murali
AnswerRe: HTML5 Player in ASP.NET Pin
thatraja6-Mar-12 3:38
professionalthatraja6-Mar-12 3:38 
GeneralRe: HTML5 Player in ASP.NET Pin
ballameharmurali6-Mar-12 17:50
ballameharmurali6-Mar-12 17:50 
QuestionGrid view Pin
hrishi3215-Mar-12 20:05
hrishi3215-Mar-12 20:05 
AnswerRe: Grid view Pin
Abhinav S5-Mar-12 21:08
Abhinav S5-Mar-12 21:08 
AnswerRe: Grid view Pin
Anuja Pawar Indore5-Mar-12 21:20
Anuja Pawar Indore5-Mar-12 21:20 
QuestionChange master page <body> and <form> attributes from a child page Pin
Rafferty Uy5-Mar-12 16:40
Rafferty Uy5-Mar-12 16:40 
AnswerRe: Change master page and attributes from a child page Pin
walterhevedeich5-Mar-12 18:19
professionalwalterhevedeich5-Mar-12 18:19 
QuestionMore than 1900 pages export top excel from report Pin
Member 38798815-Mar-12 0:50
Member 38798815-Mar-12 0:50 
AnswerRe: More than 1900 pages export top excel from report Pin
Simon_Whale5-Mar-12 0:54
Simon_Whale5-Mar-12 0:54 
GeneralRe: More than 1900 pages export top excel from report Pin
Member 38798815-Mar-12 5:46
Member 38798815-Mar-12 5:46 
QuestionRequesting resources from a virtual directory in IE8 Pin
Ali Al Omairi(Abu AlHassan)4-Mar-12 23:07
professionalAli Al Omairi(Abu AlHassan)4-Mar-12 23:07 
QuestionConnection String Question Pin
Jaison Peter4-Mar-12 18:37
Jaison Peter4-Mar-12 18:37 
AnswerRe: Connection String Question Pin
Ali Al Omairi(Abu AlHassan)5-Mar-12 0:38
professionalAli Al Omairi(Abu AlHassan)5-Mar-12 0:38 
GeneralRe: Connection String Question Pin
Jaison Peter6-Mar-12 19:40
Jaison Peter6-Mar-12 19:40 
Questiondifference Pin
jprag4-Mar-12 3:37
jprag4-Mar-12 3:37 
AnswerRe: difference Pin
Anuja Pawar Indore5-Mar-12 21:24
Anuja Pawar Indore5-Mar-12 21:24 
QuestionASP.Net Best Environment Pin
Zeyad Jalil3-Mar-12 22:25
professionalZeyad Jalil3-Mar-12 22:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.