{
anchors.fill: parent
+ PullDownMenu
+ {
+ MenuItem
+ {
+ text: "Set as default location"
+ }
+
+ MenuItem
+ {
+ visible: streamControl.title
+ text: streamControl.title
+
+ onClicked: pageStack.push("PlaybackPage.qml");
+ }
+ }
+
header: PageHeader
{
title: qsTr("Browse files")
control: xinemaControl
}
- Connections
- {
- target: xinemaControl
- onConnectedChanged:
- {
- if(xinemaControl.connected)
- browseDirectory.directory = "/";
- }
- }
-
Component.onCompleted:
{
if(xinemaControl.connected)
browseDirectory.directory = "/";
}
+
+ StreamControl
+ {
+ id: streamControl
+ control: xinemaControl
+ onPlaybackStateChanged:
+ {
+ if(playbackState==StreamControl.Playing)
+ {
+ if(pageContainer.busy)
+ pageContainer.completeAnimation();
+ pageStack.push("PlaybackPage.qml");
+ }
+ }
+ }
}
{
discovery.active = false;
xinemaControl.connect(discovery.serverName);
- pageStack.replace("BrowsePage.qml");
}
}
}
+
+ Connections
+ {
+ target: xinemaControl
+ onConnectedChanged:
+ {
+ if(xinemaControl.connected)
+ pageStack.replace("BrowsePage.qml");
+ }
+ }
}