Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hdhomerun support? #167

Open
tim1001011 opened this issue Feb 3, 2024 · 0 comments
Open

Hdhomerun support? #167

tim1001011 opened this issue Feb 3, 2024 · 0 comments

Comments

@tim1001011
Copy link

tim1001011 commented Feb 3, 2024

I have a HDHomeRun FLEX QUATRO.
https://info.hdhomerun.com/info/http_api
https://info.hdhomerun.com/info/flex

I'd like to be able to use a Media Source Extension to be able to play the streams (HD/SD).
Currently it loads the streams (network tab), but nothing is displayed.

Maybe you have an idea if there are any options I can set to be able to get the video streams displayed?

The streams are similar to:
hd.txt
hd-ffmpeg.txt
hd-psi.txt
sd.txt
sd-ffmpeg.txt
sd-psi.txt

I currently get the following output

[MSEController] > MediaSource onSourceOpen
es6-promise.js:1 [TSDemuxer] > Parsed first PAT: {"program_pmt_pid":{"10301":5100},"version_number":0}
es6-promise.js:1 [TSDemuxer] > Parsed first PMT: {"pid_stream_type":{"1170":5,"1176":12,"2171":11,"2172":11,"5101":27,"5102":6,"5103":6,"5104":6,"5105":6,"5107":6},"common_pids":{"h264":5101},"pes_private_data_pids":{"5102":true,"5103":true,"5104":true,"5105":true,"5107":true},"timed_id3_pids":{},"scte_35_pids":{},"smpte2038_pids":{},"program_number":10301,"version_number":4}
es6-promise.js:1 [TSDemuxer] > Generated first AVCDecoderConfigurationRecord for mimeType: avc1.640028
mpegts.js:95 [MSEController] > Received Initialization Segment, mimeType: video/mp4;codecs=avc1.640028

The stream is loaded indefinitely (network tab), but it is not shown in the

Simple code:

    url = 'http://192.168.188.5:5004/auto/v1';
    var videoElement = document.getElementById('videoElement');
    if (mpegts.getFeatureList().mseLivePlayback) {
        mpegts.LoggingControl.enableDebug = true;
        mpegts.LoggingControl.enableVerbose = true;
        var player = mpegts.createPlayer({
            type: 'mse',
            isLive: true,
            url: url
        });
        player.attachMediaElement(videoElement);
        player.load();
        player.play();
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant