在Roku中播放MultipleAudioTrack [英] Play MultipleAudioTrack in Roku

查看:312
本文介绍了在Roku中播放MultipleAudioTrack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Roku一次不支持多个视频.但是,某些开发人员将两种内容混合在一起,即多个播放和多个音轨. Roku是否支持多个音轨?

I know about Roku doesn't support multiple videos at a time. But, Some Developers are mix up two things multiple playbacks and multiple audio tracks. Roku Does Support Multiple Audio Track?

我试图在Roku中播放MultipleAudioTrack.我使用以下代码在此处找到多个音频轨道?"m.video.availableAudioTracks :"m.video.availableAudioTracks,但此处没有任何轨道.我的流签入VLC MediaPlayer.这里有两轨.但是,我在Roku中找不到.我的音频格式是AAC.我也在这里设置m.video.audioFormat = "aac".播放多个音频所需的任何其他配置.

I tried to Play MultipleAudioTrack in Roku. I used the below code to find a multiple audio track Here ?"m.video.availableAudioTracks :"m.video.availableAudioTracks but here not available any track. my stream check-in VLC MediaPlayer. Here two-track available. But, I not found in Roku. My Audio Format is AAC. I also Set Here m.video.audioFormat = "aac". Any other Configuration required to Playing a multiple Audio.

我的m3u8文件在下面.

My m3u8 file is below.

#EXTM3U
#EXT-X-TARGETDURATION:9
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-VERSION:3
#EXTINF:8,
RokuMedia00000001.ts
#EXTINF:8,
RokuMedia00000002.ts
#EXTINF:8,
RokuMedia00000003.ts

m3u8文件是否需要任何配置.

Is there any configuration required for the m3u8 file.

我阅读了HLS.文档.但是,我对HLS Stream还是有一些疑问.我使用了Roku Premiere plus设备.

I read the HLS Documentation which is provided by Roku. But, I have still some doubts regarding HLS Stream. I used the Roku Premiere plus device. 

对于CC,我使用下面的代码启用隐藏式字幕"选项.

For CC, I enable Closed Captions options using coding it's below.

m.videoContent.streamformat = "hls"
m.videoContent.subtitleTracks = [{ language: "EN", description: "EN", trackName: "eia608/1" }]
m.videoContent.subtitleConfig = { trackName: "eia608/1" }

在M3u8文件内容中不可用.它在我的ts文件中可用.我在上面提到了我的M3u8内容.

It's not available in M3u8 file content. It's available on my ts File. I mention my M3u8 Content in the above.

以同样的方式,我尝试使用编码启用多音轨.

Same way, I tried to enable Multiple Audio Track using Coding.

我使用跟随字段"来获取多个音轨.

I used Following Field For fetching a multiple Audio Track.

?"m.video.availableAudioTracks :"m.video.availableAudioTracks
m.video.audioFormat = "aac"

我指的是

I refer to this example of playing a Multiple Audio Track.

我使用aac音频格式在Roku视频播放器中播放音频.

I used the aac audio format for playing audio in the Roku video player.

我在其他视频播放器(VLC,IOS内置播放器,EXO播放器)中检查了相同的M3u8文件,它会自动显示两个音轨.

I check the same M3u8 File in other Video Player(VLC, IOS inbuilt player, EXO Player) It takes automatically shows two audio track. 

我不确定.但是,我认为Roku Video Player Compalsary在M3u8文件中需要多个音轨.像下面一样.正确吗?

I'm not sure. But, I think Roku Video player Compalsary required multiple Audio tracks in M3u8 File. Like below. Is it Correct?

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",LANGUAGE="en",AUTOSELECT=YES,\
DEFAULT=YES,URI="RokuMedia00000001.ts"

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Spanish",LANGUAGE="es-ES",AUTOSELECT=NO,\
DEFAULT=NO,URI="RokuMedia00000001.ts"

但是,这里可以将EXT-X-MEDIA标签放两次吗?

But, Here It possible to Put the EXT-X-MEDIA tag in Two Times?

或者我不知道我要添加哪个特定字段.

or I don't know which specific field will add I required.

我在Roku知识中心文章中找到了一篇文章不Roku支援多个音轨

但是,我不需要同时启用多个音轨.或也不需要同时玩.我一次只需要一个音轨.因为,我知道任何媒体播放器都不同时支持多个音频轨道和视频轨道.

But, I'm not required to enable multiple audio tracks at the same time. or also not required to playing simultaneously. I required to at a time only a single audio track. Because, I know any media player not support multiple audio track and video track the same time.

我需要在运行时更改音轨.如果我的默认曲目为英语并使用此选项,则将其更改为西班牙语"或其他任何语言.

我的实际问题是Roku提供的如何启用音频轨道选项以及m3u8文件中需要哪些字段.启用这些选项.还是Roku已停止支持音轨选项?

My Actual question is a how-to enable audio track option which provide by Roku and which fields are required in m3u8 files. To enable these options. or Roku has stopped supporting audiotrack options?

推荐答案

我不确定音频文件,但我知道

I'm not certain about Audio files, but I know that Rokus don't allow you to buffer more than one Video at a time. This effectively means that a Roku cannot play more than one Video at a time.

音频文件也可能如此,但我不确定.

The same could be true for audio files but I am not certain.

这篇关于在Roku中播放MultipleAudioTrack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆