Easy tv tvmlkiterrordomain ошибка 3

That error indicates that your application js file failed to load. I beleive that you might still be using localhost path in your swift code, which will work fine in simulator, as both simulator and the localhost is running on the same machine. However, when you deploy the app to the Apple TV device, it will never be able to find localhost.

You simply need to host your entire client app somewhere in the cloud and then give the path of the hosted files. An other alternative would be to connect both your Apple TV and your machine to the same network and host your client app publicly in the local network. You can then provide your machine IP address as the path. On mac you have pre-installed apache so you can do something like below to host it within your local network.

// start your apache server from the terminal

sudo apachectl start

// then check whether you are able to access your webserver

// go to browser and type your ip address (you can check your ip in the network settings in System Preferences)

// by default you should see a page with content «It Works!»

Your files are by default available at this location, /Library/WebServer/Documents and you can put all your client code in this place. Then test the paths in your browser by hitting your IP address and the relative paths. If all works well, specify the same path in your Apple TV native code and deploy it to the actual device and test (make sure that both your device and your machine are connected to the same network).

That error indicates that your application js file failed to load. I beleive that you might still be using localhost path in your swift code, which will work fine in simulator, as both simulator and the localhost is running on the same machine. However, when you deploy the app to the Apple TV device, it will never be able to find localhost.

You simply need to host your entire client app somewhere in the cloud and then give the path of the hosted files. An other alternative would be to connect both your Apple TV and your machine to the same network and host your client app publicly in the local network. You can then provide your machine IP address as the path. On mac you have pre-installed apache so you can do something like below to host it within your local network.

// start your apache server from the terminal

sudo apachectl start

// then check whether you are able to access your webserver

// go to browser and type your ip address (you can check your ip in the network settings in System Preferences)

// by default you should see a page with content «It Works!»

Your files are by default available at this location, /Library/WebServer/Documents and you can put all your client code in this place. Then test the paths in your browser by hitting your IP address and the relative paths. If all works well, specify the same path in your Apple TV native code and deploy it to the actual device and test (make sure that both your device and your machine are connected to the same network).

Содержание

  1. (tvOS). Известные проблемы и решения
  2. tvmlkiterrordomain error 3
  3. Ошибки воспроизведения на большом количестве фильмов
  4. Черные квадраты
  5. Тестирование этой версии программы завершено
  6. Tvmlkiterrordomain error 3 что это
  7. TVMLKitErrorDomain error 3
  8. Accepted Reply
  9. Replies

(tvOS). Известные проблемы и решения

tvmlkiterrordomain error 3

Ошибки воспроизведения на большом количестве фильмов

Проверьте, что на сайте в разделе «Мои устройства» для приставки активированы все галки (для Apple TV 4K) или стоит галка «Поддержка 4К» и не стоит галка «поддержка HEVC» (для Apple TV 4)

Расположение раздела «Мои устройства» Правильные настройки для работы 4К HDR (Apple TV 4K) Правильные настройки для работы 4К SDR (Apple TV 4)

Со стороны устройства требуются следующие настройки. В разделе «аудио и видео» выставить формат 4к SDR, выход HDMI YCbCr, цветность 4:2:0 и включить оба вида согласования.

Черные квадраты

К сожалению, вариантом является только играться настройками приставки и телевизора.

На телике отключаем все улучшатели и уплавнятели.

На приставке 4к SDR YCbCr 4:2:0 и оба согласования вкл.

Настраиваем дополнительно свой тв по данным с сайта https://www.rtings.com/tv/reviews

Тестирование этой версии программы завершено

Необходимо зайти в приложение TestFlight, открыть там карточку приложения cncrt/ViewPlay/TRLX и нажать кнопку Update. Процедуру надо повторять раз в 90 дней.

Источник

Краткое описание:
Просмотр сериалов и фильмов.

Описание:
Приложения позволяет смотреть сериалы, фильмы, мультфильмы и т. д. с сайта kino.pub по подписке (от 117 руб./мес.). Есть возможность выбора оригинальной звуковой дорожки или множества российских студий озвучивания. Есть русские и английские субтитры. Есть некоторые видео в 4K. Но большинство в формате FullHD.

На kino.pub можно найти часть фильмов, которые еще не попали в официальный прокат в интернете. По решению Московского городского суда ресурс внесен в реестр запрещенных в России ресурсов, который ведет Роскомнадзор. Причина блокировки может быть разной, но чаще всего ей является жалоба правообладателя. В ближайшее время все российские провайдеры должны обеспечить блокировку ресурса для своих клиентов, но для некоторых пользователей сайт возможно будет какое-то время доступен. Точное число пользователей kino.pub неизвестно, домен зарегистрирован на частное лицо, проживающее в США.

Русский интерфейс: Да
Требуется Android: 5.0+

Разработчик: kinopub
Домашняя страница: https://kino.pub
Имя пакета: com.kinopub

На территории РФ работает только через VPN

1.26
04.05.2021
добавлено: поддержка некоторых устройств (Samsung TAB A7, Lenovo Tablet) которые нормально работали только на версии 1.15добавлено: опция ‘маленький буфер’, можно включаеть для слабых и старых устройств, включено автоматом для некоторых устройств (kivi, xgimi и версий андроида Скачать:
Версия: 1.28 Kinopub v1.28 (DTS)
Версия: 1.26 Kinopub_v1.26(5.0+).apk ( 6.43 МБ )

Версия: 1.15 (4.1+) Kinopub_v1.15(4.1+).apk ( 3.94 МБ )

версия: 1.24
Kinopub_v1.24(5.0+).apk ( 5.12 МБ )

версия: 1.15
Kinopub_v1.15(4.1+).apk ( 3.94 МБ )

версия: 0.93
Kinopub_v0.93(4.1+).apk ( 2.62 МБ )

версия: 0.85 kp-0.85.apk ( 2.59 МБ )

Сообщение отредактировал Chudmin — 15.03.22, 14:49

Источник

TVMLKitErrorDomain error 3

Can anyone tell me what this error means and how I fix it? I have an app running on the simulator just fine with the recommended local host of 9001, but when I try to push the app to my Apple TV, it starts up and I get the message:

Any help with this would be greatly appreciated. I cannot figure out why it works great on the simulator but not on the device!

Accepted Reply

TVMLKitErrors.h is your friend 😉

In this case, the TVApplicationController failed to launch because it wasn’t able to fetch your application JavaScript, evaluate it and start the TVMLKit based application.

I encountered the same error when there was no connection to my remote javascript files host, your tv device is not the same localhost as your simulator localhost, you should access the js files host by ip and make sure they both on the same network

That error indicates that your application js file failed to load. I beleive that you might still be using localhost path in your swift code, which will work fine in simulator, as both simulator and the localhost is running on the same machine. However, when you deploy the app to the Apple TV device, it will never be able to find localhost.

You simply need to host your entire client app somewhere in the cloud and then give the path of the hosted files. An other alternative would be to connect both your Apple TV and your machine to the same network and host your client app publicly in the local network. You can then provide your machine IP address as the path. On mac you have pre-installed apache so you can do something like below to host it within your local network.

// start your apache server from the terminal

sudo apachectl start

// then check whether you are able to access your webserver

// go to browser and type your ip address (you can check your ip in the network settings in System Preferences)

// by default you should see a page with content «It Works!»

Your files are by default available at this location, /Library/WebServer/Documents and you can put all your client code in this place. Then test the paths in your browser by hitting your IP address and the relative paths. If all works well, specify the same path in your Apple TV native code and deploy it to the actual device and test (make sure that both your device and your machine are connected to the same network).

Источник

I have a TVML app working quite nicely now in the simulator. I’ve started with a menuBar template, and have used a stackTemplate as well as productTemplate. Everything is working just dandy in the simulator. However, when I hook my Apple TV up and try to run it on there, the application loads, but then I get the following error:

TVMLKitErrorDomain error 3

I have been trying to find out what this is for a few days , but I have not found any information pertaining to the error code. The simulator version is running on the localhost 9001 like Apple recommends and that is flawless. I just can’t get the app to run properly on the device though. Does anyone know what that error is, and how I can fix it? As always I appreciate your help!

asked Jan 28, 2016 at 1:01

user1516264's user avatar

You need to run this command from the same directory as your TVMLKit JS file:

python -m SimpleHTTPServer 9001
.

Krzysztof Bracha's user avatar

answered Jul 1, 2017 at 10:20

Raman Bhasker's user avatar

1

I had same error in my TV app. Solved by editing Info.plist. This error indicates that URL user trying to visit is not reachable.

You need to allow http:// from Info.plist for your app.

enter image description here

answered Nov 30, 2016 at 11:48

sschunara's user avatar

sschunarasschunara

2,27524 silver badges31 bronze badges

If you are running on device, you should change this line from localhost to your IP address:

static let TVBaseURL = "http://localhost:9001/"

to

static let TVBaseURL = "http://MY.IP.ADDRESS.HERE:9001/"

answered Jan 28, 2016 at 20:50

shirefriendship's user avatar

Just open a new terminal at your app folder and run the following command before running the simulator:

ruby -run -ehttpd . -p9001

answered Jul 1, 2019 at 1:24

Subhan's user avatar

SubhanSubhan

1,4543 gold badges21 silver badges57 bronze badges

I have a TVML app working quite nicely now in the simulator. I’ve started with a menuBar template, and have used a stackTemplate as well as productTemplate. Everything is working just dandy in the simulator. However, when I hook my Apple TV up and try to run it on there, the application loads, but then I get the following error:

TVMLKitErrorDomain error 3

I have been trying to find out what this is for a few days , but I have not found any information pertaining to the error code. The simulator version is running on the localhost 9001 like Apple recommends and that is flawless. I just can’t get the app to run properly on the device though. Does anyone know what that error is, and how I can fix it? As always I appreciate your help!

asked Jan 28, 2016 at 1:01

user1516264's user avatar

You need to run this command from the same directory as your TVMLKit JS file:

python -m SimpleHTTPServer 9001
.

Krzysztof Bracha's user avatar

answered Jul 1, 2017 at 10:20

Raman Bhasker's user avatar

1

I had same error in my TV app. Solved by editing Info.plist. This error indicates that URL user trying to visit is not reachable.

You need to allow http:// from Info.plist for your app.

enter image description here

answered Nov 30, 2016 at 11:48

sschunara's user avatar

sschunarasschunara

2,27524 silver badges31 bronze badges

If you are running on device, you should change this line from localhost to your IP address:

static let TVBaseURL = "http://localhost:9001/"

to

static let TVBaseURL = "http://MY.IP.ADDRESS.HERE:9001/"

answered Jan 28, 2016 at 20:50

shirefriendship's user avatar

Just open a new terminal at your app folder and run the following command before running the simulator:

ruby -run -ehttpd . -p9001

answered Jul 1, 2019 at 1:24

Subhan's user avatar

SubhanSubhan

1,4543 gold badges21 silver badges57 bronze badges

(tvOS). Известные проблемы и решения

tvmlkiterrordomain error 3

Ошибка tvmlkiterrordomain error 3
  1. Отключите приставку на 15 минут (не менее).
  2. Перезагрузите роутер.
  3. Если не помогло — проверьте интернет-соединение.

Ошибки воспроизведения на большом количестве фильмов

Проверьте, что на сайте в разделе «Мои устройства» для приставки активированы все галки (для Apple TV 4K) или стоит галка «Поддержка 4К» и не стоит галка «поддержка HEVC» (для Apple TV 4)

Расположение раздела «Мои устройства»
Правильные настройки для работы 4К HDR (Apple TV 4K)
Правильные настройки для работы 4К SDR (Apple TV 4)

Со стороны устройства требуются следующие настройки. В разделе «аудио и видео» выставить формат 4к SDR, выход HDMI YCbCr, цветность 4:2:0 и включить оба вида согласования.

Черные квадраты

К сожалению, вариантом является только играться настройками приставки и телевизора.

На телике отключаем все улучшатели и уплавнятели. 

На приставке 4к SDR YCbCr 4:2:0 и оба согласования вкл. 

Настраиваем дополнительно свой тв по данным с сайта https://www.rtings.com/tv/reviews

Тестирование этой версии программы завершено

Необходимо зайти в приложение TestFlight, открыть там карточку приложения cncrt/ViewPlay/TRLX и нажать кнопку Update. Процедуру надо повторять раз в 90 дней.

У меня есть приложение TVML, которое теперь работает в симуляторе довольно хорошо. Я начал с шаблона menuBar и использовал stackTemplate, а также productTemplate. В симуляторе все работает просто денди. Однако, когда я подключаю свой Apple TV и пытаюсь запустить его там, приложение загружается, но затем я получаю следующую ошибку:

TVMLKitErrorDomain error 3

Я пытался выяснить, что это за несколько дней, но я не нашел никакой информации, относящейся к коду ошибки. Версия симулятора работает на локальном хосте 9001, как рекомендует Apple, и это безупречно. Я просто не могу заставить приложение работать должным образом на устройстве. Кто-нибудь знает, что это за ошибка, и как я могу ее исправить? Как всегда, я ценю вашу помощь!

4 ответа

Вам нужно запустить эту команду из того же каталога, что и ваш JS-файл TVMLKit:

python -m SimpleHTTPServer 9001 .


7

Krzysztof Bracha
1 Июл 2017 в 16:16

У меня была такая же ошибка в моем телевизионном приложении. Решено путем редактирования Info.plist. Эта ошибка указывает на то, что пользователь URL, пытающийся перейти, недоступен.

Вам необходимо разрешить http:// из Info.plist для вашего приложения.

enter image description here


5

sschunara
1 Дек 2016 в 07:29

Если вы работаете на устройстве, вы должны изменить эту строку с localhost на свой IP-адрес:

static let TVBaseURL = "http://localhost:9001/"

К

static let TVBaseURL = "http://MY.IP.ADDRESS.HERE:9001/"


1

shirefriendship
28 Янв 2016 в 23:50

Просто откройте новый терминал в папке вашего приложения и выполните следующую команду перед запуском симулятора:

ruby -run -ehttpd . -p9001


1

Subhan
1 Июл 2019 в 04:24

Описание:

Я создал новый проект TVML и запустил его. Первой ошибкой была безопасность транспорта приложений, которую я установил с помощью Info.plist:

App Transport Security Settings -> Allow Arbitrary Loads -> YES

Затем я снова запустил его, и я получаю эту ошибку:

Не удалось загрузить URL запуска с ошибкой: (null) appController (_: didFailWithError:) вызывается с ошибкой: Ошибка Domain = TVMLKitErrorDomain Code = 3 «(null)»

Проект, кажется, останавливается здесь (application func in AppDelegate.swift):

   appControllerContext.launchOptions["BASEURL"] = AppDelegate.tvBaseURL
   print(launchOptions) //returns nil
   //error on following line
   if let launchOptions = launchOptions as? [String: AnyObject] {
        //does not enter here
        for (kind, value) in launchOptions {
            appControllerContext.launchOptions[kind] = value
        }
    }

Что я пробовал:

Я попытался сменить tvBaseURL на » http://localhost:9001/» на http://MY-IP-ADDRESS-HERE:9001/

но это ничего не изменило.

Вопрос:

Что вызывает эту ошибку и как ее решить?

19 авг. 2016, в 12:26

Поделиться

Источник

3 ответа

Вы должны запустить сервер с номером порта

введите следующую команду в терминале

ruby -run -ehttpd . -p9001

И, наконец, ваш tvBaseURL должен перейти в папку сервера, как это

"http://yourLocalhost:9001/Downloads/TVMLCatalogUsingTVMLTemplates/Server/"

Naveen Paulsingh
29 нояб. 2018, в 11:04

Поделиться

Я только столкнулся с этой проблемой. Вы должны обратить пристальное внимание на вывод терминала.

Я получил:

[2019-03-15 12:28:43] INFO  WEBrick 1.3.1
[2019-03-15 12:28:43] INFO  ruby 2.3.7 (2018-03-28) [universal.x86_64-darwin17]
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/socket.rb:205:
in 'bind': Address already in use - bind(2) for 0.0.0.0:9001 (Errno::EADDRINUSE)

Адрес уже используется — bind (2) для 0.0.0.0:9001

В этот момент вам нужно либо выбрать другой номер порта (если вы решите сделать это, то убедиться, что ваш порт сервера и порт вашего проекта XCode совпадают), либо убить предыдущий сервер, ctrl + c или просто убить окно терминала.

Также обратите внимание, что в некоторых проектах Apple используется ruby -run -ehttpd. -p9001 ruby -run -ehttpd. -p9001 должна быть выполнена в папке с именем Server, а для других она просто должна быть выполнена в главной папке приложения. Просто посмотрите в файл README, чтобы понять это.

Honey
15 март 2019, в 16:12

Поделиться

Я также столкнулся с той же проблемой, я решил ее, изменив tvBaseURL в AppDelegate

static let tvBaseURL = "http://127.0.0.1:9001/Downloads/TVMLCatalogUsingTVMLTemplates/Server/"

Как вы видите — я должен показать точный путь к папке сервера. Это также работает, если вы поместите его на какой-либо веб-сервер.

Надеюсь, что это поможет!

moonvader
07 окт. 2017, в 12:36

Поделиться

Ещё вопросы

  • 1Как я могу определить массив с длиной и значением некоторых элементов в Java?
  • 0Вставка массива в C ++
  • 0Как удалить содержимое элементов в строке, оставив только внешние теги элементов?
  • 0Скрытие родительского div на клике
  • 0Несколько отзывов обратной связи?
  • 1связанный список, добавляющий элемент в конец списка
  • 1Сравните два arraylist разных типов
  • 0jquery поиск и замена текста из n-го вхождения
  • 1java.net.SocketException: операция не разрешена
  • 1Android-виджет, не кликабельный
  • 0Обновление источника данных Icenium Kendo UI не вызывается
  • 0PHP — Невозможно создать файл
  • 1Странное добавление в конце файла .txt после fout.write () — Python
  • 0jQuery: добавление данных в упорядоченный список
  • 0РАЗДЕЛИТЬ КОЛОННЫ В БИНАРНУЮ МАТРИЦУ
  • 1Привязка имени перечисления к DataTextField
  • 0Программа доставки с использованием структуры C
  • 0почему демонстрационный код в книге выдает ошибки «неопределенный индекс»
  • 0Время ожидания истекло, ошибка намного раньше, чем прошло максимальное время ожидания
  • 0Повторите порядок по данным php json_encode
  • 1Google maps LatLng не число
  • 1Автоматизированное git pull при загрузке системы на Raspberry Pi
  • 0Плагин jQuery Validation, включите флажок, когда поле действительно
  • 0Используйте глобальную переменную
  • 1ошибка при создании примера xamdatatree
  • 0Выбор даты не работает при изменении индекса выпадающего списка
  • 0Обмен синтаксиса AngularJS вызывает ошибку
  • 0Получите данные json из http-запроса angularjs благодаря сервлету
  • 1Выравнивание текста построчно в Android Text-View с использованием гравитации
  • 1Уничтожение апплета через JavaScript
  • 0LibCurl HTML в строку
  • 0ион-освежитель — не показывает счетчик
  • 1как синхронизировать данные фильтра с помощью Microsoft Sync Framework
  • 0Как обмениваться данными между двумя скриптами Lua
  • 0Этот скрипт загрузки защищен паролем?
  • 0Выполните расчет по изменению элемента управления выпадающего списка asp.net
  • 0проверить пустые или не значения в столбцах в R
  • 0Изменение размера divs ширина и высота в браузере изменить размер с помощью CSS
  • 0Невозможно отправить электронное письмо с использованием codeigniter
  • 0Динамически добавлять <td> в таблицу
  • 1Как получить позицию несоответствия, используя Linq или лямбда-операцию на двух строковом массиве
  • 1Как отметить только один из пунктов меню в меню Extjs
  • 1страница фида в фейсбуке из javascript
  • 0Что означает эта конструкция? [Дубликат]
  • 0Сравнение 2 полей из разных таблиц
  • 0Компоновщик MSVS, добавляющий данные между статическими константными строками
  • 0Экспорт файла CSV имеет много пустых строк
  • 0Angular JS динамически создает нг-сетку в аккордеоне
  • 0RSA… GNU MP: невозможно выделить память (размер = 1307836444)
  • 1Параметры всплывающего окна «Всплывающее окно» в Android?

Сообщество Overcoder

Looks like no one’s replied in a while. To start the conversation again, simply

ask a new question.

the CW app has an error launching. I am not in the US right now, is it the problem? Can it be solved? It is the newest apple tv and the newest tvos version.

User uploaded file

Posted on Feb 8, 2017 1:22 PM

1 reply


Question marked as

Helpful

Feb 9, 2017 10:57 AM in response to Stefan120104

See https://forums.developer.apple.com/thread/31610. Having just recently experimented with writing TVMLKit apps it would indicate a problem reaching some online code that is part of the application. That could indicate that CW’s site is temporarily down, or that they have blocked connections from outside the US in an inelegant fashion rather than provide a meaningful error message.

tt2

1 reply


Question marked as

Helpful

Feb 9, 2017 10:57 AM in response to Stefan120104

See https://forums.developer.apple.com/thread/31610. Having just recently experimented with writing TVMLKit apps it would indicate a problem reaching some online code that is part of the application. That could indicate that CW’s site is temporarily down, or that they have blocked connections from outside the US in an inelegant fashion rather than provide a meaningful error message.

tt2

How do i solve TVMLKitErrorDomain error 3?

(tvOS). Известные проблемы и решения

tvmlkiterrordomain error 3

Ошибка tvmlkiterrordomain error 3
  1. Отключите приставку на 15 минут (не менее).
  2. Перезагрузите роутер.
  3. Если не помогло — проверьте интернет-соединение.

Ошибки воспроизведения на большом количестве фильмов

Проверьте, что на сайте в разделе «Мои устройства» для приставки активированы все галки (для Apple TV 4K) или стоит галка «Поддержка 4К» и не стоит галка «поддержка HEVC» (для Apple TV 4)

Расположение раздела «Мои устройства»
Правильные настройки для работы 4К HDR (Apple TV 4K)
Правильные настройки для работы 4К SDR (Apple TV 4)

Со стороны устройства требуются следующие настройки. В разделе «аудио и видео» выставить формат 4к SDR, выход HDMI YCbCr, цветность 4:2:0 и включить оба вида согласования.

Черные квадраты

К сожалению, вариантом является только играться настройками приставки и телевизора.

На телике отключаем все улучшатели и уплавнятели. 

На приставке 4к SDR YCbCr 4:2:0 и оба согласования вкл. 

Настраиваем дополнительно свой тв по данным с сайта https://www.rtings.com/tv/reviews

Тестирование этой версии программы завершено

Необходимо зайти в приложение TestFlight, открыть там карточку приложения cncrt/ViewPlay/TRLX и нажать кнопку Update. Процедуру надо повторять раз в 90 дней.

I have a TVML app working quite nicely now in the simulator. I’ve started with a menuBar template, and have used a stackTemplate as well as productTemplate. Everything is working just dandy in the simulator. However, when I hook my Apple TV up and try to run it on there, the application loads, but then I get the following error:

TVMLKitErrorDomain error 3

I have been trying to find out what this is for a few days , but I have not found any information pertaining to the error code. The simulator version is running on the localhost 9001 like Apple recommends and that is flawless. I just can’t get the app to run properly on the device though. Does anyone know what that error is, and how I can fix it? As always I appreciate your help!

asked Jan 28, 2016 at 1:01

user1516264's user avatar

You need to run this command from the same directory as your TVMLKit JS file:

python -m SimpleHTTPServer 9001
.

Krzysztof Bracha's user avatar

answered Jul 1, 2017 at 10:20

Raman Bhasker's user avatar

1

I had same error in my TV app. Solved by editing Info.plist. This error indicates that URL user trying to visit is not reachable.

You need to allow http:// from Info.plist for your app.

enter image description here

answered Nov 30, 2016 at 11:48

sschunara's user avatar

sschunarasschunara

2,28521 silver badges31 bronze badges

If you are running on device, you should change this line from localhost to your IP address:

static let TVBaseURL = "http://localhost:9001/"

to

static let TVBaseURL = "http://MY.IP.ADDRESS.HERE:9001/"

answered Jan 28, 2016 at 20:50

shirefriendship's user avatar

Just open a new terminal at your app folder and run the following command before running the simulator:

ruby -run -ehttpd . -p9001

answered Jul 1, 2019 at 1:24

Subhan's user avatar

SubhanSubhan

1,5043 gold badges22 silver badges58 bronze badges

Description:

I created a new TVML project and launched it. The first error was the App Transport Security, which I fixed via Info.plist :

App Transport Security Settings -> Allow Arbitrary Loads -> YES

Then I ran it again and I’m getting this error:

Failed to load launch URL with error: (null)
appController(_:didFailWithError:) invoked with error: Error
Domain=TVMLKitErrorDomain Code=3 «(null)»

The project seems to stop here (application func in AppDelegate.swift):

   appControllerContext.launchOptions["BASEURL"] = AppDelegate.tvBaseURL
   print(launchOptions) //returns nil
   //error on following line
   if let launchOptions = launchOptions as? [String: AnyObject] {
        //does not enter here
        for (kind, value) in launchOptions {
            appControllerContext.launchOptions[kind] = value
        }
    }

What I’ve tried:

I attempted changing the tvBaseURL from «http://localhost:9001/» to http://MY-IP-ADDRESS-HERE:9001/

but that didn’t change anything.

Question:

What is causing this error and how do I solve it?

asked Aug 19, 2016 at 9:40

kemicofa ghost's user avatar

kemicofa ghostkemicofa ghost

16.2k8 gold badges80 silver badges130 bronze badges

3

You should start the server with port number

enter the following command in terminal

ruby -run -ehttpd . -p9001

And finally your tvBaseURL should navigate to the server folder like this

"http://yourLocalhost:9001/Downloads/TVMLCatalogUsingTVMLTemplates/Server/"

answered Nov 29, 2018 at 10:01

Naveen Paulsingh's user avatar

I also faced the same problem, I solved it by changing tvBaseURL in AppDelegate

static let tvBaseURL = "http://127.0.0.1:9001/Downloads/TVMLCatalogUsingTVMLTemplates/Server/"

As you see — I have to show exact path to Server folder. That also works if you put it to some web server.

Hope that it can help!

answered Oct 7, 2017 at 12:30

moonvader's user avatar

moonvadermoonvader

19.4k18 gold badges67 silver badges116 bronze badges

I just ran into this issue. You need to pay close attention to the terminal output.

I got:

[2019-03-15 12:28:43] INFO  WEBrick 1.3.1
[2019-03-15 12:28:43] INFO  ruby 2.3.7 (2018-03-28) [universal.x86_64-darwin17]
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/socket.rb:205:
in `bind': Address already in use - bind(2) for 0.0.0.0:9001 (Errno::EADDRINUSE)

Address already in use — bind(2) for 0.0.0.0:9001

At this point you either have to choose a different port number (if you decide to do such then make sure your server’s port and your Xcode’s project port match) or kill the previous server by ctrl + c or just killing that terminal window.

Also note in some of Apple’s sample projects the ruby -run -ehttpd . -p9001 command is to be done in a folder named Server and for others it’s just suppose to be done in the App’s main folder. Just look into the README file to figure this out.

answered Mar 15, 2019 at 16:01

mfaani's user avatar

mfaanimfaani

32.4k18 gold badges159 silver badges285 bronze badges

У меня есть приложение TVML, которое теперь работает в симуляторе довольно хорошо. Я начал с шаблона menuBar и использовал stackTemplate, а также productTemplate. В симуляторе все работает просто денди. Однако, когда я подключаю свой Apple TV и пытаюсь запустить его там, приложение загружается, но затем я получаю следующую ошибку:

TVMLKitErrorDomain error 3

Я пытался выяснить, что это за несколько дней, но я не нашел никакой информации, относящейся к коду ошибки. Версия симулятора работает на локальном хосте 9001, как рекомендует Apple, и это безупречно. Я просто не могу заставить приложение работать должным образом на устройстве. Кто-нибудь знает, что это за ошибка, и как я могу ее исправить? Как всегда, я ценю вашу помощь!

4 ответа

Вам нужно запустить эту команду из того же каталога, что и ваш JS-файл TVMLKit:

python -m SimpleHTTPServer 9001 .


7

Krzysztof Bracha
1 Июл 2017 в 16:16

У меня была такая же ошибка в моем телевизионном приложении. Решено путем редактирования Info.plist. Эта ошибка указывает на то, что пользователь URL, пытающийся перейти, недоступен.

Вам необходимо разрешить http:// из Info.plist для вашего приложения.

enter image description here


5

sschunara
1 Дек 2016 в 07:29

Если вы работаете на устройстве, вы должны изменить эту строку с localhost на свой IP-адрес:

static let TVBaseURL = "http://localhost:9001/"

К

static let TVBaseURL = "http://MY.IP.ADDRESS.HERE:9001/"


1

shirefriendship
28 Янв 2016 в 23:50

Просто откройте новый терминал в папке вашего приложения и выполните следующую команду перед запуском симулятора:

ruby -run -ehttpd . -p9001


1

Subhan
1 Июл 2019 в 04:24

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Easy drive частотный преобразователь коды ошибок
  • Easy anti cheat что это ошибка
  • Easy anti cheat скачать ошибка
  • Easy anti cheat ошибка виндовс

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии