Google Video API - google-api

I am building a training tool for a client. They require a secure streaming server. I want to use Google Video (as part of Google Apps for Business) but I cannot find any information about the API. Can anyone help?

I'd second that. I wanted to use Google Video for the same thing but found out there was no API.
I used flash video files (*.flv), apache mod_h264 and a flash player from http://flv-player.net/players/mini/

It seems that, unfortunately, there is no API fo Google Video for Business at the moment:
http://www.google.com/support/forum/p/apps-apis/thread?tid=0be88ad2ae25cae3&hl=en

Related

How to embed audio in Slack via API?

We want to be able to embed an audio file in a Slack chat via the web API.
So far I managed to files.remote.add but that's just an external link.
Then I tried files.upload and share it to a channel, it does embed and play right inside Slack, but for us it's a suboptimal solution, as users can easily download the file, which is against our requirements.
Is there another way to achieve this?
PS: I've read almost all the documentation, there doesn't seem to be an audio or media block type, although I've seen examples that cite a file block type which is neither documented in the API and it's not defined in Bolt. (at least there are no type definitions for it for typescript)
It's not currently possible to embed a media player (audio or video) via the API. We're constantly tuning our APIs, if you have a specific use case in mind, would you mind writing in to feedback#slack.com and we'll get it logged. Thank you!

Uploading video to Youtube to a master account

I need to have people sending videos directly to my customer's Youtube account.
My customer doesn't want to have people login with their own Youtube account. This has to be transparent for people so they are not forced to have a Youtube account to send videos.
I found several solutions like Youtube Direct lite or the Youtube Widget but this is not exactly what they need as it force them to log to their own account... Same with Youtube API and OAuth2...
Is there any solution with the YouTube Data API v3 even if this is not really "best practice"
?
(I'm using PHP on Codeigniter)
Best regards.
I've just done a search on Google and found
http://tuts.stackarena.com/2013/03/uploading-videos-to-youtube-from-your-website-in-php/
It may also be worth checking out https://developers.google.com/youtube/ for additional resources, usually you find Google will have a solution for your needs.
Good luck

how to show a youtube video into WP7 application?

I want to develop a WP7 application. In this one, I would like to get video from youtube. For example, videos of a channel.
So, I know, I need youtube API, but I don't find a simple example to subscribe a channel and receive the latest video...
Is it possible ?
Thanks in advance , have a nice day !
I think there are simple RSS feeds for each channel... If there are no RSS feeds, parse the HTML feed (e.g. http://www.youtube.com/user/nokia/feed)
To play youtube videos, see
http://mytoolkit.codeplex.com/wikipage?title=YouTube
WP7 currently doesn't have a standard media layer for YouTube videos and you need the YouTube app in order to be able to play those. Unless you want to work on a low level with the encoding format used by YouTube, but then again - you would have to implement a decoding service.
To play a youtube Video you need to use the WebBrowserTask and open the target URL in the browser; if the youtube app is installed, it will play, if not installed, it will prompt the user to install and then play.
How to subscribe ?
I don't think if it's possible to make that directly from your app...

How can google analytics be integrated in a desktop application (MAC)..?

Could anyone help or refer how it can be done..I searched over the net and what i felt is that its only for mobile and websites.
It's for websites. Many of the concepts of web analytics (number of pages viewed for example) don't even make any sense on a desktop app, because they're not organized like a web page.
If you want to use Google analytics data from an analytics account Google provides a data export API.
If you want to track your native application then as Catfish_Man (great name btw!) said, it is not really possible. That isn't totally true, as you could fake it, but the paradigm is so different that you would be better off creating you own solution.
You might want to see this library for GA on desktops
http://code.google.com/p/jgoogleanalytics
Google Analytics doesn't provide a native Mac app integration, but you can use the Measurement Protocol Overview to send raw data to your GA property from your account.
Just create a mobile app property and then start sending raw GA events using HTTP. There are couple Obj-C wrappers available like https://github.com/swisspol/GARawTracker or https://github.com/stephenlind/SimpleCocoaGoogleAnalytics.

Possible to play Youtube video in a wp7 app?

is it possible to play youtube videos in a wp7 application? I would guess you could retrieve the video file from the youtube api and Perhaps play it using a media element? Any suggestion, tips or resources would be appreciated.
That's a great question and really goes to the heart of YouTube's business model, YouTube's API and WP7 Integration.
Short answer: To a limited extend it could be possible to play low-quality videos in WP7.
The first question you should ask yourself is: "What is Google?" The answer is "An Ad serving company". The overwhelming majority of Google & YouTube's revenue stream comes exclusively from advertisements. If you were to take YouTube's content and serve it on your own website/app without any YouTube branding or ads, that would works against their financial business model.
The second question you should ask yourself is: "So how is iPhone showing YouTube videos? And WP7? Or YouTube website itself for that matter?". This goes into the heart of YouTube's media delivery system. YouTube publicly exposes multiple formats from their website. For example format #1 is H263, Format #6 is MPEG and Format #5 is the SWF/FLV content. You can read more about YouTube Formats in their official documentation.
And now, to answer your question. YouTube API only exposes thumbnail size videos for unauthorized 3rd parties and those could potentially be showed in WP7 in-app. However the video quality will be terrible if scaled up for more than 1/4 of the WP7 screen resolution.
I suggest you read through the GData YouTube developer guide for information on the API. I'll do a quick run-through of how to get to those public videos. Personally, I haven't been successful in getting these 3GP videos to work on WP7.
Open up the GData feed for top rated videos: http://gdata.youtube.com/feeds/api/standardfeeds/top_rated
from the < entry /> element find the < id /> element which should have a link to single video GData feed. I picked up this one: http://gdata.youtube.com/feeds/api/videos/dMH0bHeiRNg
find the < media:content /> elements with yt:format attributes.
< media:content url='http://www.youtube.com/v/dMH0bHeiRNg?f=videos&app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='360' yt:format='5'/>
< media:content url='rtsp://v5.cache7.c.youtube.com/CiILENy73wIaGQnYRKJ3bPTBdBMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='360' yt:format='1'/>
< media:content url='rtsp://v3.cache8.c.youtube.com/CiILENy73wIaGQnYRKJ3bPTBdBMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='360' yt:format='6'/>
Open up "VLC Player" with format #6 URL and you should see the RTSP stream player.
** This whole post should be considered "As far as I know". This is all knowledge I gleamed from official YouTube documentation and forums.
Quoting from the Windows Phone Developer FAQ
How can I play youtube videos in my app?
Use the WebBrowserTask and open the target URL in the browser; if the youtube app is installed, it will play, if not installed, it will prompt the user to install and then play.
No, you can't play it via standard API methods. A similar question was asked before. WP7 currently doesn't have a standard media layer for YouTube videos and you need the YouTube app in order to be able to play those. Unless you want to work on a low level with the encoding format used by YouTube, but then again - you would have to implement a decoding service.

Resources