Project

General

Profile

Some player on website

Added by Michael Kacprzak over 9 years ago

Hello

I'm there new but I need some more professional solution for my problem.
I'm making at my university interial TV for students living in dorms and I want to show TV channels on internal website - but I have problem with webplayer. For now TV uses VLC webplugin for webbrowsers but there're many problems with first connection. On linux I have to stop and resume signal to connect to TV stream and on windows there're need to refresh page to watch channel, this is very annoying.

Maybe there is some solution with that problem? The VLC webplugin is only webplayer which allows to watch TV from TVheadend or maybe something else?


Replies (13)

RE: Some player on website - Added by saen acro over 9 years ago

use some alternative web player
http://www.jwplayer.com/ free with logo
http://www.sublimevideo.net free to use
http://flowplayer.org/ also free version

next is html typing ;)

RE: Some player on website - Added by Michael Kacprzak over 9 years ago

OK, thanks. But could you tell me how to use that players?
I was trying with jwplayer but it doesn't work, it gave me:

Error loading player:
No playable sources found

And code is:

<html>
<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>
<body>

Loading the player...

<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://x.x.x.x:9981/stream/service/_dev_dvb_adapter0_ITE_9135_9006__Generic_1770000000_0035",
});
</script>
</body>
</html>

RE: Some player on website - Added by Christian Brauwers over 9 years ago

Hi,
i solved it this way :

Just add this to the URL

?fake=/play.mp4

So your Source URL looks like:
http://x.x.x.x:9981/stream/service/_dev_dvb_adapter0_ITE_9135_9006__Generic_1770000000_0035?fake=/play.mp4

it works

RE: Some player on website - Added by Michael Kacprzak over 9 years ago

Nothing - the same problem :/

<html>
    <head>
        <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
        <script type="text/javascript">jwplayer.key="MY_CODE";</script>
    </head>
    <body>
    <div id="myElement">Loading the player...</div>

    <script type="text/javascript">
    jwplayer("myElement").setup({
        file: "http://x.x.x.x:9981/stream/service/_dev_dvb_adapter0_ITE_9135_9006__Generic_1770000000_001b?fake=/play.mp4",
        image: "/uploads/myPoster.jpg" 
    });
</script>
    </body>
</html>

Tell me, what's wrong? Maybe problem is with tvheadend server, because when I'm trying to open stream even via VLC it's loading enormous long time :/

RE: Some player on website - Added by saen acro over 9 years ago

https://github.com/mablae/tvheadendWebplayer
this project looks good, but looks as abandoned

RE: Some player on website - Added by Hanspeter Müller over 9 years ago

Michael Kacprzak wrote:

Nothing - the same problem :/

[...]

Tell me, what's wrong? Maybe problem is with tvheadend server, because when I'm trying to open stream even via VLC it's loading enormous long time :/

You're subscribing the entire mux instead of the channel, i doubt jwplayer can handle that. If your browsers are from this decade, simply use html5-video:

<html>
        <head>
                <title>
                        Video
                </title>
        </head>
        <body>
                <video width="356" height="200" controls poster="channelicon.png"  >
                <source src="http://tvheadendserver:9981/stream/channel/*******?profile=webtv-vp8-vorbis-webm" type="video/webm" />
                <em>Sorry, your browser doesn't support HTML5 video.</em>
                </video>
        </body>
</html>

insert the uuid from the channel (you can see it under configuration -> Channel/EPG -> Play-Button) instead of *, done :)

/hp

RE: Some player on website - Added by saen acro over 9 years ago

Hanspeter Müller

big minus of this is manual compilation of TVH to have profile=webtv-vp8-vorbis-webm

RE: Some player on website - Added by Hanspeter Müller over 9 years ago

saen acro wrote:

Hanspeter Müller

big minus of this is manual compilation of TVH to have profile=webtv-vp8-vorbis-webm

you mean because the prebuild binarys don't support transcoding? I doubt you will be able to find an embedded player that can handle raw mpegts streams with mpeg2, so eighter they have to be transcoded or you'll need a browserplugin like vlc, and in this case you don't need an embedded player...

RE: Some player on website - Added by saen acro over 9 years ago

local tv is mpeg4 with aac sound ;)

Vlc is verry non working

RE: Some player on website - Added by Hanspeter Müller over 9 years ago

saen acro wrote:

local tv is mpeg4 with aac sound ;)

Ah, that fact was missing ;). Try selecting "pass" instead of matroska in the windows, maybe avconv/ffmpeg is needed to convert to mkv...

RE: Some player on website - Added by saen acro over 9 years ago

All /Pass, Matroshka, HTSP/ have same result not working,
tested on Windows, Linux and Android.

RE: Some player on website - Added by Christian Brauwers over 9 years ago

i think this is a Plugin Problem ... not a TVH Problem itself

RE: Some player on website - Added by saen acro over 9 years ago

This is reason to write here for some independent from VLC player

    (1-13/13)