Skip to content

直播流媒体复制串流地址的时候需要修改getEmbyMediaInfo函数 #528

@shw1395

Description

@shw1395
        //if (mediaSource.Path.startsWith("http") && localStorage.getItem(lsKeys.strmDirect) === "1") {
            //streamUrl = decodeURIComponent(mediaSource.Path);
if (**mediaSource && mediaSource.Path &&** mediaSource.Path.startsWith("http") && localStorage.getItem(lsKeys.strmDirect) === "1") {
    streamUrl = decodeURIComponent(mediaSource.Path);
        } else {
            let fileName = mediaSource.IsInfiniteStream ? **`live**.m3u8` : decodeURIComponent(mediaSource.Path.replace(fileNameReg, ""));

直播地址需要PlaySessionId才能播放。需要修改system\dashboard-ui\modules\common\playback\playbackmanager.js,要么你点击播放后再复制地址,所以还是很麻烦的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions