What kind of embedding to you have in mind? Embedding videos from Umbraco using macroes with parameters or embedding videos from services like youtube or vimeo?
As Fuji mentions above an option could be to use youtube or vimeo since those services work on mobile browsers. If you choose this approach have a look at the Universial Media Picker, wich can connect to these services and let you pick your videos directly from Umbraco.
However if you want to upload the videos directly in Umbraco and fetch them directly you should do the following.
1: Make sure that the mime type for .mp4, ogg and the webm format is registered in the web.config - otherwise you may get an 404 error page because the media can't be found.
2: Include the javascript and css ressources needed
3: Write some magic Razor to get the path for the video.
Creating a Razor script to embed video
How would I go about embeding video with parameters using a Razor script?
Hi Steve
What kind of embedding to you have in mind? Embedding videos from Umbraco using macroes with parameters or embedding videos from services like youtube or vimeo?
Looking forward to hearing from you?
/Jan
Hi Steve,
I usually make use of either youtube or vimeo and make use of jquery to open the videos. This can easily be integrated with razor.
Just embedding a local .mp4 file with paramameters. I just don't have any ideas where to start with the razor script.
Also, I don't want a flash player because It won't work with mobile browsers. Any help?
Hi Steve
Ok, now I get what you want to do.
As Fuji mentions above an option could be to use youtube or vimeo since those services work on mobile browsers. If you choose this approach have a look at the Universial Media Picker, wich can connect to these services and let you pick your videos directly from Umbraco.
However if you want to upload the videos directly in Umbraco and fetch them directly you should do the following.
1: Make sure that the mime type for .mp4, ogg and the webm format is registered in the web.config - otherwise you may get an 404 error page because the media can't be found.
2: Include the javascript and css ressources needed
3: Write some magic Razor to get the path for the video.
Currently I'm searching for the script to do this (Since I'm a Razor n00b I can't remember this from the top of my head). However I'm sure you can benefit from having a look in the Razor Cheat Sheet here http://our.umbraco.org/projects/developer-tools/razor-dynamicnode-cheat-sheet
/Jan
Any solution to this?
I am still looking for a way to embed local .mp4's using Razor.
is working on a reply...