示例#1
0
文件: player.go 项目: jteeuwen/go-vlc
// SetTeletext sets a new teletext page to retrieve.
func (this *Player) SetTeletext(page int) error {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_video_set_teletext(this.ptr, C.int(page))
	return checkError()
}
示例#2
0
文件: player.go 项目: henrym/go-vlc
// SetTeletext sets a new teletext page to retrieve.
func (this *Player) SetTeletext(page int) error {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_video_set_teletext(this.ptr, C.int(page))
	return checkError()
}