MVC :: Razor Playing Silverlight Video?
Feb 17, 2011USing MVC 3 I created a View
Index.cshtml
<div>
@Video.Silverlight(
[code]...
USing MVC 3 I created a View
Index.cshtml
<div>
@Video.Silverlight(
[code]...
i have Placed one object tag in one of my aspx pages which will play videos dynamically. object tag is as follow:
<object
type="application/x-shockwave-flash"
data='<%=file %>'[code]....
where "file" is a variable which i have delared at Code behind and on one button click i set it with "Video file with path". problem is that, i am not able to play video...
i used this JQuery plugin to play video on my app
[URL]
but i am not able to play the video,,,,,,Do i need some kind of player too??
i just copied the source from page and pasted as well as made js file too and copied the code of plugin and pasted in my app...
I am trying to figure out how to persist the playing of a Silverlight MediaElement playing within a Silverlight User Control embedded in an ASP.NET during postback.
The scenario goes:
Have a media player on a site, press play, continue navigating through site while the music continues playing.
What it does right now:
Obviously the object gets loaded anew on each postback or page redirect (even if it's back to the same page IE: default.aspx).
I've seen samples of how to persist the state of a Control on postback and even complex data through cross-page postback. But nothing that covers my specific case.
Other particulars:
Silverlight 2
ASP.NET
C#
My default.aspx:
[code]....
i need to embedd a video player on web form, that will be able to play almost every ormost of the known video/audio formats....(mpeg, flv, avi, 3gpp, wmv, wma)..i need only a single player.....to be embedded....and it shuld not use the pc's local players..
View 6 RepliesIn our application we are playing video, for this we are using frameworke 2.0.Video files are placed in application server.This is working fine in IE and it is not working in firefox.
View 2 Repliesyour code is working fine ..but i cant see the video on the page . when place cursor at video portion i get the download option of that video ..
View 1 RepliesI used the below link to upload video file and play it using player.In this code video file is uploaded and displaying in datalist but while play it using player i cannot see video and only audio is coming.
[URL] ....
Before I even start, I never used silverlight..not even touched the tutorials, articles, anything.
I got a project coming up I need to make some decisions about (Presentation layer defo Asp.Net MVC).
Basically a user will updload a video, which will be "processed" (cannot reveal that part) and then the user can preview the result before opting to download it in a video format.
For the "preview" part, I need to decide what "video" player to use, and before looking around I was wondering if Silverlight would be a good solution for this?
Is it possible to remove YouTube logo when i am using you tube iframe to play a youtube video?
View 1 RepliesI am a Bigner in asp.net c# learning. How can i create a new folder in server from my c# program. in my semester asp.net project, i want to upload video/audio files into my own newly created folder and the storing folder's name must be given by me, which means each time folder name may change during uploading time. and how can i give a picture link to that vodeo files containing in different folders and how can i play that files in the browser using a player.
View 1 RepliesHow do yo play a video with silverlight?
does Visual Studio come with a video player component build in? or do I need to make a video player?
I am working on an Entertainment Website, my client wants to save videos in the database, i am a bit aware of silverlight, that it can be done through microsoft's silverlight platform.
how to accomplish my goal, i am using ASP.Net with C# and LINQ and backend in MS-SQL Server 2008.
Now i'm currently trying to code a basic website as a project and i've run into problems regarding a search video function. having searched through the forum i still could not find a solution.What i intend to do is to have a video search web service in my website, perhaps something like this:http://www.google.com/uds/solutions/...rch/index.html. however from my limited understanding the codes provided is unable to work with VS2005? Is there a basic template that i could follow and implement for a video search function for youtubes video?
View 8 RepliesWhat is the best and easiest-to-use video player for popular video extension in asp.net?
View 1 RepliesI want to post few videos on a website but i don't want to use youtube or any other website.
I want to have an in-build player on the webpage with video in it - how to accoplish that ?
i want a player that can play flv and mp4 videos. i want to embed that player in my website (.net 3.5) i have googled a lot...but not found any....flowplayer is playing all flvs, but supports mp4 partially, some mp4 videos in flowplayer dont show video.
View 2 RepliesIn an ASP.NET environment, what's the best way to play a mp3 file? Do I need to use a flash plugin (some users may not have flash). Also, this needs to work on a IPhone or an IPod.
View 3 RepliesI have a website built in ASP.NET 2.0 and a Windows Server 2003 server streaming live videos with Windows Media Services.
To play the content i usually embed a Windows Media Player in my page and make it open the publication URL (let's say http://my.server.com/live), and it works fine.
The problem is that when no stream is playing, an empty stopped player appears and i don't like that
So i'd like to check in my (VB) code if there's actually something being streamed BEFORE i open the player, and display a 'no active stream right now, please try later' message instead.
When using a modal popup extender along with an embedded video, the popup is hidden behind the video in IE but works as expected in FF.I've tried manually setting the z-index of the popup to a huge number and the z-index of the video object to 1 but this makes no difference.
I've put the code for a sample page below.
[Code]....
I'm setting up a website for a friend who wants to showcase their music. At the moment i have about 12 songs all loading at the same time using the <embed> tag. This displays a WMP object on the page for each song and obviously takes forever to load due to the total size of the songs.
I'd like to be able to simply have a link (title of the song) and an image on the side of each song (play button) that can be used to start and stop each song as required.
i have a control that shows me Messages. it sits in an update panel and constantly polls the server for new messages. This is accessed by multiple users.. My problem is that i need to be able to play a sound when new messages are found.. i have been able to "sorta" do this using soundplayer.. every time it polls it is checking timestamps to determine if a message was added in the last x seconds.. if so.. ding.. that works great.. UNTIL you put it out on the server.. from what i gather.. that will only dingat the server.. (great for the server room... not so much for the users).. i have been googling for hours now.. it seems theres 3.4 billion answers for stuff i don't think im looking for.. but i can't seem to find anything that really does this. I need the Code behind to cause the playing of the sound.. and for all users..
View 4 RepliesI have tried the SoundPlayer class in ASP.NET used to give alert when it reachs threshold (value has been set).
When i directly complied from VS2008 its working mean it gives alert sound. But while i open browser the type "localhost/website/default.aspx" in the address bar its not playing (any sound).
My code is here
SoundPlayer objSoundplayer = new SoundPlayer(path);
objSoundplayer.LoadAsync();
objSoundplayer.Play();
objSoundplayer.PlayLooping();
Working with portnumber : localhost:55678/website/default.aspx
Not Working: localhost/website/default.aspx
What worng in this code or need to inculde some more properites.
How to " Upload Save Retrieve and Play MP4 Video files with live streaming from Database in ASP.Net"..your code is working fine ... but i have one problem . I can only here sounds of video files but VIDEOS are not working.
View 1 RepliesI been trying to get a simple stored procedure called and get its returned value back to a parm. In this case I am trying the simplest one I can make to get it to work and the I can build form there. I have tried to do this about 100 times and I try try and say heck with it and do it with out using a stored procedure and move on but I would really like to figure this out. I created a stored procedure called ReqLineItemTotal. It looks like this
USE [OnBillPROD]
GO
/****** Object: StoredProcedure [dbo].[ReqLineItemTotal]
Script Date: 11/09/2010 14:08:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Author: Bill Blair
-- Create date: 11-9-2010
-- Description: ReqLineItemTotal
-- ALTER PROCEDURE [dbo].[ReqLineItemTotal]
-- Add the parameters for the stored procedure here
@SessionIDNo nvarchar(50) = 0
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here select
(select SUM(dbo.TempReqDetail.Amount)
from dbo.TempReqDetail,dbo.tblReqAmountTypes
where dbo.tblReqAmountTypes.AmountType = dbo.TempReqDetail.AmountType and
dbo.tblReqAmountTypes.NumericOpperator = '+' and
dbo.TempReqDetail.SessionID = @SessionIDNo) -
(select SUM(dbo.TempReqDetail.Amount)
from dbo.TempReqDetail,dbo.tblReqAmountTypes
where dbo.tblReqAmountTypes.AmountType = dbo.TempReqDetail.AmountType and
dbo.tblReqAmountTypes.NumericOpperator = '-' and
dbo.TempReqDetail.SessionID = @SessionIDNo) AS LineItemTotal
END
From what I understand I should be getting my total back as LineItemTotal. So I want to call it pass it my parm of @SessionIDNo and have its returned value set to my @LineItemTotal parm. Trying to use these stored proc's always seems like way more work than they are worth but perhaps if I ever get the hang of it would make since to me.