I'm trying to make a small silverlight application but i became across a problem, playing videos from youtube.
I tried a method with a html conteiner to embed the youtube flash player, but with this method i need to activate the option windowsless, and thats is not a good ideia for my web site.
If anyone have a good ideia,I'm glad to hear
thanks
BasicSide
Silverlight actually supports the H.264 format so you can play videos directly within your application.
There's a tutorial here that outlines how to do this:
http://www.uxpassion.com/2009/08/silverlight-tutorial-play-hd-youtube-videos-silverlight/
Related
I am wanting to render a short piece of animation on the splash screen of my CN1 app but am struggling.
The Lottiefiles website contains a lot of good animation content, but the closest example i can find to using it is within XCode. I have the downloaded JSON file, of the animation, but am wanting to know if anyone has figured a way of incorporating into a CN1 Java app?
I can see that developers have used in Java, but CN1 wouldn't allow the LottieAnimationView component on it's layout manager i would guess.
https://steemit.com/utopian-io/#fahrulhidayat/beautiful-animation-for-android-application-using-lottie-library
Any pointers appreciated. Thanks
The "right way" would probably be to wrap the native implementations for the various OS's in a cn1lib so you can use lottie in a cross platform way. There's a long tutorial about wrapping native code in the developer guide and Steve did a 3 part video series on the subject a few years back: https://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-3.html
It's mostly mechanical so it shouldn't be too hard. If you want to take a shortcut you can probably use the web version of the API in a BrowserComponent and call it a day.
I'm putting together a simple winforms app for playing videos from the web for my kids. I've explored two options so far but I'm having problems with both of them:
cefsharp: Playing videos wasn't a problem, but it would not persist cookies (even with the CachePath set), so I would have to log into the web sites each time. This would not be very user-friendly.
GeckoFX: No matter what site I go to (youtube for example), flash videos will not play. I get a bank section on the page where the video goes. Based on other questions, I tried adding the line "Gecko.GeckoPreferences.Default["extensions.blocklist.enabled"] = false;" right after the initialize statement, but that did not work. I'm running xulrunner-33.0.2 and GeckoFx-Windows-33.0-0.2.
Any ideas on how to get either solution working would be appreciated.
UPDATE:
I found this site https://bitbucket.org/geckofx/geckofx-29.0/issue/14/plugin-flash-not-working-since-xulrunner which stated to turn off the "Visual Studio hosting process" for the project and now YouTube video play with GeckoFX, but no videos play off xfinitytv's site (http://xfinitytv.comcast.net/watch-live-tv/).
A bug has recently been fixed in CefSharp to make this possible. See this issue: https://github.com/cefsharp/CefSharp/issues/843
What should work is:
setting CachePath
set the persist_session_cookies command line argument
after OnContextInitialized, call Cef.SetCookiePath
You'll need to use the latest version 39.0.1 to get access to the OnContextInitialized delegate.
can i record the sound with microphone, with help of flash or silverlight??
Yes. Both technologies allow you to do this, though the methods for doing so differ. I can't give details on a Flash implementation of it, but Tim Heuer's video gives a good walkthrough of how can access both the webcam and the microphone in Silverlight.
http://www.silverlight.net/learn/videos/silverlight-4-videos/access-web-camera-microphone/
I'm not certain about flash but with silverlight I know that you can't.
Probably never will be able to do so. Think about browsing to a silverlight site that activates your microphone and records conversation in your office. Sounds like a bad idea to me!
Im building a WPF 4.0 application and I want to include the ability to have a web-cam beside the PC running the app and I want to be able to record a video message. I cannot find any articles on this, and it seems like it might be a bit tricky...
Has anyone had any experience with this or know where to start?
lots of good stuff out there, eg:
http://easywebcam.codeplex.com/
http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/
http://blogs.msdn.com/b/cmarchal/archive/2006/08/25/724224.aspx
EDIT: for recording:
http://blogs.msdn.com/b/uberdemo/archive/2008/03/27/capturing-a-webcam-stream-to-a-wmv-file-from-within-a-wpf-application.aspx
http://videorendererelement.codeplex.com/
I have link to video file, and i want to check is it supported by Silverlight or not..
The question is - is there an online servise that provide this functionality?
You can try to play your video in some Silverlight player, here is the HealthMonitor from the SMF/MMPPF: http://smf.cloudapp.net/healthmonitor