I’m developing a tvml app that has live tv, news and on-demand programs.
Wondering how can I add that to the tv app. I have been looking around but I didn’t seem to find anything...
In tvOS, there is a TV app, with suggestions on shows to watch, Trendings, and sports. Some of those channels like news, and sports, have live content. I am trying to add my live content to the Apple TV app, and not sure what to do.
Btw, I did find the guild for Android TV,
https://developer.android.com/training/tv/tif/
AppleTV uses Apple's HTTP Live Stream (HLS).
You should create a server that serves the live stream in .m3u8 with type EVENT
And then in your AppleTV app
// create a player
const player = new Player();
// create a playlist
player.playlist = new Playlist();
// create video mediaItem
var video = new MediaItem('video', "https://myserver.example.com/video/live.m3u8");
// add it to the playlist
player.playlist.push(video);
// hit play
player.play();
Related
I am newly working with DotNetBrowser. wanted to record video using the webcam. is there any way to do that using Dotnetbrwser?
IMediaDevices mediaDevices = engine.MediaDevices;
IEnumerable<MediaDevice> videoDevices = mediaDevices.VideoCaptureDevices;
IEnumerable<MediaDevice> audioDevices = mediaDevices.AudioCaptureDevices;
browser = engine.CreateBrowser ();
In fact, DotNetBrowser does not perform video capturing directly. However, you can consider creating a web page that uses WebRTC MediaStream Recording API and displaying it in DotNetBrowser.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API
Here is an example of the web page that captures the video from the web camera:
https://webrtc.github.io/samples/src/content/getusermedia/record/
https://github.com/webrtc/samples/tree/gh-pages/src/content/getusermedia/record
In case of any further questions, feel free to contact us at customer-care#teamdev.com.
i want a flash player for shoutcast servers. if shoutcast's content type is mpeg, codes is working. But if shoutcast's content type is aacp, codes not working.
Codes;
var channel:SoundChannel;
var sound:Sound = new Sound();
sound.load(new URLRequest("http://yonradyo.radyolarburada.com:8020/;"));
channel = sound.play();
What should I do? Thanks.
The Project Thunder Snow (https://code.google.com/p/project-thunder-snow/) is not so fresh, but still working solution for playing aac/aacp streams on PC (but not on mobile platform).
The page https://code.google.com/p/project-thunder-snow/wiki/NBaccPlayer contains a code example simple enough.
Developing tools : Visual Studio 2012, target wp platform : wp8.
I am facing the above problem:
When my application is running on background and i am receiving a notification i vibrate the phone successful and i want to play a specific sound.
What i have tried so far:
Player = new MediaElement();
Player.AutoPlay = true;
Player.Volume = 5;
Player.Source = new Uri("/data/alert.mp3", UriKind.RelativeOrAbsolute);
Player.MediaOpened += (Object s, RoutedEventArgs args) =>
{
Player.Play();
};
I i am not getting any exception but no sound. Neither on foreground nor background .
Am i missing something?
I will appreciate any help.
You can't use the MediaElement API to play notification sounds when the app is in background. In order to launch a notification and play a custom sound, you need to use the ShellToast and use the Sound property via reflection.
Here is how play a custom notification sound from background (MSDN link) Using custom sounds in toasts on Windows Phone 8 Update 3
EDIT: When the app is running in foreground, you can use the same technique (ShellToast with Sound).
Even MediaPlayer class can help you play songs and media in the background when you are showing a toast or a small pop up dialog.
Check here : http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.mediaplayer.play.aspx
I am implementing one live audio video web app using flex sdk. I have successfully created a feature, where user can start a live sharing of web cam with others. But i want to add a feature where user can change live streaming to record a video in between a live sharing. Below is a code that i am using in live streaming.
var room_service:RoomService = RoomService.getInstance();
var publishStream:NetStream = room_service.startStream();
_publishStream = publishStream;
if(_camera)
{
_camera.setQuality(0, 80);
_camera.setMode(120, 90, 30);
publishStream.attachCamera(_camera);
}
if(_microphone)
{
publishStream.attachAudio(_microphone);
}
publishStream.publish(room_service.loggedInUser.broadcastID, "live");
is there any way i can change the last line "live" perameter to "record" while the stream being publish.
I want to write a Windows Store App that can capture video (without any sound) and take pictures. Imagine a digital camera: you can preview the picture on the screen of your device before pushing the button which takes the pic.
The problem I'm facing now is the fact that the Windows.Media.Capture namespace has only classes for objects that capture video with sound (CameraCaptureUI, MediaCapture). I'm not troubled by the objects' capabilities, but by the fact that I will have to include in the manifest of the app the Microphone capability and it does not make sense for the app to use it. I need a class that uses only the Webcam capability.
Any ideas?
I found the answer and I thought I should share it. I'm sorry for answering my own question, but here goes:
One can specify in the settings of the MediaCapture object, when initializing it, that it will use only the Video part:
var mediaCaptureMgr = new MediaCapture();
var captureSettings = new MediaCaptureInitializationSettings();
captureSettings.StreamingCaptureMode = StreamingCaptureMode.Video;
await mediaCaptureMgr.InitializeAsync(captureSettings);
RTFM!