When i publish my app its through error while i am doing Channel Behaviour Analysis .Its through error in channel deeplinking basis and channel content play performance.But deeplinking is working fine while i test in my device and all.Its playing perfectly
Can anyone let me know how to fix and live my channel.Below is the error message
For deeplinking and channel content play perfomance getting same error after analyze
While watching media player events, nothing was found. The active application Appname (dev) shows "SGScreen" as the active element. Suggest looking if not logged in or channel UI has changed.
Is anybody solve this problem or know about how to solve it?
I've faced to this same error related to deep linking couple of days ago, too
and I'm totally lost how to deal with this problem.
Did you get this solved?
I am having the same problem.
yeah i fixed it
can you tell us how you have solved it.
thanks in advance
Content is expected to auto play when accessed via deeplink. That is why it gets an error "While watching media player events"
how do u make it autoplay?
When Deeplinking to content, initiate the video player for the deeplinked content and start playing without user interaction video.control="play"
Channel Behavior Analysis expects content to play so that it can check that content will play.
sub ShowChannelRSGScreen(args as Object) ' The roSGScreen object is a SceneGraph canvas that displays the contents of a Scene node instance screen = CreateObject("roSGScreen") ' message port is the place where events are sent m.port = CreateObject("roMessagePort") ' sets the message port which will be used for events from the screen screen.SetMessagePort(m.port) ' every screen object must have a Scene node, or a node that derives from the Scene node scene = screen.CreateScene("MainScene") screen.Show() ' Init method in MainScene.brs is invoked scene.launchArgs = args inputObject=createobject("roInput") inputObject.setmessageport(m.port) ' event loop while(true) ' waiting for events from screen msg = wait(0, m.port) msgType = type(msg) ?"msgTyp="msgType if msgType = "roSGScreenEvent" if msg.IsScreenClosed() then return else if msgType = "roInputEvent" inputData = msg.getInfo() ? "input" ' pass the deeplink to UI if inputData.DoesExist("mediaType") and inputData.DoesExist("contentId") deeplink = { contentId: inputData.contentID mediaType: inputData.mediaType } scene.inputArgs = deeplink end if end if end while
I have this snippet and I don't see where to put the video.control="play"
Handling of deeplink would not occur on that section of code.
This would be handled wherever
scene.launchArgs and scene.inputArgs
are handled/observed in your scene.
This data then would be used to create a task to get the rest of the content data from your server. I would assume that you know how to do this for content chosen by your viewer. You could set a flag that the content is coming from a deep linked source and that content would either be handed directly to your video player node or to a landing page that would then automatically be played by the video player node.