Last post Oct 18, 2017 12:20 PM by giovannidebona
Oct 04, 2017 06:45 PM|giovannidebona|LINK
I am creating an ASP.NET project to manage videos that will be displayed on TVs, by the browser or by Android TV.
With the tag <video> from html5 I got it, but the TV interprets it slowly .., it takes time to change videos, etc ...
What would be the best way to create this project?
How current TVBOXs play videos?
from html5 I got it, but the TV interprets it slowly .., it takes time to change videos, etc ... What would be the best way to create this project? How current TVBOXs play videos? Thank you!
Oct 09, 2017 05:27 AM|Deepak Panchal|LINK
you can try to use SignalR or Asynchronous Video Live Streaming.
<web:VideoStreaming runat="server" ID="video" ClientIDMode="Static" Width="300px" Height="300px" Interval="100" Source="True" ScalingMode="TargetSize" StreamingMode="Target" TargetClientID="received" OnStreamed="onStreamed" Style="border: solid 1px black" />
function onStreamed(imageUrl, imageWidth, imageHeight)
3: //for StreamingMode="Event", draw an image on an existing canvas
4: //the onload event is for cross-browser compatibility
5: //in this example, we are using the canvas width and height
6: var canvas = document.getElementById('received');
7: var ctx = canvas.getContext('2d');
8: var img = new Image();
9: img.src = imageUrl;
10: img.onload = function()
12: ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
1: <canvas id="received" width="300" height="300" style="border: solid 1px black"></canvas>
for complete example , please refer link below.
Video Streaming with ASP.NET SignalR and HTML5
below is an another example using MVC and WebApi may help you to get an idea.
Asynchronous Video Live Streaming with ASP.NET Web APIs 2.0
I suggest you to make testing with multiple different Android TVs to know the performance of the TV. it is possible that your website works slow on any particular TV.
many browsers are available for Android TV. so you can try to make a test them all and try to suggest your user the bowser which works best for your website.
Oct 18, 2017 12:20 PM|giovannidebona|LINK
thanks for the answer!! I will return soon.