Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
legalevo
Binge Watcher

Deep Linking issue in channel behavior analysis section

I'm getting this error on publishing a channel for certification testing, My app haven't authentication or subscription or RAF functionalities pages. The app is rejected please guide how do I resolve this issue?

here is two errors for certification test.

1)Channel Deep Linking Basic 

Message:
While watching media player events, nothing was found. The active application (AppName) (dev) shows "RowListItemComponent" as the active element. Suggest looking if not logged in or channel UI has changed.
Description:
Deep linking enables users to get to your content faster from the Roku UI via Roku's content discovery features (for example, Roku Search and Roku home screen banners).
 
2)Channel Content Play Performance
Message:
While watching media player events, nothing was found. The active application (AppName) (dev) shows "RowListItemComponent" as the active element. Suggest looking if not logged in or channel UI has changed
Description:
Beginning with Roku OS 9.1, you can measure the performance of your channel to verify that it meets Roku's performance benchmark certification requirements.
 
Screenshot_1.png
0 Kudos
11 REPLIES 11
necrotek
Roku Guru

Re: Deep Linking issue in channel behavior analysis section

Content is expected to play without user interaction when initiated by a deeplink.  

0 Kudos
legalevo
Binge Watcher

Re: Deep Linking issue in channel behavior analysis section

thanks for your kind response and mention the exact error, please guide how do I fix this error any reference or code sample?

0 Kudos
necrotek
Roku Guru

Re: Deep Linking issue in channel behavior analysis section

Assuming your deep link is correctly directing to a landing page for the selected content. Add a variable that indicates the video was selected by the deep link and programmatically select the 'play' option you have set up that would usually be selected by the viewer. 

video.control="play"

 

https://community.roku.com/t5/Roku-Developer-Program/Channel-Behavior-Analysis-Failed-Every-time-And...

legalevo
Binge Watcher

Re: Deep Linking issue in channel behavior analysis section

according to your instructions in my UILogics folder has a VideoPlayerLogic.brs and I should put this line of code video.control="play" somewhere!

please peruse this VideoPlayerLogic.brs file for more understanding or may I provide you an other file to fix this error.

 

sub ShowVideoScreen(rowContent as Object, selectedItem as Integer, isSeries = false as Boolean)
    m.isSeries = isSeries
    m.videoPlayer = CreateObject("roSGNode", "Video") ' create new instance of video node for each playback
    ' we can't set index of content which should start firstly in playlist mode.
    ' for cases when user select second, third etc. item in the row we use the following workaround
    if selectedItem <> 0 ' check if user select any but first item of the row
        childrenClone = CloneChildren(rowContent, selectedItem)
        ' create new parent node for our cloned items
        rowNode = CreateObject("roSGNode", "ContentNode")
        rowNode.Update({ children: childrenClone }, true)
        m.videoPlayer.content = rowNode ' set node with children to video node content
    else
        ' if playback must start from first item we clone all row node
        m.videoPlayer.content = rowContent.Clone(true)
    end if
    m.videoPlayer.contentIsPlaylist = true ' enable video playlist (a sequence of videos to be played)
    ShowScreen(m.videoPlayer) ' show video screen
    m.videoPlayer.control = "play" ' start playback
    m.videoPlayer.ObserveField("state", "OnVideoPlayerStateChange")
    m.videoPlayer.ObserveField("visible", "OnVideoVisibleChange")
end sub

sub OnVideoPlayerStateChange() ' invoked when video state is changed
    state = m.videoPlayer.state
    ' close video screen in case of error or end of playback
    if state = "error" or state = "finished"
        CloseScreen(m.videoPlayer)
    end if
end sub

sub OnVideoVisibleChange() ' invoked when video node visibility is changed
    if m.videoPlayer.visible = false and m.top.visible = true
        ' the index of the video in the video playlist that is currently playing.
        currentIndex = m.videoPlayer.contentIndex
        m.videoPlayer.control = "stop" ' stop playback
        'clear video player content, for proper start of next video player
        m.videoPlayer.content = invalid
        screen = GetCurrentScreen()
        screen.SetFocus(true) ' return focus to details screen
'       for this line of for deep link
        if m.deepLinkDetailsScreen <> invalid
            content = m.videoPlayer.content
            if m.videoPlayer.isSeries = true
                content = content.GetChild(m.videoPlayer.lastIndex)
            end if
            if content <> invalid
                m.deepLinkDetailsScreen.content = content.clone(true)
            end if
        else
        newIndex = m.selectedIndex[1]
        if m.isSeries = true
           m.isSeries = false
        else
           newIndex += currentIndex
        end if
        ' navigate to the last played item
        screen.jumpToItem = newIndex
    end if
    end if
end sub

 

0 Kudos
legalevo
Binge Watcher

Re: Deep Linking issue in channel behavior analysis section

someone suggest me please! What should I do to fix this error?

0 Kudos
miaNNtahir
Newbie

Re: Deep Linking issue in channel behavior analysis section

i have same issue please guide me

0 Kudos
necrotek
Roku Guru

Re: Deep Linking issue in channel behavior analysis section

Do you have deeplinking set up and correctly working in your channel?  If channel is correctly landing on a view for the content item that is deeplinked and you know it is coming from a deep link on your landing page, start your video player for that content item, otherwise wait for user input to play. Roku expects the content to play on deeplink hence the message "While watching media player events, nothing was found. " 

0 Kudos
Miantahir
Binge Watcher

Re: Deep Linking issue in channel behavior analysis section

same errors.. my channel is ready but i am unable to publish due to deep linking

0 Kudos
necrotek
Roku Guru

Re: Deep Linking issue in channel behavior analysis section

Again, Do you have deeplinking set up and working correctly in your channel?

0 Kudos