Roku Streaming Channel from Kit Digital - streaming

I've been developing a roku channel mostly from the tutorials found on http://www.herofish.com/2012/01/how-to-create-you-own-roku-videoplayer-channel/ and it's been coming together well. Now my issue is that I am trying to connect the channel to a Kit Digital Live stream (a .m3u8 stream) and I don't know how to connect the channel to that stream instead of a regular pick your video stream.
Does anyone know where I can find instructions on how to do this or documentation that could help? (I've already looked through the developer guide and forum but can't find any clues)

Look at the demo code in: http://sourceforge.net/projects/rokusdkexamples/files/customvideoplayer.zip/download shows you how to use HLS and some other cool playback features.
this.player.SetMessagePort(this.port)
this.player.SetLoop(true)
this.player.SetPositionNotificationPeriod(1)
this.player.SetDestinationRect(this.layout.left)
this.player.SetContentList([{
Stream: { url: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8" }
StreamFormat: "hls"
SwitchingStrategy: "full-adaptation"
}])
this.player.Play()

Possibly the easiest example for testing HLS streams is the simplevideoplayer example, on sourceforge or in your downloaded SDK. Simply find the "Big Buck Bunny" section, replace the url in quotes there with your .m3u8 url, add srt="" and then comment out the other examples.
' Big Buck Bunny test stream from Wowza
urls = ["http://myserver.com/mystream.m3u8"]
streamformat = "hls"
title = "Big Buck Bunny"
srt=""

Related

upload video on a Convergence Application

hi everybody i try to develop a web application that can control Smart tv like this guide http://samsungdforum.com/Guide/tut00024/index.html i work fine but now i would like to upload video from computer then it can display on the smart tv like image shown on the tutorial have any one any idea or exemple or suggestion about modification of code that can i do that can help me i would like to modify code of convergence tutorial than can sens message or send video client application to smart tv application
Sending files is covered by the tutorial. You can find API reference for this here.
Sending video file is not exactly a wise thing, because there is a 3MB limit for a file that can be sent using Convergence API. This API is designed for sending messages between TV and external client rather than files. If you want to launch video playback, send video URL from web app to the TV and let the TV download the video by itself.

How to play RTSP[live streaming] link in android?

I am trying to play RTSP live streaming url "rtsp://164.100.51.207/broadcast/DDLive".
But i am getting this error (1,-1).
I am trying this code
VideoView myVideoView = (VideoView) findViewById(R.id.videoPlayer);
myVideoView.setVideoURI(Uri.parse(url.toString()));
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
myVideoView.start();
this code giving error(1,-1).
I am unable to play this link.If anyone tell me idea to play this url.
thinks.
Roundabout suggestion -
download the rtsp stream to a local filesink using VLC which has just been compiled on android.
once the download is complete, simply play that file using the normal Intent field values for a local file and mimetype of mp4.
snip below should play what was downloaded.
new Intent(Intent.ACTION_VIEW).setDataAndType(Uri.parse("file:///mnt/sdcard/myfile.mp4"), "video/mp4");
VLC on android links:
http://forum.xda-developers.com/showthread.php?t=1517415
http://code.google.com/p/android-vlc-remote/source/browse/AndroidManifest.xml
Get an rtsp link from any youtube vide - slightly involved process
You can stream just about any youtube video as RTSP if you do the following:
Get the youtube video ID - like videoID=kgfctMNeDtg
Get the youtube feed for the videoID
Find the rtsp url for the appropriate youtube format . Formats 1,5 6 all have rtsp
request the rtsp uri with an instance of HttpClient
Details:
http://snipplr.com/view/63341/youtube-rtsp-cli-request--audio-track-only-p2/
http://snipplr.com/view/57846/curl--rtsp-to-get-sdp-descriptor-for-media-stream/
I tried playing rtsp://164.100.51.207/broadcast/DDLive on VLC but was unsuccessful in doing so, here is the error I get
Try another link that works like rtsp://217.146.95.166:554/playlist/ch12zqcif.3gp (Some indian channel)

Steps to show live HTTP streaming video with no extension on MPMovieplayercontroller?

I am trying to develop an iPhone app which will be able to show live stream video on iPhone.The link is in format 'http://192.168.111.18:8002/testlink'.
I went through all the apple documentation and have downloaded mediastreamsegmenter and also it has been installed properly as I can see its details using 'man mediastreamsegmenter' command.I couldn't understand it after that.Please guide me regarding this.
You should use a link with suffix ".m3u8", which contains the TS segments of the live video stream. When you click on the "m3u8" link, then the video player will be launched to request for those TS segments, otherwise, the browser won't know it is a live video link.
https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html

Live streaming on iPhone

I just started work on live streaming on iPhone. So any help of how to do live streming in iPhone. I think if I can add video tag in HTML5 and then load that html in UIWebView will work.
Am I right? If not what is your sugestion to do live streaming. I want to embed some news channel live streaming link in the application so from where I can find those links.
You have to go through HTTP Live streaming document provided by Apple.There are some sample live streaming URLs.The file extension will be .m3u8.If you want to configure your own webwserver , you have to configure FFMPEG server in your webserver.The links which will help you
1)Apple document
2)stackoverflow
3)stackoverflow
4)stackoverflow
If you're making a web app in html5 then the video tag is a good choice.
But, If you're developing a native app then MPMoviePlayerController would be a much better choice. There are many example of how to use it online.
iOS doesn't support RTMP or RSTP, so your stream would need to be a HTTP Live stream. From memory the codec choice is very limited too, eg if you supply H264+mp3 you won't get any sound despite iOS supporting mp3.
Also remember that streams from other people (such as the BBC) will normally be protected by international copyright law, so unless you have prior permission to use their stream in your app you may be breaking the law.
Apple has some nice resources on Http Live Streaming.

Stream video on Android

I have a video stream that I used in an iPhone application. I'm now working to port the application to Android so I want to use the same stream.
As Apple requiered, I created a HTTP Live Streaming (media segmenter, m3u8 file, etc.). You can find the stream here: http://envue.insa-lyon.fr/smartphone/aloun_stream/prog_index.m3u8 .
I want to use this same stream on Android. Did someone have the same a resembling experience?
Honeycomb/Android 3.0 has limited support for HLS. Anything before that does not have built in support, but there are supposed to be third party SDKs that will do it, but searching shows a lot of people that can't ge a hold of the third party dev.
Check the Android dev docs to find out what is not supported.
I've given up on the m3u8 stream. I just used mp4-s with android-streaming capabilities.
you have to use webscoket to continuously get TS files as Apple defines, and send to a player to decode the H.264+AAC within TS packet
Check android 4.0 - it claims to support HTTP Live Streaming 3.0 fully, including HTTPS. For older versions I've seen some people reommening it,but haven't tried myself