Is it possible to provide a URL that returns an m3u8 file to azure media player? - azure-media-services

I'm using azure media player to play AES encrypted videos on my website. However, I don't want to use the default HLS streaming uri that comes back.
What I'm doing is loading the m3u8 from the HLS endpoint and adding captions to it directly (Since I can't find a way to add captions through media services itself, if there is one, I'd be all ears). So the url looks something like this: https://website.com/getvideo/100000
This url returns a valid m3u8 file and I can get it playing in other players (unencrypted).
My question is this: Is there a way to get azure media player to recognize this url as a valid return of an m3u8 file? Currently it's not even trying to hit my endpoint and I suspect it's because it's looking for something in the url.
Let me know if you need more information.

Related

Azure Media Player does not play in IE

With Azure Media Services we can upload video, encode it and get 3 URL's withing locator:
Smooth Streaming URL
HLS URL
MPEG DASH URL
Then, you can add Azure Media Player on the web page and it is supposed to work on all browsers and devices.
I noticed, that event on my one device (PC under Windows) the same video works fine in Chrome and Firefox but does not work with IE.
Here is 3 URL I have got after encoding:
Smooth Streaming
MPEG-DASH
HLS v4
And all of these URLs does not work with IE11 on demo site.
Am I missing something?

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.

Filter YouTube Videos which can not be played on iphone device (yt:accessControl embed and syndicate) fields

I am using this api to fetch youtube videos
API that i am hitting is:
http://gdata.youtube.com/feeds/api/charts/movies/trending?v=2&paid-content=false&hl=en&alt=json&format=5
Can you please suggest some way so that i can send some parameters in this api that can filter the results on basis of yt:accsessControl embed and syndicate fields... so how to embed this fields in api to filter results
I have tried this :
http://gdata.youtube.com/feeds/api/charts/movies/trending?v=2&paid-content=false&hl=en&alt=json&format=5&embed='allowed'&syndicate='allowed'
This does not filter the video results.. so please suggest what should i do ?
format=5 effectively acts as a proxy to return only videos that are embeddable.
Similarly, you can use format=1 (which is one of the public RTSP streams) to return only videos that have syndication enabled, since only those videos will have that format available.
You can't combine the two to get back only videos that have both set, though. If you say format=1,5 you'll get back videos that have either set.

How do I differentiate between an audio URL and a video URL?

I have some URLs to play content from, but I have to identify whether the given URL contains video or audio. How can I do this?
The only way to tell what kind of content a URL references is to send a HEAD request and check the Content-Type returned. Or you could just start retrieving the resource and decide what to do with it when you get the headers. That's the approach web browsers take.

Need to let user upload video using 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.