Need to let user upload video using GWT - gwt

I need to let users upload videos in GWT site, and after uploading I should allow them to preview it. I don't need any controls, just a play and stop button would be enough so that I can show them a preview?

Uploading the video to your server is the easy part - that's what the FileUpload Widget is for. You just need to write some sort of end point on the server side - a servlet, PHP script, etc. that will receive the file and store it somewhere.
The tricky part is the preview - AFAIK, you need a media streaming server for that. The only free and good one I know is Red5 (site1, site2, site3 - don't know which one is the current one =_=).
An alternative would be to use an exisiting media streaming site that exposes an API for users to upload videos - like YouTube API. The docs show how to upload a file (directly from the user, or from your server) to the YouTube service - in return you'll get a link or HTML code to embed on your site.

Related

How do I rewrite URL to drop file extension for pdf on github pages?

Imagine my website is hosted on GitHub Pages and has a custom domain website.com. I can access a pdf at website.com/mypdf.pdf
Is there a way where I can make it work at website.com/mypdf?
As mentioned in comments, if you are using static website hosted by a 3rd party like GitHub pages, you don't really get a lot of control over http server. I would tentatively say you cannot control URL rewrite rules on GitHub.
What you could potentially do instead is to host a page with a bit of JavaScript that would start the download on a given event (button click, page load, etc) this way you could mask your actual download URL with this html page (that by convention comes with no file extension)
UPD: and surely enough someone's been doing it already: http://lea.verou.me/2016/11/url-rewriting-with-github-pages/. The post is going on about having nice urls, but I believe file downloads implementation can be implemented similarly
Yes you should make your website with MVC structure. Make a controller and in Index action load pdf file.
Then on action calling your pdf will be loaded like that:
Students/AllResult etc

Can I import or upload an audio file to soundcloud via the api using a URL vs. file data?

I'm trying to upload/import a track to soundcloud via their api.
Right now, it looks like you can only upload an audio file, but you can only do it by POSTing the file data.
My question is, is it possible to import to soundcloud (through the api) from a URL?
sort of like they do here: http://importer.soundcloudlabs.com
but via the soundcloud api.
Any ideas? I don't really want to make this a 2 legged process (download audio file, then upload file data to soundcloud)
Thanks!
I don't think this is possible. On the importer, you'll probably find that behind the scenes, it's doing that two-step itself. User inputs url, back end server downloads file, then uploads to SoundCloud API.

Flickr: Add photos to my personal photostream

I found a similar problem in ' Let Users Submit To Our Flickr Feed (iPhone) '.
So, I want other people (using my iOS app) be able to upload photos to MY photostream.
I got it working with phpFlickr, using the setToken method and not using the auth method. (See bottom section how).
But I don't want to use this script and directly upload it to flickr, to cut out 'the middleman' (= my webserver), to limit data usage and server load etc.
I'm using the ObjectiveFlickr library for communication with flickr. Anyone who can give me a direction to work in or maybe a small piece of working code.

Displaying/streaming pictures/video when tweet has media hosted somewhere other than TwitPic

I am working on a Twitter application for Iphone, and wanted to display/stream pictures/video when a tweet has media hosted somewhere like yfrog.com, plixi.com, twitvid.com, etc. I did manage this for TwitPic, but didn't for others. If anybody has any idea let me know.
Use Embedly. It will make it very easy to embed content from a large number of sites.

iPhone web services NSURL

hi I am working on an application which takes data from a website and it displays it in table. I have been sucessful in making like an RSS feed (made like a twitter feed so I think it is an xmlparser) but now I want to get data from a website which doesn't have RSS feed in it..I just want to get the titles from the webpage.... any suggestion how do I do it without the XMLParser...
thanks
I think that the best way is to create on your server a php/asp/... page that will scrape data from the remote website.
Then, in that page, you can use some CURL to scrape data.
See here.
Next, you return the data in the format you want (XML/jSon/etc...).
Finally, you can easily call that script from your code.
On the other hand, pay attention to not scrape anything as skimming is generally illegal and Apple ca reject your app because of that.
There is a nice post talking about it.